EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 134

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
132
5 SEQUENCE INSTRUCTIONS
5.1 Contact Instructions
Processing details
LD, LDI
LD is the A contact operation start instruction, and LDI is the B contact operation start instruction. They read ON/OFF
information from the designated device
*1
, and use that as an operation result.
*1 When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.
AND, ANI
AND is the A contact series connection instruction, and ANI is the B contact series connection instruction. They read the
ON/OFF data of the designated bit device
*2
, perform an AND operation on that data and the operation result to that point,
and take this value as the operation result.
*1 When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.
There are no restrictions on the use of AND or ANI, but the following applies in the ladder mode of a programming tool:
OR, ORI
OR is the A contact single parallel connection instruction, and ORI is the B contact single parallel connection instruction.
They read ON/OFF information from the designated device
*1
, and perform an OR operation with the operation results to
that point, and use the resulting value as the operation result.
*1 When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated bit.
There are no limits on the use of OR or ORI, but the following applies in the ladder mode of a programming tool:
Word device bit designations are made in hexadecimal.
Bit b11 of D0 would be D0.0B.
See Page 82 Using bit data for more information on word device bit designation.
Operation error
There is no operation error in the LD, LDI, AND, ANI, OR, or ORI instruction.
Program example
A program using the LD, AND, OR, and ORI instructions.
Item Description
Write When AND and ANI are connected in series, a ladder with up to 24 stages can be displayed.
Read When AND and ANI are connected in series, a ladder with up to 24 stages can be displayed. If the number exceeds 24 stages, up to
24 will be displayed.
Item Description
Write OR and ORI can be used to create connections of up to 23 ladders.
Read OR and ORI can be used to create connections of up to 23 ladders. The 24th or subsequent ladders cannot be displayed properly.
[Ladder Mode] [List Mode]
b0
1
0
D0
b5b15
Bit designated
for word
device
Step
Instruction
Device

Table of Contents

Related product manuals