Lod (load) and lodn (load not), Out (output) and outn (output not) – IDEC MicroSmart User Manual

Page 186

Advertising
background image

7: B

ASIC

I

NSTRUCTIONS

7-2

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

LOD (Load)

and LODN (Load Not)

The LOD instruction starts the logical operation with a NO (normally open) contact. The LODN instruction starts the log-
ical operation with a NC (normally closed) contact.

A total of eight LOD and/or LODN instructions can be programmed consecutively.

OUT (Output)

and OUTN (Output Not)

The OUT instruction outputs the result of bit logical operation to the specified operand. The OUTN instruction outputs the
inverted result of bit logical operation to the specified operand.

Multiple OUT and OUTN

There is no limit to the number of OUT and OUTN instructions that can be programmed
into one rung.

Programming multiple outputs of the same output number is not recommended. How-
ever, when doing so, it is good practice to separate the outputs with the JMP/JEND set of
instructions, or the MCS/MCR set of instructions. These instructions are detailed later in
this chapter.

When the same output number is programmed more than once within one scan, the out-
put nearest to the END instruction is given priority for outputting. In the example on the
right, output Q0 is off.

Ladder Diagram

Valid Operands

The valid operand range depends on the CPU module type. For details, see pages 6-1 and 6-2.

Instruction

I

Q

M

T

C

R

LOD
LODN

0-307

0-307

0-1277

8000-8157

0-99

0-99

0-127

Ladder Diagram

Valid Operands

The valid operand range depends on the CPU module type. For details, see pages 6-1 and 6-2.

Instruction

I

Q

M

T

C

R

OUT
OUTN

0-307

0-1277

8000-8077

Caution

• For restrictions on ladder programming of OUT and OUTN instructions, see page 29-22.

Ladder Diagram

I1

I2

Q0

Q1

Q2

Ladder Diagram

I1

I2

I3

END

ON

OFF

OFF

Q0

Q0

OFF

Advertising