9 DEDICATED INSTRUCTIONS

9.4 INPUT Instruction

MELSEC-Q

This instruction receives data in any message format specified by the user using the non procedure protocol.

 

 

 

 

 

 

 

 

 

 

 

Applicable device

 

 

 

 

 

 

 

 

 

Set

Internal device

 

 

 

MELSECNET/H,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MELSECNET/10

Special module

 

 

 

 

 

 

 

 

 

data

(System, user)

 

File register

 

Index register Zn

Constant

Others

 

 

Direct J

\

 

U

\G

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

Word

 

 

 

Bit

 

Word

 

 

 

 

 

 

 

 

 

 

 

(S)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(D1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(D2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Instruction

 

[Executing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

code]

 

condition]

 

Command

 

 

 

Un

 

(S)

 

(D1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INPUT

 

 

 

 

 

 

 

 

 

G.INPUT

 

 

 

(D2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set data

Set data

Description

Set by

Data type

Un

Start I/O signal of the module

User

BIN16 bit

(00 to FE: Top two-digit when I/O signals are expressed in 3-digit.)

 

 

 

(S)

Head number of the devices in which control data is stored.

User,

 

system

Device name

 

 

(D1)

Head number of the devices in which receive data is stored.

System

 

(D2)

Bit device number to be turned on at completion of execution.

System

Bit

The file register per local device and program cannot be used as the set data.

Control data

Device

Item

Set data

Setting range

Set by 3

 

Set receive channel

 

 

(S) + 0

Receive channel

1: Channel 1 (CH1 side)

1, 2

User

2:Channel 2 (CH2 side)

Reception result by an INPUT instruction are

(S) + 1

Reception result

stored.

 

 

 

System

0:

Normal

 

 

 

 

1

 

 

 

 

 

Other than 0: Error code

 

 

 

 

 

 

 

 

 

(S) + 2

Receive data count

• Receive data count is stored.

2

0 or more

System

 

(S) + 3

Allowable number of

• Set the allowable number of words for received

1 or more

User

receive data

data that can be stored in (D1).

 

 

 

 

 

POINT

(1)The command of G.INPUT cannot be converted into pulse.

(2)G.INPUT should be executed while the read request of the input/output signal is turned on.

9 - 8

9 - 8