9 DEDICATED INSTRUCTIONS

9.6 BIDIN Instruction

MELSEC-Q

This instruction receives data using the bidirectional 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)

 

(D2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BIDIN

 

 

 

 

 

 

 

 

 

 

 

 

G.BIDIN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BIDIN

 

 

 

 

 

 

Command

 

 

GP.BIDIN

 

Un

 

 

(S)

 

(D1)

 

 

(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 2

 

Set receive channel

 

 

(S) + 0

Receive channel

1: Channel 1 (CH1 side)

1, 2

User

 

 

2: Channel 2 (CH2 side)

 

 

 

Reception result by a BIDIN instruction are

 

 

(S) + 1

Reception result

stored.

System

0:Normal

(S) + 2

Receive data count

The number of data received is stored.

1

1 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 (P).BIDIN cannot be converted into pulse.

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

9 - 14

9 - 14