![background image](http://html1.mh-extra.com/html/omron/k3hb/k3hb_technical-communications-users-manual_743344092.webp)
6-7
Ladder Programming Examples
Section 4-3
R
e
mo
te
I
/O
Co
m-
mun
ic
a
tion
s
With the CS1W-DRM21 and CJ1W-DRM21 DeviceNet Units, operation com-
mands are made ready for execution by writing to the allocated words
(CIO 3202 when the default I/O allocation (fixed allocation area 1) is set.)
Operation commands are executed only when the Output Enable Bit is set to
1 (ON) and the strobe is ON. The strobe is ON when the following two condi-
tions are met:
1.
Strobe 2 = 1 and strobe 1 = 0
2.
The strobe was cleared after the previous operation command was execut-
ed.
Note
Software resets are executed again even if the strobe has not been cleared.
Therefore the Output Enable Bit or the strobe must be cleared after the soft-
ware reset command has been sent.
4-3
Ladder Programming Examples
4-3-1
Zero Execute/Cancel Sample Programming
The zero execute/cancel ladder programming example here is executed under
the following conditions.
• Using default I/O allocations to allocate data in 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).
Outline
This ladder programming example executes zero execute and zero cancel for
the K3HB-DRT. Zero execute and zero cancel are executed using operation
commands.
Output Enable Bit (CIO 320100) and strobe are used to execute the operation
command.
Operation
• First, the Output Enable Bit is turned ON. The hexadecimal values are set
to D1000 and D1001 at the start of the ladder program. These values pre-
pare the zero cancel operation command 0300 hex and the zero execute
operation command 0301 hex.
• Zero cancel is executed when CIO 000000 turns ON.
• The contents of D1000 (= 0300 hex) is copied to CIO 3202, where the
operation command is allocated.
• The strobe is turned ON (strobe 1 = 0 and strobe 2 = 1) and the operation
command is executed.
• A timer is used and the strobe is disabled to 1 after 0.1 s (see note).
• Zero execute is executed in the same way as for zero cancel when
CIO 000100 turns ON.
Operation command executed.
Strobe 1
Strobe 2
0
1
Operation
command
Содержание K3HB
Страница 2: ...K3HB Digital Indicators Communications User s Manual Revised March 2005...
Страница 3: ...iv...
Страница 15: ...xvi...
Страница 19: ...xx...
Страница 21: ...Part 1 CompoWay F...
Страница 69: ...Part 2 DeviceNet...
Страница 95: ...6 10 Ladder Programming Examples Section 4 3 Remote I O Com munications...
Страница 103: ...7 8 Explicit Messages Specific to DeviceNet compatible Digital Indicators Section 5 3 Explicit Message Communications...
Страница 111: ...8 8 Message Communications Performance Section 6 2 Communications Performance...
Страница 127: ...Part 3 BCD Output...
Страница 147: ......