Download 505 PLC WorkShop User Guide

Transcript
PLC WorkShop for Siemens 505
Chapter 10 – RLL Instructions • Special Instructions
NOTE: The number of points to move must be a multiple of 8. All
points must reside in the same I/O module.
No Operation (NOP)
NOTE: NOP requires no parameters.
Date Compare (DCMP)
The Date Compare instruction (DCMP) compares the current date of the real-time clock
with the values contains in the designated memory locations.
When power is passed to the DCMP instruction, the current date in the real-time clock is
compared to the date stored in the memory location in the instruction. If the dates match,
the output of the instruction is turned on.
DCMP
Parameter Type
Valid Parameter Types
Reference Number
Constant
0–32767
Date:
Word Address
V, W, G
The Data parameter uses 4 words to represent the actual date. These are defined as follows:
l
Date = Year - CDB 0000-0099
l
Date + 1 = Month - BCD 0001- 0012
l
Date + 2 = Day of Month - BCD 0001-0031
l
Date + 3 = Day of Week - BCD 0001-0007
Date Set (DSET)
The Date Set (DSET) instruction sets the date portion of the real-time clock to the values
contained in the designated address.
- 525 -