Programming Precautions - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Programming Precautions

00000
22500
00001
00002
00003
00004
00005
4-10 Programming Precautions
00000
00002
00004
00001
00003
00001
00004
00000
00000
00004
00001
112
This action is easily programmed by using IR 22500 as a work bit as the operand
of the DIFFERENTIATE UP instruction (DIFU(13)). When IR 00000 turns ON, IR
22500 will be turned ON for one cycle and then be turned OFF the next cycle by
DIFU(13). Assuming the other conditions controlling IR 00100 are not keeping it
ON, the work bit IR 22500 will turn IR 00100 ON for one cycle only.
The number of conditions that can be used in series or parallel is unlimited as
long as the memory capacity of the PC is not exceeded. Therefore, use as many
conditions as required to draw a clear diagram. Although very complicated dia-
grams can be drawn with instruction lines, there must not be any conditions on
lines running vertically between two other instruction lines. Diagram A shown
below, for example, is not possible, and should be drawn as diagram B. Mne-
monic code is provided for diagram B only; coding diagram A would be impossi-
ble.
Diagram A
00002
00003
Diagram B
The number of times any particular bit can be assigned to conditions is not lim-
ited, so use them as many times as required to simplify your program. Often,
complicated programs are the result of attempts to reduce the number of times a
bit is used.
Address
DIFU(13) 22500
00000
00001
00100
00002
00003
00004
00005
00006
00007
00008
00009
00010
Instruction 1
Instruction 2
Address
Instruction 1
00000
00001
00002
00003
Instruction 2
00004
00005
00006
00007
00008
00009
Section 4-10
Instruction
Operands
LD
00000
DIFU(13)
22500
LD
22500
LD
00001
AND NOT
00002
AND NOT
00003
OR LD
LD
00004
AND NOT
00005
OR LD
OUT
00100
Instruction
Operands
LD
00001
AND
00004
OR
00000
AND
00002
Instruction 1
LD
00000
AND
00004
OR
00001
AND NOT
00003
Instruction 2
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents