Controlling/Outputting in Parallel
FQ-CR2 User’s Manual
117
8
Communications with External Devices
Sample Ladder Program
This sample program inputs IN5 to execute teach.
• I/O Signal Allocations
It may happen that the PLC is unable to recognize BUSY signal ON because the cycle time is slow or
otherwise. In this event, have W0.00 turn OFF at a suitable time.
Signal type Address
Output signal OUT1 (BUSY signal) CIO 0.01
Input signals IN0 CIO 1.08
IN1 CIO 1.09
IN2 CIO 1.10
IN3 CIO 1.11
IN4 CIO 1.12
IN5 CIO 1.15
The time the BUSY signal is ON is the teach execution time.
MOV
#200
Q:1
TMHH
0000
#5
TMHH
0001
#2
SET
IN5
RSET
IN5
SET
W0.01
W0.00
T0000
IN5
OUT1
BUSY
W0.00
RSET
W0.00
T0001
BUSY
Teach execution
When teach execution (W0.00) is turned
ON, the command parameter for teach
execution (000010) is output to
Q:1 (IN0 to 4).
After teach execution finishes and the
BUSY signal turns OFF, post teach
processing (W0.01:ON) is executed.
If the BUSY signal is OFF five ms
after the command parameter is output,
the teach execution trigger (IN5)
turns ON.
After being ON for 2 ms, teach
execution (IN5) turns OFF.
Teach execution
Sec8.fm 117 ページ 2011年7月8日 金曜日 午後8時50分