Mitsubishi Electric MELSEC-L Special Instructions Manual page 63

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

G(P)_BIDIN
Serial Modem
Structured ladder/FBD
G_BIDIN
EN
ENO
Un*
d1
s
d2
The following instruction can go in the dotted squares.
G_BIDIN, GP_BIDIN
■Executing condition
Instruction
G_BIDIN
GP_BIDIN
■Argument
Input/output
Name
argument
Input argument
EN
Un*
s
Output argument
ENO
d1
d2
Setting
Internal device
*1
data
Bit
Word
(s)
(d1)
(d2)
*1 Local devices and file registers per program cannot be used as setting data.
Processing details
This instruction receives data using the bidirectional protocol.
Setting data
Device
Item
(s)[0]
Reception channel
(s)[1]
Reception result
(s)[2]
Number of receive data
(s)[3]
Allowable number of words for
receive data
ST
ENO:=
(EN, Un*, s, d1, d2);
G_BIDIN
Executing condition
Description
Executing condition
Start I/O number of the module
(00 to FE: Higher two digits when expressing the I/
O number in three digits)
Variable that stores control data
Execution result
Start number of the device that stores read data
Variable that turns ON upon completion of the
instruction
d2[1] also turns ON at the time of error completion.
R, ZR
J\
Bit
Setting data
Set the reception channel.
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
The number of received data are stored.
Set the allowable number of words for receive data to be
stored in (d1).
Data type
Bit
ANY16
Array of ANY16 [0..3]
Bit
ANY16
Array of bit [0..1]
U\G
Zn
Word
5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
Constant
Others
Setting range
Setting side
1, 2
User
System
1 or more
System
1 or more
User
5
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents