MELSEC iQ-R Serial Communication Module Function Block Reference
MELSEC iQ-R Serial Communication Module Function Block Reference
CONTENTS
2.4 M+RJ71C24_BidirectionalOutput. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5 M+RJ71C24_BidirectionalInput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.6 M+RJ71C24_ReadInstructionBusy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 M+RJ71C24_SendUserFrame. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.8 M+RJ71C24_PutUserFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.9 M+RJ71C24_GetUserFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.10 M+RJ71C24_ExeCommonProtocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
REVISIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
1
1 FUNCTION BLOCK (FB) LIST
This chapter lists the FBs for the MELSEC iQ-R series serial communication module.
Name*1 Description
M+RJ71C24_SendOndemand Sends data using the on-demand function of SLMP (MC protocol).
M+RJ71C24_Output Sends data for a specified data points.
M+RJ71C24_Input Reads the received data.
M+RJ71C24_BidirectionalOutput Sends data for a specified data points.
M+RJ71C24_BidirectionalInput Reads the received data.
M+RJ71C24_ReadInstructionBusy Reads the transmission status of the data sent/received using the dedicated instructions or FBs.
M+RJ71C24_SendUserFrame Sends data using the nonprocedural protocol communication and the user frame according to the
setting of the user frame specification area for sending data.
M+RJ71C24_PutUserFrame Registers and deletes the user frame.
M+RJ71C24_GetUserFrame Reads the user frame.
M+RJ71C24_ExeCommonProtocol Executes the protocol registered with GX Works3.
*1 Note that this reference does not describe the FB version information which is displayed such as "_00A" at the end of FB name.
2.1 M+RJ71C24_SendOndemand
Name
M+RJ71C24_SendOndemand
Overview
Item Description
Overview Sends data using the on-demand function of SLMP (MC protocol).
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻿㼑㼚㼐㻻㼚㼐㼑㼙㼍㼚㼐
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (6)
(5) 㼃䠖㼕㼋㼡㻿㼑㼚㼐㻰㼍㼠㼍
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Send channel i_uCh Word [Unsigned]/ 1, 2 Set the channel to which the data is sent.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Number of send i_uSendDataLength Word [Unsigned]/ 1 or more Set the number of send data points in the units (word/
data points Bit String [16-bit] byte) specified to the following area of the buffer
memory.
• Channel 1 (CH1 side): 150 (96H)
• Channel 2 (CH2 side): 310 (136H)
(5) Send data storage i_uSendData Word [Unsigned]/ Set the start address of the device where the send data
device Bit String [16-bit] is stored.
■Output label
No. Name Variable name Data type Default value Description
(6) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(7) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(8) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(9) Error code o_uErrId Word [Unsigned]/ 0 Stores the error code that has occurred in the FB.
Bit String [16-bit]
i_bEN
o_bENO
o_bOK
o_bErr
o_uErrId 0H
i_bEN
o_bENO
o_bOK
o_bErr
Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
• This FB uses the dedicated instruction GP.ONDEMAND.
• Turn OFF i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned ON. By
turning OFF i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned OFF and
o_uErrId (Error code) is cleared to 0.
Error code
The error code is the same as the one that generates when the G(P).ONDEMAND instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_Output
Overview
Item Description
Overview Sends the specified data using the nonprocedural protocol.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻻㼡㼠㼜㼡㼠
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (6)
(5) 㼁㼃䠖㼕㼋㼡㻿㼑㼚㼐㻰㼍㼠㼍
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Send channel i_uCh Word [Unsigned]/ 1, 2 Set the channel to which the data is sent.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Number of send i_uSendDataLength Word [Unsigned]/ 1 or more Set the number of send data points in the units (word/
data points Bit String [16-bit] byte) specified to the following area of the buffer
memory.
• Channel 1 (CH1 side): 150 (96H)
• Channel 2 (CH2 side): 310 (136H)
(5) Send data storage i_uSendData Word [Unsigned]/ Set the start address of the device where the send data
device Bit String [16-bit] is stored.
■Output label
No. Name Variable name Data type Default value Description
(6) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(7) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(8) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(9) Error code o_uErrId Word [Unsigned]/ 0 Stores the error code that has occurred in the FB.
Bit String [16-bit]
Error code
The error code is the same as the one that generates when the G(P).OUTPUT instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_Input
Overview
Item Description
Overview Reads the data received using the nonprocedural protocol.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻵㼚㼜㼡㼠
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (5)
㼛㼋㼡㻾㼑㼏㼢㻰㼍㼠㼍㻸㼑㼚㼓㼠㼔䠖㼁㼃 (9)
㼛㼋㼡㻾㼑㼏㼢㻰㼍㼠㼍䠖㼁㼃 (10)
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Receive channel i_uCh Word [Unsigned]/ 1, 2 Set the channel that receives the data.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Allowable number i_uMaxRecvDataLen Word [Unsigned]/ 0 or more Set the allowable number of words of the receive data
of receive data gth Bit String [16-bit] that can be stored in the receive data storage device.
points
■Output label
No. Name Variable name Data type Default value Description
(5) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(6) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(7) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(8) Error code o_uErrId Word [Unsigned]/ 0 Stores the generated error code.
Bit String [16-bit]
(9) Number of receive o_uRecvDataLength Word [Unsigned]/ 0 Set the start address of the device to store the number of
data points Bit String [16-bit] receive data points.
• Channel 1 (CH1 side): 150 (96H)
• Channel 2 (CH2 side): 310 (136H)
(10) Receive data o_uRecvData Word [Unsigned]/ 0 Set the start address of the device to store the receive
storage device Bit String [16-bit] data.
Error code
The error code is the same as the one that generates when the G.INPUT instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_BidirectionalOutput
Overview
Item Description
Overview Sends the specified data using the bidirectional protocol.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻮㼕㼐㼕㼞㼑㼏㼠㼕㼛㼚㼍㼘㻻㼡㼠㼜㼡㼠
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (6)
(5) 㼁㼃䠖㼕㼋㼡㻿㼑㼚㼐㻰㼍㼠㼍
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Send channel i_uCh Word [Unsigned]/ 1, 2 Set the channel to which the data is sent.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Number of send i_uSendDataLength Word [Unsigned]/ 1 or more Set the number of send data points in the units (word/
data points Bit String [16-bit] byte) specified to the following area of the buffer
memory.
• Channel 1 (CH1 side): 150 (96H)
• Channel 2 (CH2 side): 310 (136H)
(5) Send data storage i_uSendData Word [Unsigned]/ Set the start address of the device where the send data
device Bit String [16-bit] is stored.
■Output label
No. Name Variable name Data type Default value Description
(6) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(7) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(8) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(9) Error code o_uErrId Word [Unsigned]/ 0 Stores the generated error code.
Bit String [16-bit]
Error code
The error code is the same as the one that generates when the G(P).BIDOUT instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_BidirectionalInput
Overview
Item Description
Overview Reads the data received using the bidirectional protocol.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻮㼕㼐㼕㼞㼑㼏㼠㼕㼛㼚㼍㼘㻵㼚㼜㼡㼠
㼛㼋㼡㻾㼑㼏㼢㻰㼍㼠㼍㻸㼑㼚㼓㼠㼔䠖㼁㼃 (9)
㼛㼋㼡㻾㼑㼏㼢㻰㼍㼠㼍䠖㼁㼃 (10)
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Receive channel i_uCh Word [Unsigned]/ 1, 2 Set the channel that receives the data.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Allowable number i_uMaxRecvDataLen Word [Unsigned]/ 0 or more Set the allowable number of words of the receive data
of receive data gth Bit String [16-bit] that can be stored in the receive data storage device.
points
■Output label
No. Name Variable name Data type Default value Description
(5) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(6) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(7) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(8) Error code o_uErrId Word [Unsigned]/ 0 Stores the generated error code.
Bit String [16-bit]
(9) Number of receive o_uRecvDataLength Word [Unsigned]/ 0 Set the start address of the device to store the number of
data points Bit String [16-bit] receive data points.
• Channel 1 (CH1 side): 150 (96H)
• Channel 2 (CH2 side): 310 (136H)
(10) Receive data o_uRecvData Word [Unsigned]/ 0 Set the start address of the device to store the receive
storage device Bit String [16-bit] data.
Error code
The error code is the same as the one that generates when the G(P).BIDIN instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_ReadInstructionBusy
Overview
Item Description
Overview Reads the transmission status of the data sent/received using the dedicated instructions or FBs.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻾㼑㼍㼐㻵㼚㼟㼠㼞㼡㼏㼠㼕㼛㼚㻮㼡㼟㼥
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋 㼡㻯㼛㼙㼙㼡㼚㼕㼏㼍㼠㼕㼛㼚㻿㼠㼍㼠㼡㼟䠖㼁㼃 (3)
(2) 㻰㼁㼀䠖㼕㼋㼟㼠㻹㼛㼐㼡㼘㼑
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
■Output label
No. Name Variable name Data type Default value Description
(3) Transmission status o_uCommunicationSt Word [Unsigned]/ 0 When the processing using each instruction starts, '1' is
storage device atus Bit String [16-bit] stored in the corresponding bit. When the processing is
completed, '0' is stored.
The following shows the timing when the processing of
each instruction is completed.
• FB: The execution status is turned ON and OFF.
• Dedicated instruction: The completed flag is turned
ON and OFF.
■1st word
• b0: Stores the execution status of the ONDEMAND,
OUTPUT, PRR, and BIDOUT instructions directed at
channel 1.
• b1: Stores the execution status of the INPUT and
BIDIN instructions directed at channel 1.
• b2: Stores the execution status of the ONDEMAND,
OUTPUT, PRR, and BIDOUT instructions directed at
channel 2.
• b3: Stores the execution status of the INPUT and
BIDIN instructions directed at channel 2.
• b4: Stores the execution status of the GETE and
PUTE instructions.
• b5: Stores the execution status of the CPRTCL
instruction directed at channel 1.
• b6: Stores the execution status of the CPRTCL
instruction directed at channel 2.
• b7 to b15: Always stores '0'.
■2nd word
• b0 to b15: Always stores '0'.
o_uCommunicationStatus Result
Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
• This FB uses the dedicated instruction GP.SPBUSY.
Error code
The error code is the same as the one that generates when the G(P).SPBUSY instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_SendUserFrame
Overview
Item Description
Overview Sends data using the nonprocedural protocol communication and the user frame according to the setting of the user frame
specification area for sending data.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻿㼑㼚㼐㼁㼟㼑㼞㻲㼞㼍㼙㼑
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (7)
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Send channel i_uCh Word [Unsigned]/ 1, 2 Set the channel to which the data is sent.
Bit String [16-bit] • 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Additional i_uCrLfSetting Word [Unsigned]/ 0, 1 Set whether or not to add CR/LF to the send data.
specification of CR/ Bit String [16-bit] • 0: CR/LF is not added.
LF • 1: CR/LF is added.
(5) Send pointer i_uSendFramePointer Word [Unsigned]/ 1 to 100 Set the position in the user frame specification area from
Bit String [16-bit] where the frame number data is sent.
(6) Number of outputs i_uSendFrameCount Word [Unsigned]/ 1 to 100 Set the number of user frames to send.
Bit String [16-bit]
■Output label
No. Name Variable name Data type Default value Description
(7) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(8) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(9) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(10) Error code o_uErrId Word [Unsigned]/ 0 Stores the generated error code.
Bit String [16-bit]
Error code
The error code is the same as the one that generates when the G(P).PRR instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_PutUserFrame
Overview
Item Description
Overview Registers and deletes user frames according to the setting value of the request type.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻼㼡㼠㼁㼟㼑㼞㻲㼞㼍㼙㼑
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (7)
(5) 㼁㼃 㻦 㼕㼋㼡㻲㼞㼍㼙㼑㻰㼍㼠㼍㻸㼑㼚㼓㼠㼔
(6) 㼁㼃 㻦 㼕㼋㼡㻲㼞㼍㼙㼑㻰㼍㼠㼍
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
■Output label
No. Name Variable name Data type Default value Description
(7) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
Error code
The error code is the same as the one that generates when the G(P).PUTE instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_GetUserFrame
Overview
Item Description
Overview Reads the user frame.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻳㼑㼠㼁㼟㼑㼞㻲㼞㼍㼙㼑
㼛㼋㼡㻲㼞㼍㼙㼑㻰㼍㼠㼍㻸㼑㼚㼓㼠㼔䠖㼁㼃 (9)
㼛㼋㼡㻲㼞㼍㼙㼑㻰㼍㼠㼍䠖㼁㼃 (10)
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Read frame No. i_FramelNo Word [Unsigned]/ 1000 to 1199 Set the user frame number to be read.
Bit String [16-bit]
(4) Read-allowable i_MaxFrameDataLen Word [Unsigned]/ 1 to 80 Set the number of bytes of the read registration data to
number of bytes gth Bit String [16-bit] be stored in the registration data storage device
(o_uFrameData).
■Output label
No. Name Variable name Data type Default value Description
(5) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(6) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(7) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(8) Error code o_uErrId Word [Unsigned]/ 0 Stores the error code that has occurred in the FB.
Bit String [16-bit]
(9) Number of o_uFrameDataLength Word [Unsigned]/ 0 Set the start address of the device to store the number of
registration bytes Bit String [16-bit] bytes of the read registration data.
(10) Registration data o_uFrameData Word [Unsigned]/ 0 Set the start address of the device to store the read
storage device Bit String [16-bit] registration data.
Error code
The error code is the same as the one that generates when the G(P).GETE instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
Name
M+RJ71C24_ExeCommonProtocol
Overview
Item Description
Overview Executes the protocol registered with GX Works3.
Symbol
㻹㻗㻾㻶㻣㻝㻯㻞㻠㼋㻱㼤㼑㻯㼛㼙㼙㼛㼚㻼㼞㼛㼠㼛㼏㼛㼘
(1) 㻮䠖㼕㼋㼎㻱㻺 㼛㼋㼎㻱㻺㻻䠖㻮 (6)
㼛㼋㼡㻹㼍㼠㼏㼔㻼㼍㼏㼗㼑㼠㻺㼛䠖㼁㼃 (11)
Labels
■Input label
No. Name Variable name Data type Range Description
(1) Execution i_bEN Bit ON: The FB is activated.
command OFF: The FB is not activated.
(2) Module label i_stModule Structures Specify the module to execute this FB.
Specify the module label of relevant modules.
(example: C24_1)
(3) Communication i_uCh Word [Unsigned]/ 1, 2 Set the channel to communicate with the external
channel Bit String [16-bit] device.
• 1: Channel 1 (CH1 side)
• 2: Channel 2 (CH2 side)
(4) Number of i_uNumberOfExecutio Word [Unsigned]/ 1 to 8 Set the number of continuous executions of the protocol.
continuous protocol ns Bit String [16-bit]
executions
(5) Execution protocol i_uExeProtocolNo Word [Unsigned]/ 1 to 128, 201 to 207 Set the protocol number or the special protocol number
number Bit String [16-bit] to be executed. Protocols are executed in the specified
specification (0..7) order of the execution protocol numbers.
Execution protocol
+0
number specification 1
Execution protocol
+7
number specification 8
■Output label
No. Name Variable name Data type Default value Description
(6) Execution status o_bENO Bit OFF ON: The execution command is ON.
OFF: The execution command is OFF.
(7) Normal completion o_bOK Bit OFF This label turns ON for one scan when the operation is
completed normally.
(8) Error completion o_bErr Bit OFF This label turns ON for one scan when the operation is
completed with an error.
(9) Error code o_uErrId Word [Unsigned]/ 0 Stores the error code that has occurred in the FB.
Bit String [16-bit]
2
packet No. Bit String [16-bit] Matched receive
+0
packet No.1
(0..7)
Matched receive
+7
packet No.8
FB details
Item Description
Available device Target module R series C24
CPU module MELSEC iQ-R series CPU modules
Engineering tool GX Works3
Language Ladder diagram
Number of basic steps 58 steps
The number of steps of the FB in a program depends on the CPU model used and input and output definition.
Processing By turning ON i_bEN (Execution command), the protocol written to the flash ROM using the predefined protocol support
function and executing the special protocol.
FB compilation method Macro type
FB operation Pulse execution (multiple scan execution type)
Timing chart of I/O signals The operation of the I/O signals is the same as the one for the following FB.
Page 4 M+RJ71C24_SendOndemand
Restrictions or precautions • This FB does not include the error recovery processing. Program the error recovery processing separately in accordance
with the required system operation.
• This FB uses the dedicated instruction GP.CPRTCL.
• Turn OFF i_bEN (Execution command) after o_bOK (Normal completion) or o_bErr (Error completion) is turned ON. By
turning OFF i_bEN (Execution command), o_bOK (Normal completion) and o_bErr (Error completion) are turned OFF and
o_uErrId (Error code) is cleared to 0.
Error code
The error code is the same as the one that generates when the G(P).CPRTCL instruction is used. Refer to MELSEC iQ-R
Programming Manual (Instructions, Standard Functions/Function Blocks).
24
BCN-P5999-0379-C(1603)
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.