Download - Siemens

Transcript
General Communication Areas
Date and time
Time
Date
= Words n+9 through n+11
= Words n+12 through n+14
PLC job 41 can initiate the transfer of time and date from the OP to the PLC.
Figure 11-4 shows the structure of the data area. All specifications are BCDcoded.
n+11
Not assigned
Hour (0 to 23)
Minute (0 to 59)
Second (0 to 59)
Not assigned
Not assigned
Day (1 to 7)
n+13
Day (1 to 31)
Month (1 to 12)
n+14
Year (0 to 99)
Not assigned
n+12
Time
n+10
Right byte
Date
Left byte
Data word
n+9
Figure 11-4 Structure of the Time and Date Data Area
To detect when the date and time were transferred, you should set the data
words to 0 before initiating the PLC job.
ProTool User’s Guide
Release 09/96
11-7