Chapter 6 Instruction Details
XBC E-Type Main Unit
6-294
Ver. 1
6.41.3 TFLK
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
TFLK
D1 O O O
-
-
-
-
-
-
O
-
-
-
-
-
-
4~7
O
-
-
S1 O O O O O O O
-
O
-
-
O O O O O
S2 O O O O O O O
-
O
-
-
O O O O O
D2 O O O
-
O O O
-
O
-
-
-
O O O O
Operand
Description
Data Type
D1
Bit number to be On/Off for setting time
BIT
S1
Time to turn the bit On specified in D1
WORD
S2
Time to turn the bit Off specified in D1
WORD
D2
(D2+0) : Present time being executed
(D2+1) : Time unit to be used (0-1ms, 1-10ms, 2-100ms, 3-1s)
(D2+2) ~ (D2+4): System area (word * 3)
WORD
1) TFLK
(1) It is used to turn the specified D1 bit On for S1 time and then Off for S2 time when input contact point is
On.
Input contact
point
D1 (BIT)
S1
S2
OFF
ON
OFF
ON
(2) If contact point is Off, the present time being executed in D2 will be initialized, and the bit specified in
D1 will be Off. If contact point is On, the instruction will be executed from the start.
(3) Time unit has set to be used in D2+1. 0 – 1ms, 1 – 10ms, 2 – 100ms, 3 – 1s. If time unit is more than 4,
error will not occur and all are set as 1s.
(4) In order to execute this instruction, 3-word data area is necessary. D2+2, D2+3, D2+4 will be used inside
the instruction for this. Thus, when setting D2, be aware of each device’s range.
2) Program Example
TFLK P07000 P1000 P1100 P1200
P00000
Caution
(1) Be careful of using indirect designation (#) or index ([Z]) because the TFLK instruction has internal processing
parts without contact point ON.
For example, an error occurs without contact point ON if you use M100[Z10] for one of the TFLK instruction
operands and if Z10’s value exceeds 1947 that can be outside the M area.
TFLK
D1
TFLK
S2 D2
S1
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...