beautypg.com

IAI America TT-C3 User Manual

Page 113

background image

103

INTELLIGENT ACTUATOR

Chapter 4 Commands

2.
Explanation

of
Commands

z IN (Read I/O, flag as binary)

Command, declaration

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command,
declaration

Operand 1

Operand 2

Output

(Output, flag)

Optional

Optional

IN

I/O, flag

I/O, flag

CC

[Function]

Read the I/O ports or flags from the one specified in operand 1 through the other specified in
operand 2, to variable 99 as a binary.

(Note 1)

A maximum of 32 bits can be input.

(Note 2)

When 32 bits have been input and the most significant bit is ON, the value read to variable
99 will be treated as a negative value.

(Note 3)

The read data format can be changed using a FMIO command (refer to the section on FMIO
command).

[Example 1]

IN

16

23

Read input ports 16 through 23, to variable 99 as a
binary.

[Example 2]

LET

1

16

Assign 16 to variable 1.

LET

2

23

Assign 23 to variable 2.

IN

*1

*2

Read the input ports from the content of variable 1
(input port 16) through the content of variable 2 (input
port 23), to variable 99 as a binary.

Binary
Input port number

Binary

Variable 99

This manual is related to the following products: