80
Ladder Programming Examples
Section 4-6
Programming Example
4-6-3
Change MV Upper Limit/Lower Limit Programming Example
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
• This programming example writes the MV upper limit/lower limit to the
TC2 (Unit 0, ch1) (upper limit: 50 hex, lower limit 20 hex).
• MV upper limit/lower limit cannot be used with simple I/O allocations, so
the Configurator is used to allocate memory. In this programming exam-
ple, the MV upper limit is allocated in CIO 3218, the MV lower limit in CIO
3219, and the Output Completed Flags in CIO 3300.
• The MV upper limit is set in D1000 and the MV lower limit is set in D1001
at the start of the ladder program, and then they are transferred to CIO
3218 and CIO 3219 when the execution condition, CIO 000000, turns ON.
Next, the upper and lower limits are refreshed when the OUT Enable Bit
turns ON. If the data is transferred normally, the Output Completed Flags
turn ON, and then OUT Enable Bit turns OFF.
Sets 0150 in D1000.
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 OUT Enable Bit (CIO 320000).
Shifts the contents of CIO 0000 one
bit to the right. (CIO 000002 ON)
MOV(021)
0150
D1000
A20011
000000
000000
ASL(025)
0000
000001
END(001)
000002
000005
000008
END
MOV(021)
D1000
3206
SET
320000
ASL(025)
0000
First Scan Flag
Execution
condition
Summary of Contents for EJ1 - 07-2008
Page 3: ...iv...
Page 19: ...xx...
Page 33: ...14 Initial Temperature Controller Settings Section 1 4...
Page 53: ...34 Wiring the Temperature Controllers Section 3 4...
Page 101: ...82 Ladder Programming Examples Section 4 6...
Page 143: ...124 Sending Explicit Messages Section 6 5...
Page 155: ...136 Message Communications Characteristics Section 7 2...
Page 163: ...144 Maintenance Section 8 2...
Page 189: ...170 Allocation Numbers for Configurators Manufactured by Other Companies Appendix B...
Page 197: ...178 Index...