Mitsubishi Electric MELSEC iQ-R Series Manual

Mitsubishi Electric MELSEC iQ-R Series Manual

Communication module function block reference
Hide thumbs Also See for MELSEC iQ-R Series:

Quick Links

MELSEC iQ-R Serial Communication Module
Function Block Reference
Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-R Series

  • Page 1 MELSEC iQ-R Serial Communication Module Function Block Reference...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using the products described under "Relevant products", please read this manual and the relevant manuals carefully and pay full attention to safety to handle the products correctly. The precautions given in this manual are concerned with the products only. For the safety precautions of the programmable controller system, refer to the MELSEC iQ-R Module Configuration Manual.
  • Page 4: Conditions Of Use For The Product

    CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
  • Page 5: Introduction

    Before using the products, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the MELSEC iQ-R series programmable controller to handle the products correctly. Please make sure that the end users read this manual.
  • Page 6: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 7 M+RJ71C24_PutUserFrame ............. . . 24 Overview .
  • Page 8: Relevant Manuals

    [SH-081251ENG] e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated tool. e-Manual has the following features: • Required information can be cross-searched in multiple manuals.
  • Page 9: Terms

    TERMS Unless otherwise specified, this manual uses the following terms. Term Description Buffer memory Memory in an intelligent function module to store data such as setting values and monitor values. For CPU modules, it refers to memory to store data such as setting values and monitor values of the Ethernet function, or data used for data communication of the multiple CPU system function.
  • Page 10: Chapter 1 Overview

    OVERVIEW Function blocks (FBs) in this reference are the module FBs for a MELSEC iQ-R series serial communication module. FB List This section shows the module FB list of this reference. Note that this reference does not describe the FB version information which is displayed such as "_00A"...
  • Page 11: System Configuration

    System Configuration The following shows the system configuration for using the module FBs in this reference. (1) Power supply module (2) CPU module (3) Serial communication module For the specifications of modules to be used, refer to the user's manual of each module. 1 OVERVIEW 1.3 System Configuration...
  • Page 12: Chapter 2 Serial Communication Module Fb

    SERIAL COMMUNICATION MODULE FB M+RJ71C24_SendOndemand Overview Sends data using the on-demand function of SLMP (MC protocol). M+RJ71C24_SendOndemand B: i_bEN o_bENO:B DUT:i_stModule o_bOK:B UW:i_uCh o_bErr:B UW:i_uSendDataLength o_uErrId:UW W:i_uSendData Labels Input label Label Label name Data type Range Description i_bEN Execution ON, OFF ON: The FB is activated.
  • Page 13: Error Code

    ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 46 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 14: M+Rj71C24_Output

    M+RJ71C24_Output Overview Sends the specified data using the nonprocedural protocol. M+RJ71C24_ Output B i_bEN o_bENO B DUT i_stModule o_bOK B UW i_uCh o_bErr B UW i_uSendDataLength o_uErrId UW UW i_uSendData Labels Input label Label Label name Data type Range Description i_bEN Execution ON, OFF...
  • Page 15: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 46 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 16: M+Rj71C24_Input

    M+RJ71C24_Input Overview Reads the data received using the nonprocedural protocol. M+RJ 71C24_Input B: i_bEN o_bENO: B DUT: i_stModule o_bOK: B UW: i_uCh o_bErr: B UW: i_uMaxRecvDataLength o_uErrId: UW o_uRecvDataLength: UW (10) o_uRecvData: UW Labels Input label Label Label name Data type Range Description i_bEN...
  • Page 17: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 46 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 18: M+Rj71C24_Bidirectionaloutput

    M+RJ71C24_BidirectionalOutput Overview Sends the specified data using the bidirectional protocol. M+RJ 71C24_BidirectionalOutput B: i_bEN o_bENO: B DUT: i_stModule o_bOK: B UW: i_uCh o_bErr: B UW: i_uSendDataLength o_uErrId: UW UW: i_uSendData Labels Input label Label Label name Data type Range Description i_bEN Execution ON, OFF...
  • Page 19: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 45 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 20: M+Rj71C24_Bidirectionalinput

    M+RJ71C24_BidirectionalInput Overview Reads the data received using the bidirectional protocol. M+RJ71C24_Bidirectional I nput B: i_bEN o _bENO:B DUT:i_stModule o _bOK:B UW: i_uCh o _bErr: B UW: i_uMaxRecvDataLength o_ uErrId: UW o_uRecvDataLength:UW (10) o_uRecvData: UW Labels Input label Label Label name Data type Range Description...
  • Page 21: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 46 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 22: M+Rj71C24_Readinstructionbusy

    M+RJ71C24_ReadInstructionBusy Overview Reads the transmission status of the data sent/received using the dedicated instructions or FBs. M+RJ71C24_ReadInstructionBusy B: i_bEN o_uCommunicationStatus: UW DUT:i_stModule Labels Input label Label Label name Data type Range Description i_bEN Execution ON, OFF ON: The FB is activated. command OFF: The FB is not activated.
  • Page 23: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 10 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 24: M+Rj71C24_Senduserframe

    M+RJ71C24_SendUserFrame 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. M+RJ71C24_SendUserFrame B: i_bEN o_bENO:B DUT: i_stModule o_bOK: B i_uCh o_bErr: B (10) uCrLfSetting o_uErrId: UW uSendFramePointer uSendFrameCount Labels...
  • Page 25: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 47 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 26: M+Rj71C24_Putuserframe

    M+RJ71C24_PutUserFrame Overview Registers and deletes user frames according to the setting value of the request type. M+RJ71C24_Put UserFrame B: i_bEN o_bENO: B DUT: i_stModule o_bOK: B uRequestType o_bErr: B (10) uFrameNo o_ uErrId: UW uFrameDataLength uFrameData Labels Input label Label Label name Data type Range...
  • Page 27: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 50 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 28: M+Rj71C24_Getuserframe

    M+RJ71C24_GetUserFrame Overview Reads the user frame. M+RJ71C24_GetUserFrame B: i_bEN o_bENO:B DUT: i_stModule o_bOK: B uFramelNo o_bErr: B o_ uErrId: UW i_uMax_FrameDataLength o_uFrameDataLength:UW (10) o_uFrameData: UW Labels Input label Label Label name Data type Range Description i_bEN Execution command ON, OFF ON: The FB is activated.
  • Page 29: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 46 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 30: M+Rj71C24_Execommonprotocol

    2.10 M+RJ71C24_ExeCommonProtocol Overview Executes the protocol registered with GX Works3. M+RJ71C24_ExeCommonProtocol B: i_bEN o_bENO: B DUT: i_stModule o_bOK: B o_bErr: B uNumberOfExecutions o_uErrId: UW (10) uExeProtocolNo o_ u NumberOfExecutions: UW o_ uMatchPacketNo: UW (11) Labels Input label Label Label name Data type Range Description...
  • Page 31 Output label Label Label name Data type Default value Description o_bENO Execution status ON: The execution command is ON. OFF: The execution command is OFF. o_bOK Normal completion This label turns ON for one scan when the operation is completed normally. o_bErr Error completion This label turns ON for one scan when the operation is...
  • Page 32: Fb Details

    FB details Available device ■Serial communication module Module Engineering tool RJ71C24, RJ71C24-R2, RJ71C24-R4 GX Works3 ■CPU module MELSEC iQ-R series CPU modules Basic specifications Item Description Language Ladder diagram Number of basic steps 58 steps The number of steps of the FB embedded in a program depends on the CPU module used, the input/output definitions, and the options setting of GX Works3.
  • Page 33 MEMO 2 SERIAL COMMUNICATION MODULE FB 2.10 M+RJ71C24_ExeCommonProtocol...
  • Page 34: Instruction Index

    INSTRUCTION INDEX ... . . 18 M+RJ71C24_BidirectionalInput ... . 16 M+RJ71C24_BidirectionalOutput ... 28 M+RJ71C24_ExeCommonProtocol .
  • Page 35 MEMO...
  • Page 36 MEMO...
  • Page 37: Revisions

    Japanese manual number: BCN-5999-0370-E This manual confers no industrial property rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 38: Trademarks

    TRADEMARKS The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.   In some cases, trademark symbols such as ' ' or ' ' are not specified in this manual.
  • Page 40 BCN-P5999-0379-E(1912) 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. Specifications subject to change without notice.

This manual is also suitable for:

Rj71c24Rj71c24-r2Rj71c24-r4

Table of Contents