
157
Part 4 Commands
GTTM (Get time)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional GTTM Variable
number
Prohibited CP
[Function] Read system time to the variable specified in operand 1. The time is specified in units of
10 milliseconds.
The time obtained here has no base number. Therefore, this command is called twice and
the difference will be used to calculate the elapsed time.
[Example 1]
GTTM 1
Read the reference time to variable 1.
ADD
1
500
Set the ending time to 5 seconds later.
GTTM 2
Read the current system time to variable 2.
DWLE 2
*1
Proceed to the step next to EDDO when 5 seconds
elapsed.
:
The above process will be repeated for 5 seconds.
:
GTTM 2
Read the current system time to variable 2.
EDDO
[Example 2]
LET
1
5
Assign 5 to variable 1.
GTTM *1
Store the current system time in the content of variable 1
(variable 5).
(Note) System time indicates the time counted in 32 bits starting from 0 representing the time the
controller is started. Accordingly, you can use the time difference obtained by this command to
check the elapsed time after the controller was started, for the duration of continuous operation
for up to approx. 248 days (21474836.47 seconds) after the start.
158
Part 4 Commands
1.7 I/O, Flag Operation
BT
(Output port, flag operation)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional BT
Output, flag (Output,
flag)
CP
[Function] Reverse the ON/OFF status of the output ports or flags from the one specified in operand 1
through the other specified in operand 2.
(Note)
A dedicated output (system output), other than a general-purpose output, cannot be
specified for operand 1 or 2.
BT
ON
Switch the status to ON.
OF
Switch the status to OFF.
NT
Reverse the status.
[Example 1]
BTON
300
Turn ON output port 300.
[Example 2]
BTOF
300
307
Turn OFF output ports 300 through 307.
[Example 3]
LET
1
600
Assign 600 to variable 1.
BTNT
*1
Reverse the content of variable 1 (flag 600).
[Example 4]
LET
1
600
Assign 600 to variable 1.
LET
2
607
Assign 607 to variable 2.
BTON
*1
*2
Turn ON the flags from the content of variable 1 (flag
600) through the content of variable 2 (flag 607).
161
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......