Panasonic SC-HG1 Series Reference Manual
Panasonic SC-HG1 Series Reference Manual

Panasonic SC-HG1 Series Reference Manual

For mitsubishi melsec iq-r series sequencer
Table of Contents

Advertisement

Quick Links

Edition 1.0
2019.06
panasonic.net/id/pidsx
SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer
SC-HG1 Series
FB Library Reference Manual
for Mitsubishi MELSEC
iQ-R series Sequencer
1/184
WUME-SCHG1IQRFB-1

Advertisement

Table of Contents
loading

Summary of Contents for Panasonic SC-HG1 Series

  • Page 1 SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer Edition 1.0 2019.06 panasonic.net/id/pidsx SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 1/184...
  • Page 2 Software License Agreement Panasonic Industrial Devices SUNX Co., Ltd. (“PIDSX”) grants to you a license to use this Software on condition that you accept this Agreement. You must read this Software License Agreement (this “Agreement”) carefully before using this Software.
  • Page 3 The FB is added to the "library" on the [Library] tab displayed when you choose [View] - [Docking Window] - [Element Selection] - [Library] from the menu. [Customer Precautions] * Sample programs are not guaranteed to work correctly. * Use them at your own risk. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 3/184...
  • Page 4: Table Of Contents

    SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer [Table of contents] Reference Manual Revision History ..............................6 1. Overview ....................................7 1.1. Functional overview ................................7 1.2. Functional contents of the FB library ..........................7 1.3. System configuration example ............................8 1.4.
  • Page 5 Appendix 5.2. Copying and pasting the FBs for the second and subsequent master/local modules ........182 Appendix 5.3. Replacing the global labels of the FBs for the second and subsequent master/local modules ....183 SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 6: Reference Manual Revision History

    Reference Manual Revision History Reference manual number Revision date Record of changes WUME-SCHG1IQRFB-1 2019/06/03 Newly created SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 6/184...
  • Page 7: Overview

    This FB library is intended for use in accessing the information output from, and the configuration and management, of optically connectable controllers via Panasonic Industrial Devices SUNX Co., Ltd.'s CC-Link Communication Unit SC-HG1-C or CC-Link IE Field Communication Unit SC-HG1-CEF connected to the MELSEC CC-Link/CC-Link IE Field master module.
  • Page 8: System Configuration Example

    Use an NPN output type controller that can be connected via the horizontal coupling Controller connector. For information on compliant controllers, see "Appendix 1.3 Connectable models". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 8/184...
  • Page 9: Global Labels

    Add an index register "Z8" to the starting device configured for the Assign module parameter link refresh setting. (device/label) In the following example, W1000Z8 is configured. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 9/184...
  • Page 10: Checking The Number Of Index Register Points

    Ensure that the number of index register points are higher than or equal to 10. Navigation window → Parameter → (CPU module) → CPU parameter Memory/device setting → Index register setting Figure 1.4.2-1: Link refresh setting examples SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 10/184...
  • Page 11: Identifying The Starting Device

    Contact-Type Digital Displacement Sensor HG-S Series User's Manual 1.6. Precaution Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 11/184...
  • Page 12: Details Of The Fb Library

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 12/184...
  • Page 13 If an FB error occurs: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 13/184...
  • Page 14 MELSEC iQ-R CC-Link System Master/Local Module User's Manual (Application) GX Works3 Operating Manual CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 14/184...
  • Page 15 ON to OFF and then turned from Check that Execution Status (o_bENO) turned OFF OFF to ON while Execution Status and then turn ON Execution Command (i_bEN). (o_bENO) was ON SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 15/184...
  • Page 16 Turns ON upon normal completion of the FB. Error Completion o_bErr Turns ON upon error completion of the FB. Word Error Code o_uErrId Stores the error code that occurred in the FB. [Unsigned] SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 16/184...
  • Page 17 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 18: P+Sunx-Sc-Hg1_Clearerror_R (Error Clear)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 18/184...
  • Page 19 If executed without a communication unit error: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 19/184...
  • Page 20 MELSEC iQ-R CC-Link System Master/Local Module User's Manual (Application) GX Works3 Operating Manual CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 20/184...
  • Page 21 ON to OFF and then turned from Check that Execution Status (o_bENO) turned OFF OFF to ON while Execution Status and then turn ON Execution Command (i_bEN). (o_bENO) was ON SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 21/184...
  • Page 22 Turns ON upon normal completion of the FB. Error Completion o_bErr Turns ON upon error completion of the FB. Word Error Code o_uErrId Stores the error code that occurred in the FB. [Unsigned] SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 22/184...
  • Page 23 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 24: P+Sunx-Sc-Hg1_Checkoutdata_R (Controller Output Read)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 24/184...
  • Page 25 Controller judgment output 2 o_u3SensorOutput[2] Controller judgment output 3 FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 25/184...
  • Page 26 If an FB error occurs: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 26/184...
  • Page 27 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 27/184...
  • Page 28 ON to OFF and then turned Check that Execution Status (o_bENO) turned OFF and from OFF to ON while Execution Status then turn ON Execution Command (i_bEN). (o_bENO) was ON SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 28/184...
  • Page 29 Detected Value (o_d15DetectedValue). Word Response Data i_uResponseData 0 to 3 0: Judgment value [Unsigned] 1: Normal measurement value 2: Calculated value 3: Sensor head value SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 29/184...
  • Page 30 Stores the controller detected values. Double 15 arrays exist and each array stores the Detected value o_d15DetectedValue[n] word detected value of the (n+1)th controller from [Signed] the parent device. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 30/184...
  • Page 31 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 32: P+Sunx-Sc-Hg1_Executecommand_R (Execute Specified Command)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 32/184...
  • Page 33 The result of reading is output to Command Response (o_d15CommandResponse). FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 33/184...
  • Page 34 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 34/184...
  • Page 35 SC-HG1-C or SC-HG1-CEF connected to each module, create the FBs for use with the second and subsequent modules as instructed in "Appendix 5 How to Use FBs across two or more master/local modules ". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 35/184...
  • Page 36 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 36/184...
  • Page 37 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 37/184...
  • Page 38 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 38/184...
  • Page 39 15 arrays exist and each store write command Double responses. Command Response o_d15CommandResponse[n] word n=0: Master device [Signed] n=1: 1st slave device n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 39/184...
  • Page 40 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 41: P+Sunx-Sc-Hg1_Executeteaching_R (Execute Teaching)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 41/184...
  • Page 42 Normal Completion (o_bOK) turns ON when the teaching is complete. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 42/184...
  • Page 43 [Normal completion] [Error completion] If Teaching Steps (i_uTeachStep) is 0 If an FB error occurs: movement If a module error occurs: If Teaching Steps (i_uTeachStep) is 1 SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 43/184...
  • Page 44 ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns Input Signal (i_bInputSignal) is turned from OFF to ON with Waiting Signal (o_bSignalWait) OFF SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 44/184...
  • Page 45 SC-HG1-C or SC-HG1-CEF connected to each module, create the FBs for use with the second and subsequent modules as instructed in "Appendix 5 How to Use FBs across two or more master/local modules ". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 45/184...
  • Page 46 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 46/184...
  • Page 47 Input Signal (i_bInputSignal) is ON and Turn OFF Input Signal (i_bInputSignal) and then turn ON Execution Command (i_bEN) is ON Execution Command (i_bEN) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 47/184...
  • Page 48 Check for any problem. Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 48/184...
  • Page 49 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 49/184...
  • Page 50 1st slave device [Unsigned] n=14: 14th slave device n=15: Communication unit ON: Waiting for teaching input Waiting Signal o_bSignalWait OFF: No teaching accepted SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 50/184...
  • Page 51 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 52: P+Sunx-Sc-Hg1_Setouthold_R (Output Operation Setting)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetOutHold_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 52/184...
  • Page 53 For more information on the output operation in each measurement mode, refer to "Contact-Type Digital Displacement Sensor HG-S Series User's Manual" FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 53/184...
  • Page 54 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 54/184...
  • Page 55 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 55/184...
  • Page 56 Specify a value from 0 to 1999999. the valid range Self Delay Timer (i_uSelfDelayTimer) Specify a value from 0 to 9999. is outside the valid range SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 56/184...
  • Page 57 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). FFFF Module error occurrence For information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 57/184...
  • Page 58 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 58/184...
  • Page 59 H6**1, H7**1, or H8**1 requires you to Self Delay Timer i_uSelfDelayTimer 0 to 9999 (decimal) [Unsigned] set the self delay timer. The setting unit is [ms]. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 59/184...
  • Page 60 15 arrays exist and store hold settings. n=0: Master device Word n=1: 1st slave device Read Hold Setting o_u15ReadHoldSetting[n] [Unsigned] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 60/184...
  • Page 61 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 62: P+Sunx-Sc-Hg1_Setresponsespeed_R (Write Speed Mode)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetResponseSpeed_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 62/184...
  • Page 63 Speed Mode (i_uResponseSpeed) are ignored and no setting takes place. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 63/184...
  • Page 64 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 64/184...
  • Page 65 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 65/184...
  • Page 66 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 66/184...
  • Page 67 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 67/184...
  • Page 68 15 arrays exist and store speed modes. n=0: Master device Word n=1: 1st slave device Read Speed Mode o_u15ReadResponseSpeed[n] [Unsigned] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 68/184...
  • Page 69 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 70: P+Sunx-Sc-Hg1_Setleverratio_R (Lever Ratio Setting)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetLeverRatio_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 70/184...
  • Page 71 In this case, the values input to Set Controller (i_uSetController) and Write Lever Ratio (i_uLeverRatio) are ignored and no setting takes place. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 71/184...
  • Page 72 If a module error occurs: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 72/184...
  • Page 73 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 73/184...
  • Page 74 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 74/184...
  • Page 75 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 75/184...
  • Page 76 15 arrays exist and store lever ratios. n=0: Master device Word n=1: 1st slave device Read Lever Ratio o_u15ReadLeverRatio[n] [Unsigned] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 76/184...
  • Page 77 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 78: P+Sunx-Sc-Hg1_Setoutputmode_R (Output Mode)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetOutputMode_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 78/184...
  • Page 79 Flag (i_bNCFlag) are ignored and no setting takes place. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 79/184...
  • Page 80 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 80/184...
  • Page 81 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 81/184...
  • Page 82 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 82/184...
  • Page 83 16-bit data other than 0 [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 83/184...
  • Page 84 Word Read Output Mode o_uReadOutputMode OFF: No. [Unsigned] bit 0: Master device bit 1: 1st slave device bit 14: 14th slave device bit 15: Not used SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 84/184...
  • Page 85 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 86: P+Sunx-Sc-Hg1_Setthreshold_R (Threshold Settings)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetThreshold_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 86/184...
  • Page 87 FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 87/184...
  • Page 88 If a module error occurs: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 88/184...
  • Page 89 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 89/184...
  • Page 90 Make Hysterisis Value (i_udHysteresis) smaller than the larger than the difference between Low difference between Low Threshold (i_dLowThreshold) and Threshold (i_dLowThreshold) and High High Threshold (i_dHighThreshold) Threshold (i_dHighThreshold) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 90/184...
  • Page 91 Execution Status (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 91/184...
  • Page 92 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 92/184...
  • Page 93 Double word High Threshold i_dHighThreshold -1999999 to 1999999 Specify the High Threshold value. [Signed] Double word Hysterisis Value i_udHysteresis 0 to 1999999 Specify the Hysterisis value. [Unsigned] SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 93/184...
  • Page 94 15 arrays exist and store Read Hysterisis values. Double n=0: Master device Read Hysterisis o_ud15ReadHysteresis[n] word n=1: 1st slave device [Unsigned] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 94/184...
  • Page 95 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 96: P+Sunx-Sc-Hg1_Executepreset_R (Turn On Or Off The Preset)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_ExecutePreset_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 96/184...
  • Page 97 Value (i_dPresetData), and Reset Flag (i_bReset) are ignored and no setting takes place. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 97/184...
  • Page 98 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 98/184...
  • Page 99 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 99/184...
  • Page 100 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 100/184...
  • Page 101 16-bit data other than 0 [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 101/184...
  • Page 102 15 arrays exist and store Read Preset values. n=0: Master device Double word n=1: 1st slave device Read Preset Data o_d15ReadPresetData [Signed] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 102/184...
  • Page 103 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 104: P+Sunx-Sc-Hg1_Setdatabank_R (Save Or Load Data Bank)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetDataBank_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 104/184...
  • Page 105 If an FB error occurs: If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 105/184...
  • Page 106 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 106/184...
  • Page 107 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 107/184...
  • Page 108 ON, OFF When started with this flag OFF, the FB saves data bank. Word Data Bank No. i_uDataBankNo 1 to 3 Specify the data bank number. [Unsigned] SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 108/184...
  • Page 109 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 110: P+Sunx-Sc-Hg1_Setalarm_R (Alarm Setting)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_SetAlarm_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 110/184...
  • Page 111 FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 111/184...
  • Page 112 If a module error occurs: If Execution Command (i_bEN) is turned from ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 112/184...
  • Page 113 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 113/184...
  • Page 114 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 114/184...
  • Page 115 16-bit data other than 0 bit 0: Master device [Unsigned] bit 1: 1st slave device bit 13: 13th slave device bit 14: 14th slave device bit 15: OFF (Not used) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 115/184...
  • Page 116 15 arrays exist and store Read Alarm Threshold values. Double n=0: Master device Read Alarm Threshold o_d15ReadAlarmThreshold[n] word n=1: 1st slave device [Signed] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 116/184...
  • Page 117 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 118: P+Sunx-Sc-Hg1_Checkmaintenance_R (Get Maintenance Information)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_CheckMaintenance_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 118/184...
  • Page 119 Peak Value (o_d15MaxPeakValue), Maximum Peak Value Operation Log (o_ud15MaxPeakValueLog), Over Stroke Log (o_ud15OverStrokeLog), respectively. FB compilation Macro type method FB behavior Pulse execution type (multi-scan execution type) i_bEN input condition None SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 119/184...
  • Page 120 If an FB error occurs: If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 120/184...
  • Page 121 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 121/184...
  • Page 122 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 122/184...
  • Page 123 (i_bIeFieldFlag) is OFF Station No. i_uStationNo communication unit you want to [Unsigned] 1 to 120 (in decimal) when configure. CC-Link IE Field Flag (i_bIeFieldFlag) is ON SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 123/184...
  • Page 124 15 arrays exist and store maximum peak values. Double n=0: Master device Maximum Peak Value o_d15MaxPeakValue[n] word n=1: 1st slave device [Signed] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 124/184...
  • Page 125 15 arrays exist and over stroke operation log entries. Double n=0: Master device Over Stroke Log o_ud15OverStrokeLog[n] word n=1: 1st slave device [Unsigned] n=13: 13th slave device n=14: 14th slave device SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 125/184...
  • Page 126 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 127: P+Sunx-Sc-Hg1_Executekeylock_R (Turn On Or Off The Keylock)

    I/O definitions, and the option settings of GX Works3. For information on GX Works3 option settings, refer to GX Works3 Operating Manual. FB dependencies P+SUNX-SC-HG1_ExecuteKeyLock_R └P+SUNX-SC-HG1_ExecuteCommand_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 127/184...
  • Page 128 If Execution Command (i_bEN) is turned from If a module error occurs: ON to OFF before Normal Completion (o_bOK) or Error Completion (o_bErr) turns ON: SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 128/184...
  • Page 129 CC-Link Communication Unit for Digital Displacement Sensors SC-HG1-C User’s Manual CC-Link IE Field Communication Unit for HG series SC-HG1-CEF User’s Manual Contact-Type Digital Displacement Sensor HG-S Series User's Manual SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 129/184...
  • Page 130 (o_bENO) was ON Check the Module Error Code (o_ud16ModuleErrId). For FFFF Module error occurrence information on module error codes, see "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 130/184...
  • Page 131 Execute this FB with this label OFF to Reset Flag i_bReset ON, OFF turn on the keylock and set the Eco mode in accordance with the value of Set Eco Mode (i_bEcoModeSet) . SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 131/184...
  • Page 132 Restrictions on the use of modules and sequencer CPUs and on their combinations are not included in the scope of this chapter. Before use, be sure to read the User's Manuals of the products you are going to use. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 133: Appendix 1. Connection Procedure

    Failure to correctly handle the product may result in a dangerous situation where minor or moderate injury may occur or where only physical damage may occur. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 133/184...
  • Page 134: Appendix 1.2. Connection Procedure Workflow

    Connection confirmation See "Appendix 1.6 Connection check". Troubleshooting Working normally? For information on what to do if the connection check fails, see "Appendix 2 Troubleshooting". Exit SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 134/184...
  • Page 135: Appendix 1.3. Connectable Models

    Be sure to connect the horizontal coupling connector. (Note 1): Select termination resistors suitable for the cables you are using and connect them to the stations on both ends of the line. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 135/184...
  • Page 136: Appendix 1.5. Various Settings

    Baud Rate 156kbps 6.25kbps 2.5Mbps 5Mbps 10Mbps Before turning on the power, set the CC-Link operating mode, using the mode setting switch. Figure 1.5.1-1: SC-HG1-C hardware setup SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 136/184...
  • Page 137: Appendix 1.5.2 Cc-Link Ie Field Communication Unit Setup

    With the mode setting switch (SW1) OFF, turn OFF and back ON the power to start the CC-Link IE Field network communication with the specified network number. * Before turning back ON the power supply, set the station number by operating the rotary switch. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 137/184...
  • Page 138: Appendix 1.5.3 Cc-Link Parameter Setup

    Enter the series, model, and program language as shown in figure 1.5.3-1. Change the model name depending on the actual system configuration. Figure 1.5.3-1: Parameter settings ([New]) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 138/184...
  • Page 139 Set the Start XY of the CC-Link master/local module to the Start I/O No. (i_uStartIONo) of each FB. Figure 1.5.3-3: System parameters (after reading the mounting state) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 139/184...
  • Page 140 I/O Assignment and set various configuration information. Carefully note that if the settings you entered here differ from the actual system configuration, an error occurs. Figure 1.5.3-4: System parameters (manual setting) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 140/184...
  • Page 141 CC-Link mode1 CC-Link mode2 CC-Link mode3 Version Ver.1 Ver.2 Ver.2 Number of occupied stations 4-station occupied 2-station occupied 4-station occupied Extended cyclic settings Eightfold setting Fourfold setting SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 141/184...
  • Page 142 Figure 1.5.3-6: CC-Link configuration settings (for CC-Link mode2) Figure 1.5.3-7: CC-Link configuration settings (when using CSP+) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 142/184...
  • Page 143 The "device names" and "start" you specify here relate to the global label configuration. For more information, see "1.4.3 Identifying the starting device". Figure 1.5.3-8: Link refresh settings (for CC-Link mode1) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 143/184...
  • Page 144: Appendix 1.5.4 Cc-Link Ie Field Parameter Setup

    Enter the series, type, and program language as shown in figure 1.5.4-1. Change the model name depending on the actual system configuration. Figure 1.5.4-1: Parameter settings ([New]) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 144/184...
  • Page 145 Set the Start XY of the CC-Link IE Field master/local module to the Start I/O No.(i_uStartIONo) of each FB. Figure 1.5.4-3: System parameters (after reading the mounting state) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 145/184...
  • Page 146 Carefully note that if the settings you entered here differ from the actual system configuration, an error occurs. Select "RJ71EN71 (CCIEF)" as the module model name. Figure 1.5.4-4: System parameters (manual setting) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 146/184...
  • Page 147 Navigation window → Parameter → Module information→ (Start XY): RJ71EN71 → Module parameter Set the network number as needed. Figure 1.5.4-5: Module parameters (required settings) Figure 1.5.4-6: Module parameters (basic settings) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 147/184...
  • Page 148 If you want to connect to multiple slave stations, configure them so that their ranges from the start to the end do not overlap with each other. Figure 1.5.4-7: Network configuration settings Figure 1.5.4-8: Network configuration settings (when using CSP+) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 148/184...
  • Page 149 The "device names" and "start" you specify here relate to the global label configuration. For more information, see "1.4.3 Identifying the starting device". Figure 1.5.4-9: Link refresh settings SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 149/184...
  • Page 150: Appendix 1.6. Connection Check

    In this example, you check the Remote READY flag (X107B) of station number 1 to see whether or not SC-HG1-C (CC-Link mode1) can communicate. Figure 1.6.1-1: Checking the Remote READY flag Figure 1.6.1-2: SC-HG1-C (CC-Link mode1) remote input (RX) memory map SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 150/184...
  • Page 151: Appendix 1.6.2Checking Sc-Hg1-Cef

    In this example, you check the Remote READY flag (X107B) of station number 1 to see whether or not SC-HG1- CEF can communicate. Figure 1.6.2-1: Checking the Remote READY flag Figure 1.6-2-2: SC-HG1-CEF remote input (RX) memory map SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 151/184...
  • Page 152: Appendix 2. Troubleshooting

    (Red)  Check if the modules are correctly connected. Flashes Controller error  Connect the communication unit before power ON.  Turn back ON the power. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 152/184...
  • Page 153: Appendix 2.2. Connection Error (Sc-Hg1-Cef)

    Status Description of error Meaning STS2  Check whether or not the network number setting is outside indicator Network number setting error the valid range. (Red) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 153/184...
  • Page 154 Port1/2 L ER  If the loopback function is configured on the master station, Transmission path error indicator check if the ring connection is implemented. (Yellow) SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 154/184...
  • Page 155 Communication unit error are correctly configured. Sending commands to the (Red) controllers requires you to correctly configure the send commands, send data, send destinations, and destination controllers. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 155/184...
  • Page 156: Appendix 2.3. Fb Error Code (O_Uerrid) List

    Turn OFF Input Signal (i_bInputSignal) and then turn (264) Command (i_bEN) is ON ON Execution Command (i_bEN) Hold Setting (i_uHoldSetting) is outside the valid Specify a value within the valid range. (265) range SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 156/184...
  • Page 157 Alarm Delay (i_uAlarmDelay) is outside the valid Specify a value within the valid range. (278) range Alarm Threshold (i_dAlarmThreshold) is outside Specify a value within the valid range. (279) the valid range SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 157/184...
  • Page 158 Check for any problem. Check the Module Error Code (o_ud16ModuleErrId). FFFF For information on module error codes, see Module error occurrence (65535) "Appendix 2.4 Module error code (o_u16ModuleErrId) list". SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 158/184...
  • Page 159: Appendix 2.4. Module Error Code (O_Ud16 Moduleerrid) List

    (800) Check the controller status. Controller did not respond within 100 ms of a Check the controller connection status. Check for (900) command request. faulty controllers. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 159/184...
  • Page 160 Do not request a command until the controller finishes processing. A CRC error occurred during A CRC error may have occurred due to noise. Check (2800) controller-to-controller communication. and correct the wiring. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 160/184...
  • Page 161 A command was requested while the controller was Could not accept a request because of processing a processing another command. (4095) command. Do not request a command until the controller finishes processing. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 161/184...
  • Page 162: Appendix 3. Fb Library Use Examples

    Execution Command ON P+SUNX-SC-HG1_ClearError_R P+SUNX-SC-HG1_CheckOutData_R P+SUNX-SC-HG1_ExecuteCommand_R P+SUNX-SC-HG1_ExecuteTeaching_R P+SUNX-SC-HG1_SetOutHold_R P+SUNX-SC-HG1_SetResponseSpeed_R P+SUNX-SC-HG1_SetLeverRatio_R P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_CheckMaintenance_R P+SUNX-SC-HG1_ExecuteKeyLock_R P+SUNX-SC-HG1_ExecuteCommand_R Read Flag ON P+SUNX-SC-HG1_SetOutHold_R P+SUNX-SC-HG1_SetResponseSpeed_R P+SUNX-SC-HG1_SetLeverRatio_R P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_ExecutePreset_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 162/184...
  • Page 163 FB name Purpose (what occurs when FB is ON) P+SUNX-SC-HG1_ExecutePreset_R Reset Flag ON P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_ExecuteKeyLock_R P+SUNX-SC-HG1_ExecuteCommand_R Set Controller P+SUNX-SC-HG1_ExecuteTeaching_R P+SUNX-SC-HG1_SetOutHold_R P+SUNX-SC-HG1_SetResponseSpeed_R P+SUNX-SC-HG1_SetLeverRatio_R P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 163/184...
  • Page 164 High Threshold D20,D21 HYS Setting D22,D23 P+SUNX-SC-HG1_ExecutePreset_R Preset Value P+SUNX-SC-HG1_SetDataBank_R Load Flag ON Data Bank No. P+SUNX-SC-HG1_SetAlarm_R Alarm Delay D26,D27 Alarm Setting Value P+SUNX-SC-HG1_ExecuteKeyLock_R Set Eco Mode SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 164/184...
  • Page 165 P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_CheckMaintenance_R P+SUNX-SC-HG1_ExecuteKeyLock_R M101 P+SUNX-SC-HG1_InitializeUnit_R Normal completion of FB P+SUNX-SC-HG1_ClearError_R P+SUNX-SC-HG1_CheckOutData_R P+SUNX-SC-HG1_ExecuteCommand_R P+SUNX-SC-HG1_ExecuteTeaching_R P+SUNX-SC-HG1_SetOutHold_R P+SUNX-SC-HG1_SetResponseSpeed_R P+SUNX-SC-HG1_SetLeverRatio_R P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_CheckMaintenance_R P+SUNX-SC-HG1_ExecuteKeyLock_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 165/184...
  • Page 166 P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_CheckMaintenance_R P+SUNX-SC-HG1_ExecuteKeyLock_R D100 P+SUNX-SC-HG1_InitializeUnit_R FB error code P+SUNX-SC-HG1_ClearError_R P+SUNX-SC-HG1_CheckOutData_R P+SUNX-SC-HG1_ExecuteCommand_R P+SUNX-SC-HG1_ExecuteTeaching_R P+SUNX-SC-HG1_SetOutHold_R P+SUNX-SC-HG1_SetResponseSpeed_R P+SUNX-SC-HG1_SetLeverRatio_R P+SUNX-SC-HG1_SetOutputMode_R P+SUNX-SC-HG1_SetThreshold_R P+SUNX-SC-HG1_ExecutePreset_R P+SUNX-SC-HG1_SetDataBank_R P+SUNX-SC-HG1_SetAlarm_R P+SUNX-SC-HG1_CheckMaintenance_R P+SUNX-SC-HG1_ExecuteKeyLock_R SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 166/184...
  • Page 167 D400 to D429 P+SUNX-SC-HG1_CheckMaintenance_R Total Stroke Operation Log D430 to D459 Maximum Peak Value D460 to D489 Maximum Peak Value Operation Log D490 to D519 Over Stroke Log SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 167/184...
  • Page 168 When M0 is turned ON, this FB initializes the SC-HG1-C with its station number set to 1. (b) P+SUNX-SC-HG1_ClearError_R (error clear) When M0 is turned ON, this FB clears the error of the SC-HG1-C with its station number set to 1. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 168/184...
  • Page 169 When M0 is turned ON, this FB outputs the output values and judgment values of the controller connected to the SC-HG1-C with its station number set to 1 to the 3 words from D140 to D142 and to the 30 words from D143 to D172, respectively. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 170 1. You do not have to enter the value of D1 because it is disabled when M2 is turned ON. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 170/184...
  • Page 171 ON M3 (Input signal) at your desired time. Be sure to provide the M103 (Teaching Wait Flag) to turn ON M3 (Input signal) because otherwise an FB error may occur. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 171/184...
  • Page 172 When M0 is turned ON, this FB outputs the hold settings for all the controllers connected to the SC-HG1-C with its station number set to 1 to the 15 words from D210 to D224. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 173 When M0 is turned ON, this FB sets the response speed to 10 ms on the second controller connected to the SC-HG1-C with its station number set to 1. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 174 When M0 is turned ON, this FB outputs the output logic of the controllers connected to the SC-HG1-C with its station number set to 1 to D255. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 175 SC-HG1-C with its station number set to 1 to the 30 words from D260 to D289, the 30 words from D290 to D319, and the 30 words from D320 to D349, respectively. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 176 When M0 is turned ON, this FB save the setting content of the fifth to eighth controllers connected to the SC-HG1-C with its station number set to 1 to the data bank number 1. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 177 When M0 is turned ON, this FB configures the first to eighth controllers connected to the SC-HG1-C with its station number set to 1 to output an alarm if the measurement value is 8.0000mm or higher for 10 ms. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 178 When M0 is turned ON, this FB sets the keylock and Eco mode on the controllers connected to the SC-HG1-C with its station number set to 1. SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1...
  • Page 179: Appendix 4. Password-Based Read/Write Protection Of A Ladder Program

    Figure 4-1: Selecting the file to protect with a password Select [Read/Write Protection] in the [Target Password] box, set the password, then press the [Completed] button. Figure 4-2: Setting the password SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 179/184...
  • Page 180 [File Password Setting] dialog prompts you for password authentication, so you can determine whether or not a password has been set. Figure 4-4: Checking the file password settings SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 180/184...
  • Page 181: Appendix 5. How To Use Fbs Across Two Or More Master/Local Modules

    CC-Link or CC-Link IE Field master/local modules with an index register. You do not have to separate the index registers "Z8" and "Z9" from those for the first master/local module. Figure 5.1-1: Examples of configuring global labels SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 181/184...
  • Page 182: Appendix 5.2. Copying And Pasting The Fbs For The Second And Subsequent Master/Local Modules

    When you rename the pasted FB, carefully note that you cannot enter "+" or "-" (hyphen). Figure 5.2-1 FB: Copying a FB Figure 5.2-2: Pasting the FB Figure 5.2-3 Renaming the FB SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 182/184...
  • Page 183: Appendix 5.3. Replacing The Global Labels Of The Fbs For The Second And Subsequent Master/Local Modules

    CC-Link or CC-Link IE Field master/local modules" in the Replace Device/Label. (Figure 5.3-1) Complete the replacement by pressing [Replace All]. Similarly, replace the global labels "G_bRY", "G_dRWr", and "G_dRWw" with new global labels. Figure 5.3-1: Replacing "G_bRX" SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer WUME-SCHG1IQRFB-1 183/184...
  • Page 184 Panasonic Industrial Devices SUNX Co., Ltd. ■Overseas Sales Division (Head Office): 2431-1 Ushiyama-cho, Kasugai-shi, Aichi, 486-0901, Japan ■Telephone: +81-568-33-7861 ■Facsimile: +81-568-33-8591 panasonic.net/id/pidsx/global For sales network, please visit our website. © Panasonic Industrial Devices SUNX Co., Ltd. 2019 WUME-SCHG1IQRFB-1 184/184...

Table of Contents