Delta AH500 Programming Manual page 533

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1601
TWR
Device X
Y
M
S
Symbol:
Explanation:
1.
S: The device into which the setting value is written
2.
The operand S occupies seven consecutive devices.
3.
When users want to adjust the built-in real-time clock in the CPU module, they can use the
instruction to write the correct current time into the built-in real-time clock.
4.
When the instruction is executed, the new setting time is instantly written into the real-time
clock in the PLC. Therefore, when the instruction is executed, users have to make sure that
the new setting time is consistent with the time when the new setting time is written into the
real-time clock.
Example:
When M0 is ON, the correct current time is written into the built-in real-time clock in the PLC.
General data
register
D20
D21
D22
D23
D24
D25
D26
Additional remark:
1.
If the value in S exceeds the range, the operation error occurs, the instruction is not executed,
SM is ON, and the error code in SR is 16#2003.
2.
If S+6 exceeds the device range, the operation error occurs, the instruction is not executed,
SM is ON, and the error code in SR is 16#2003.
3.
If users declare the operand S in ISPSoft, the data type will be ARRAY [7] of WORD/INT.
Operand
P
S
S
T
C
HC
D
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction
AH500
S : Data source
Item
Value
Year (A.D.)
00~99
Month
1~12
Day
1~31
Hour
0~23
Minute
0~59
Second
0~59
Week
1~7
C ha pt er 6 A p pl i e d In s tr uc t io ns
Writing the time
L
SM SR
E
PR
AH500
Word
Special data
register
SR391
Year (A.D.)
SR392
Month
SR393
SR394
SR395
Minute
SR396
Second
SR397
Function
K
16# "$"
DF
-
Item
Day
Hour
Week
6 - 3 6 5

Advertisement

Table of Contents
loading

Table of Contents