65
Ladder Programming Examples
Section 4-5
4-5
Ladder Programming Examples
4-5-1
RUN/STOP Sample Programming
The ladder programming example here is for the following execution condi-
tions.
• Using simple I/O allocation to allocate data in the fixed allocation area 1 of
a CS/CJ-series DeviceNet Unit (OUT Area = CIO 3200 to CIO 3263, IN
Area = CIO 3300 to CIO 3363).
Operation
• Executes RUN or STOP for the E5ZN Temperature Controller (to control
Unit 0, ch1).
• The bit in the first word + 2 words of the OUT Area allocated by default is
used as the RUN/STOP Bit (CIO 320200).
• RUN is executed when the RUN/STOP Bit (CIO 320200) turns ON for the
execution condition 000000, after which the Output Enable Bit turns ON.
When the RUN/STOP Confirmation Flag (CIO 330200) turns ON, the Out-
put Enable Bit turns OFF.
• STOP is executed when the RUN/STOP Bit (CIO 320200) turns OFF for
the execution condition 000100, after which the Output Enable Bit turns
ON. Then, when the RUN/STOP Confirmation Flag (CIO 330200) turns
OFF, the Output Enable Bit turns OFF.
Programming Example
SET
32 0200
00 0000
END(001)
0000 20
ASL(025)
0000
SET
32 0000
000001
ASL(025)
0000
3302 00
RSET
320000
000007
ASL( 025)
0000 02
0000
000003
R SET
3 20200
0 00010
00 0100
ASL(025 )
0 001
S ET
3 20000
00 0101
ASL(025 )
0 001
3 30200
RSET
3200 00
0000 17
A SL(025)
0 00102
0 001
00 0013
0 00000
END
Turns ON CIO 320200 (RUN/STOP).
RUN/STOP Confirmation Flag
RUN/STOP Confirmation Flag
Turns ON CIO 320000 (Output Enable Bit)
Turns OFF CIO 320000 (Output Enable Bit).
Turns OFF CIO 320200 (RUN/STOP).
Turns ON CIO 320000 (Output Enable Bit).
Turns OFF CIO 320000 (Output Enable Bit).
Execution
condition
Execution
condition
Shifts the contents of CIO 0000 one
bit to the left. (CIO 000001 ON)
Shifts the contents of CIO 0000 one
bit to the left. (CIO 000002 ON)
Shifts the contents of CIO 0000 one
bit to the left. (CIO 000003 ON)
Shifts the contents of CIO 0001 one
bit to the left. (CIO 000101 ON)
Shifts the contents of CIO 0001 one
bit to the left. (CIO 000102 ON)
Shifts the contents of CIO 0001 one
bit to the left. (CIO 000103 ON)
Summary of Contents for E5ZN-DRT
Page 3: ...iv ...
Page 5: ...vi ...
Page 9: ...x ...
Page 15: ...xvi EC Directives 6 ...
Page 83: ...68 Ladder Programming Examples Section 4 5 ...
Page 123: ...108 Sending Explicit Messages Section 6 5 ...
Page 135: ...120 Message Communications Characteristics Section 7 2 ...
Page 157: ...142 Index Unit status 57 85 user set allocations 43 61 V variable types C0 51 C1 51 C3 52 ...
Page 159: ...144 Revision History ...
Page 161: ...E5ZN DeviceNet Communications Unit Cat No H119 E1 01 OPERATION MANUAL ...