7
PROGRAMMING
(2) Response format
Buffer memory address
26800(68B0
)
H
26801(68B1
)
H
26802(68B2
)
H
26803(68B3
)
H
26804(68B4
)
H
26805(68B5
)
H
26806(68B6
)
H
26807(68B7
)
H
26808(68B8
) to
H
26809(68B9
)
H
26810(68BA
) to
H
26811(68BB
)
H
26812(68BC
)
H
Buffer memory address
26800(68B0
)
H
26801(68B1
) to
H
26812(68BC
)
H
7
- 51
7.6 Program Example for Time Control over DP-Slaves
7.6.1 Time data read request
(a) When normally completed
Table7.44 Response Format (When Normally Completed)
A response code is stored.
Stored value: A600
H
The year is stored.
Stored value: 1984 to 2036
The month is stored.
Stored value: 1 to 12
The day is stored.
Stored value: 1 to 31
The hour is stored.
Stored value: 0 to 23
The minute is stored.
Stored value: 0 to 59
The second is stored.
Stored value: 0 to 59
1/1000 second is stored.
Stored value: 0 to 999
The UTC second (year + month + day + hour + minute + second) is stored.
The stored value, 9DFF4400
H
Stored value: 9DFF4400
to FFFFFFFF
H
UTC nanosecond (ms to ns setting) is stored.
Stored value: 00000000
to FFFFFFFF
H
The clock status is stored.
b15 b14
to
b10 b9
6)
5)
1) Synchronous setting with the time master is stored.
0 : Not synchronize the time setting with that of the time master.
1 : Synchronize the time setting with that of the time master.
2) Time resolution (minimum unit) setting is stored.
00 : 1ms
01 : 10ms
10 : 100ms
11 : 1s
3) Summer/Winter time setting is stored.
0 : Winter time setting
1 : Summer time setting
4) Advance notice of summer/winter time switching is stored.
0 : Not switch between summer and winter times in an hour
1 : Switches between summer and winter times in an hour
5) Time difference (the time to be added or subtracted) is stored.
The value, 0 means "No addition or subtraction".
Stored value: 0 to 31 (Unit: x 0.5 hours)
6) Time calculation method is stored.
0 : Adds the time difference
1 : Subtracts the time difference
(b) When failed
Table7.45 Response Format (When Failed)
An error code is stored. (
Empty area
Stored value: 0000
H
Result
represents "January 1st in 1984, 00:00:00".
H
H
b8
b7 b6 b5
b4
b3 b2 b1
0
4) 3)
0
2)
0
Result
Section 9.5.5)
b0
1)