Chapter 20 Serial Communication Instructions; Sending Data Using The On-Demand Function - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

20
SERIAL COMMUNICATION INSTRUCTIONS
This chapter describes the instructions used commonly by MELSEC iQ-R series modules. For the instructions
when MELSEC-Q series modules are used, refer to the manuals for each module used and create programs.
For precautions when using modules, refer to the following.
 MELSEC iQ-R Module Configuration Manual
20.1

Sending Data Using the On-Demand Function

G(P).ONDEMAND
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions send data of the specified amount from the specified device by using the MC protocol on-demand function.
Ladder
(U)
(s1)
(s2)
FBD/LD
EN
ENO
U
d
s1
s2
■Execution condition
Instruction
G.ONDEMAND
GP.ONDEMAND
Setting data
■Description, range, data type
Operand
Description
(U)
Start I/O number (first three digits in four-digit hexadecimal
representation) of a module
(s1)
Start device where control data is stored
(s2)
Start device where the send data is stored
(d)
Device that turns on for one scan upon completion of the
instruction
When the instruction completes with an error, (d)+1 also
turns on.
EN
Execution condition
ENO
Execution result
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
RnSFCPU RnSFCPU
(Standard)
(Safety)
(d)
Execution condition
ST
ENO:=G_ONDEMAND(EN,U,s1,s2,d);
ENO:=GP_ONDEMAND(EN,U,s1,s2,d);
Range
Data type
00H to FEH
16-bit unsigned binary
Refer to the control data.
Device name
Device name
Bit
Bit
Bit
20 SERIAL COMMUNICATION INSTRUCTIONS
20.1 Sending Data Using the On-Demand Function
20
Data type (label)
ANY16
*1
ANY16
*1
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
BOOL
BOOL
1673

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents