66
Ladder Programming Examples
Section 4-5
4-5-2
Change SP 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 of CS/CJ-series DeviceNet Unit (OUT
Area = CIO 3200 to CIO 3263, IN Area = CIO 3300 to CIO 3363).
Operation
• Writes the SP to the E5ZN Temperature Controller (SP = 150 hex, desti-
nation = Unit 0, ch1).
• Writes the SP to the first word + 6 words of the default allocated OUT
Area (CIO 3206).
• The SP is first set in D1000, and then transferred to CIO 3206 at the start
of the ladder program. After corresponding Output Enable Bits turn ON,
and the SP is refreshed, the corresponding bits that were ON are turned
OFF (to prevent overwriting of SPs that are being used for other opera-
tions).
Programming Example
4-5-3
Change MV Upper Limit/Lower Limit Sample Programming
The ladder programming example here is for the following execution condi-
tions.
• Using the Configurator to allocate I/O 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
• Writes the MV upper limit/lower limit to the E5ZN Temperature Controller
(write destination = unit 0, ch1, write contents = upper limit: 50 hex, lower
limit 20 hex)
• MV upper limit/lower limit cannot be used with simple I/O allocation, so
the Configurator is used to allocate the settings. In this sample program,
the MV upper limit is allocated in CIO 3218, the MV lower limit in CIO
3219, the setting area 0/1 for Units 0 to 7 in CIO 3220, the MV upper limit
monitor in CIO 3326, and the MV lower limit monitor in CIO 3327.
• The MV upper limit is first set in D1000 and the MV lower limit in D1001.
The values are then transferred to CIO 3218 and CIO 3219 at the start of
the ladder program. The corresponding Setting Area 0/1 Bit and Output
MO V(021)
# 0150
D1000
A20011
0 00000
0000 00
ASL(02 5)
0 000
00 0001
ASR( 026)
0001
END( 001)
000002
0000 05
00 0008
END
MOV(02 1)
D1000
3206
320 000
Sets 0150 in D1000.
Output Enable Bit
First Scan
Flag ON
Execution
condition
Execution
condition
Moves D1000 (0150) to CIO 3206.
(Transfers to channel in which SP
is allocated.)
Shifts the contents of CIO 0000 one
bit to the left. (CIO 000001 ON)
Turns ON the Output Enable Bit.
Shifts the contents of CIO 0000 one
bit to the right. (CIO 000002 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 ...