Omron CS1G/H-CPUxxH Instructions Manual page 164

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Sequence Input Instructions
Description
Flags
Precautions
Area
Index Registers
---
Indirect addressing
,IR0 to ,IR15
using Index Registers
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
, –(– –)IR0 to, –(– –)IR15
LD is used for the first normally open bit from the bus bar or for the first nor-
mally open bit of a logic block. If there is no immediate refreshing specifica-
tion, the specified bit in I/O memory is read. If there is an immediate
refreshing specification, the status of the Basic Input Unit's input terminal is
read and used.
LD is used in the following circumstances as an instruction for indicating a log-
ical start.
• When directly connecting to the bus bar.
• When logic blocks are connected by AND LD or OR LD, i.e., at the begin-
ning of a logic block.
The AND LOAD and OR LOAD instructions are used to connect in series or in
parallel logic blocks beginning with LD or LD NOT.
At least one LOAD or LOAD NOT instruction is required for the execution con-
dition when output-related instructions cannot be connected directly to the
bus bar. If there is no LOAD or LOAD NOT instruction, a programming error
will occur with the program check by the Peripheral Device.
When logic blocks are connected by AND LOAD or OR LOAD instructions, the
total number of AND LOAD/OR LOAD instructions must match the total num-
ber of LOAD/LOAD NOT instructions minus1. If they do not match, a program-
ming error will occur. For details, refer to 3-3-7 AND LOAD: AND LD and 3-3-
8 OR LOAD: OR LD.
There are no flags affected by this instruction.
Differentiate up (@) or differentiate down (%) can be specified for LD. If differ-
entiate up (@) is specified, the execution condition is turned ON for one cycle
only after the status of the operand bit goes from OFF to ON. If differentiate
down (%) is specified, the execution condition is turned ON for one cycle only
after the status of the operand bit goes from ON to OFF.
Immediate refreshing (!) can be specified for LD. An immediate refresh
instruction updates the status of the input bit just before the instruction is exe-
cuted for Basic Input Units (but not Basic Input Units on Slave Racks or for
C200H Group 2 Multi-point Input Units).
For LD, it is possible to combine immediate refreshing and up or down differ-
entiation (!@ or !%). If either of these is specified, the input is refreshed from
the Basic Input Unit just before the instruction is executed and the execution
condition is turned ON for one cycle only after the status goes from OFF to
ON, or from ON to OFF.
Section 3-3
LD operand bit
143

Advertisement

Table of Contents
loading

Table of Contents