Mitsubishi Electronics MELSEC Q series MELSEC L series ユーザーズマニュアル
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
function
transmission
G_ONDEMAND
, , ,
Sends data using the on-demand
function of MC protocol.
function of MC protocol.
GP_ONDEMAND
, , ,
Nonprocedural
protocol
communication
protocol
communication
G_OUTPUT
, , ,
Sends the specified number of data.
GP_OUTPUT
, , ,
G_INPUT
, , ,
Reads the received data.
Bidirectional
protocol
communication
protocol
communication
G_BIDOUT
, , ,
Sends the specified number of data.
GP_BIDOUT
, , ,
G_BIDIN
, , ,
Reads the received data.
GP_BIDIN
, , ,
Communication
status check
status check
G_SPBUSY
,
Reads the data transmission/
reception status using the
instruction.
reception status using the
instruction.
GP_SPBUSY
,
Receive data
clear
clear
ZP_CSET
, , , ,
Clears receive data without stopping
transmission using the
nonprocedural protocol.
transmission using the
nonprocedural protocol.
Data
transmission/
reception
transmission/
reception
Z_BUFRCVS
, ,
Receives data with an interrupt
program using the nonprocedural
protocol or bidirectional protocol.
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.
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.
number of the data to be sent or
received.
Programmable
controller CPU
monitor
controller CPU
monitor
ZP_CSET
, , , ,
Registers and cancels the
programmable controller CPU
monitoring for using the
programmable controller CPU
monitoring function.
programmable controller CPU
monitoring for using the
programmable controller CPU
monitoring function.
Flash ROM user
frame
registration/
reading
frame
registration/
reading
G_PUTE
, , ,
Registers a user frames to the flash
ROM.
ROM.
GP_PUTE
, , ,
G_GETE
, , ,
Reads a user frames from the flash
ROM.
ROM.
GP_GETE
, , ,
Mode switching
ZP_UINI
, ,
Switches the mode, transmission
specification, and host station
number.
specification, and host station
number.
Pre-defined
protocol
communication
protocol
communication
G_CPRTCL
, n1, n2,
,
Executes the protocols and
functional protocols written to the
flash ROM.
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