13 SERIAL COMMUNICATION MODULE DEDICATED COMMANDS
13.6 On-demand function
283
13
On-demand (command: 2101)
Send data using the on-demand function from CPU module. Any message other than send data is added automatically in the
message format selected in the communication protocol setting. ('FE' is specified to the 'PC No.' for the access route.)
• Communication protocol setting is MC protocol (Format 1) to MC protocol (Format 4): Message format of 1C frame
• Communication protocol setting is MC protocol (Format 5): Message format of 4C frame
When using 2C/3C/4C frame (Format 1 to 4), register the message format of each format in the user frame.
Page 29 Message Formats of Each Protocol
For the user frames, refer to the following manuals.
• MELSEC iQ-R Serial Communication Module User's Manual (Application)
• MELSEC-Q/L Serial Communication Module User's Manual (Application)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
There is no request data for this command.
■Response data
Data stored in response data
■Command
It is added only when the message is sent with MC protocol format 5 specified in the communication protocol setting.
■Transmission data
The transmission data specified in the dedicated instruction 'G(P).ONDEMAND' is stored.
The order of data differ depending on the setting of "Word/byte units designation" in Engineering tool.
For byte units, regard the word data as 2-byte data and send numerical values from lower byte (L: bits 0 to 7).
When transmitting 2-word data (1234H, 5678H)
• Word unit (0)
• Byte unit (1)
Binary code
ASCII code Binary code
ASCII code Binary code
Command Transmission data
123
31
H
32
H
33
H
4
34
H
567
35
H
36
H
37
H
8
38
H
341
33
H
34
H
31
H
2
32
H
785
37
H
38
H
35
H
6
36
H