Mitsubishi Electronics MELSEC Q series MELSEC L series ユーザーズマニュアル

ページ / 412
2.2 Module Dedicated Instruction
2.2.3 Serial communication
2-5
2
INSTRU
CTION 
TABLES
2.2.3  
Serial communication
Classification
Instruction name
Argument
Processing details
Executing 
condition
Applicable 
module
Page
On-demand 
function 
transmission
G_ONDEMAND
, , , 
Sends data using the on-demand 
function of MC protocol.
GP_ONDEMAND
, , , 
Nonprocedural 
protocol 
communication
G_OUTPUT
, , , 
Sends the specified number of data.
GP_OUTPUT
, , , 
G_INPUT
, , , 
Reads the received data.
Bidirectional  
protocol 
communication
G_BIDOUT
, , , 
Sends the specified number of data.
GP_BIDOUT
, , , 
G_BIDIN
, , , 
Reads the received data.
GP_BIDIN
, , , 
Communication 
status check
G_SPBUSY
Reads the data transmission/
reception status using the 
instruction.
GP_SPBUSY
Receive data 
clear
ZP_CSET
, , , , 
Clears receive data without stopping 
transmission using the 
nonprocedural protocol.
Data 
transmission/
reception
Z_BUFRCVS
, , 
Receives data with an interrupt 
program using the nonprocedural 
protocol or bidirectional protocol.
G_PRR
, , 
Sends data by user frame according 
to the specification in user frame 
specification area for transmission 
using the nonprocedural protocol.
GP_PRR
, , 
Initial setting
ZP_CSET
, , , , 
Sets the unit (word/byte) of the 
number of the data to be sent or 
received.
Programmable 
controller CPU 
monitor
ZP_CSET
, , , , 
Registers and cancels the 
programmable controller CPU 
monitoring for using the 
programmable controller CPU 
monitoring function.
Flash ROM user 
frame 
registration/
reading
G_PUTE
, , , 
Registers a user frames to the flash 
ROM.
GP_PUTE
, , , 
G_GETE
, , , 
Reads a user frames from the flash 
ROM.
GP_GETE
, , , 
Mode switching
ZP_UINI
, , 
Switches the mode, transmission 
specification, and host station 
number.
Pre-defined 
protocol 
communication
G_CPRTCL
, n1, n2, 
Executes the protocols and 
functional protocols written to the 
flash ROM.
GP_CPRTCL
, n1, n2, 
s1
s2
d
Serial
s1
s2
d
s1
s2
d
Serial
s1
s2
d
s
d1
d2
s1
s2
d
Serial
s1
s2
d
s
d1
d2
s
d1
d2
d
Serial
d
s1
s2
d1
d2
Serial
s
d
Serial
s
d
s
d
s1
s2
d1
d2
Serial
s1
s2
d1
d2
Serial
s1
s2
d
Serial
s1
s2
d
s1
s2
d
s1
s2
d
s
d
Serial
s
d
Serial
s
d