Ladder Programming Examples - Omron K3HB - MANUAL 2 Manual

Digital indicators
Hide thumbs Also See for K3HB - MANUAL 2:
Table of Contents

Advertisement

Ladder Programming Examples

Note
4-3
Ladder Programming Examples
4-3-1
Zero Execute/Cancel Sample Programming
Outline
Operation
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.
Strobe 1
Strobe 2
Operation
command
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.
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).
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.
• 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.
0
1
Operation command executed.
Section 4-3
6-7

Advertisement

Table of Contents
loading

Table of Contents