Bit Device, Timer, Counter Output

Bit Device, Timer, Counter: OUT

 

OUT instruction is the final logical operation type coil drive and is used to output the final result of the operation to the assigned device.

It is impossible to use the OUT instruction to drive ‘X’ type input devices.

However, it is possible to connect multiple OUT instructions in parallel.

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

Error

Zero

Carry

OUT

S

o

-

o

o

o

-

-

-

o

-

-

-

-

1

-

-

-

 

 

Function

-Outputs the result of the operation prior to the OUT instruction to the assigned device.

Result of Operation

OUT Instruction

Coil

Contact

Contact A

Contact B

OFF

OFF

OFF

ON

ON

ON

ON

OFF

 

 

Examples)

A program that outputs with an output unit

 

Steps

Instruction

Device

0

LD

X0001

1

OUT

Y0010

2

LD

X0002

3

OUT

Y0011

4

OUT

Y0012

5

END

 

 

 

A program that writes a word device made of a bit instruction

Steps

Instruction

Device

0

LD

X0001

1

OUT

M0005

2

LD

X0002

3

OUT

M0006

4

OUT

M0007

5

END