background image

SC-HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ-R series Sequencer 

WUME-SCHG1IQRFB-1 

76/184 

 

Name 

Variable name 

Data type 

Valid range 

Description 

Writen Lever Ratio 

i_uLeverRatio 

Word 
[Unsigned] 

1 to 1000 

The input value x 0.1 is applied as 
the lever ratio. 

 
■ Output labels 

Name 

Variable name 

Data type 

Default 

Description 

Execution Status 

o_bENO 

Bit 

OFF 

Stays ON while the FB is running. 

Normal Completion 

o_bOK 

Bit 

OFF 

Turns ON upon normal completion of the FB. 

Error Completion 

o_bErr 

Bit 

OFF 

Turns ON upon error completion of the FB. 

Error Code 

o_uErrId 

Word 
[Unsigned] 

Stores the error code that occurred in the FB. 

Module Error Code 

o_ud16ModuleErrId[n] 

Double 
word 
[Unsigned] 

Stores the error code that occurred in the 
communication unit. 
16 arrays exist and store module error codes. 
n=0: Master device 
n=1: 1st slave device 
to 
n=14: 14th slave device 
n=15: Communication unit 

Read Lever Ratio 

o_u15ReadLeverRatio[n] 

Word 
[Unsigned] 

15 arrays exist and store lever ratios. 
n=0: Master device 
n=1: 1st slave device 
to 
n=13: 13th slave device 
n=14: 14th slave device 

 

Summary of Contents for SC-HG1 Series

Page 1: ...ibrary Reference Manual for Mitsubishi MELSEC iQ R series Sequencer WUME SCHG1IQRFB 1 1 184 SC HG1 Series FB Library Reference Manual for Mitsubishi MELSEC iQ R series Sequencer Edition 1 0 2019 06 panasonic net id pidsx ...

Page 2: ... SOFTWARE e g BUGS SECURITY HOLES AND MALFUNCTION MODIFICATION OF THIS SOFTWARE DISTRIBUTION OF THIS SOFTWARE OR OTHERWISE IN CONNECTION WITH THIS SOFTWARE Article 4 Term 4 1 This Agreement shall come into effect upon your unsealing the package of this Software or your downloading installing or launching this Software or the like 4 2 PIDSX may terminate this Agreement immediately if you breach any...

Page 3: ... Register to Library List to select and import your desired FB from the list of programs with a file extension of mslm If the menu is disabled open an existing project or create a new project 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 correctl...

Page 4: ...ecute teaching 41 2 6 P SUNX SC HG1_SetOutHold_R output operation setting 52 2 7 P SUNX SC HG1_SetResponseSpeed_R write speed mode 62 2 8 P SUNX SC HG1_SetLeverRatio_R lever ratio setting 70 2 9 P SUNX SC HG1_SetOutputMode_R output mode 78 2 10 P SUNX SC HG1_SetThreshold_R threshold settings 86 2 11 P SUNX SC HG1_ExecutePreset_R turn on or off the preset 96 2 12 P SUNX SC HG1_SetDataBank_R save or...

Page 5: ...ErrId list 156 Appendix 2 4 Module Error Code o_ud16 ModuleErrId list 159 Appendix 3 FB Library Use Examples 162 Appendix 4 Password based read write protection of a ladder program 179 Appendix 5 How to Use FBs across two or more master local modules 181 Appendix 5 1 Configuring the global labels for the second and subsequent CC Link or CC Link IE Field master local modules 181 Appendix 5 2 Copyin...

Page 6: ...rary Reference Manual for Mitsubishi MELSEC iQ R series Sequencer WUME SCHG1IQRFB 1 6 184 Reference Manual Revision History Reference manual number Revision date Record of changes WUME SCHG1IQRFB 1 2019 06 03 Newly created ...

Page 7: ...ithout reboot 2 P SUNX SC HG1_ClearError_R Error clear is executed 3 P SUNX SC HG1_CheckOutData_R Read connecting controller output and detected value 4 P SUNX SC HG1_ExecuteCommand_R Set command execution 5 P SUNX SC HG1_ExecuteTeaching_R Perform teaching for set controller on own timing 6 P SUNX SC HG1_SetOutHold_R Output operation setting 7 P SUNX SC HG1_SetResponseSpeed_R Execute to read or wr...

Page 8: ...fer to GX Works3 Operating Manual 5 Communication cable Connect the CC Link IE Field master local module and the communication unit Use a cable recommended by the CC Link Partner Association or compliant with the following specifications Ethernet cable compliant with the 1000BASE T standard Category 5e or higher STP with double shields straight cable 6 Windows PC Configure various settings using t...

Page 9: ...t VAR_GLOBAL Assign device label Add an index register Z9 to the starting device configured for the module parameter link refresh setting In the following example Y1000Z9 is configured 3 G_dRWr The global label for remote register RWr access is described below Item Description Label name Enter G_dRWr Data type Select double word signed Class Select VAR_GLOBAL Assign device label Add an index regis...

Page 10: ...1 4 1 1 Examples of configuring global labels 1 4 2 Checking the number of index register points Two index registers Z9 and Z8 are used 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 ...

Page 11: ...lated manuals MELSEC iQ R CPU Module User s Manual Startup MELSEC iQ R CPU Module User s Manual Application MELSEC iQ R CC Link System Master Local Module User s Manual Startup MELSEC iQ R CC Link System Master Local Module User s Manual Application MELSEC iQ R Ethernet CC Link IE User s Manual Startup MELSEC iQ R CC Link IE Field Network User s Manual Application MELSEC iQ R Programming Manual CP...

Page 12: ...vices Target module RJ61BT11 Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 280 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definit...

Page 13: ...and i_bEN is turned ON this FB requests initialization FB compilation method Macro type FB behavior Pulse execution type multi scan execution type i_bEN input condition None I O signal flow movement Normal completion Error completion 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 ...

Page 14: ...he ability to turn OFF Execution Command i_bEN 6 This FB does not check the module error 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index register Z9 Do not use Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index register to operate the remote output RY 10 Do not run this FB on any device other than SC H...

Page 15: ...and i_bEN is ON Turn ON Execution Command i_bEN with CC Link IE Field Flag i_bIeFieldFlag OFF 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Command i_bEN turned OFF before normal or error completion Check tha...

Page 16: ...s on the range of the number of input output points of the target CPU module For more information refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 decimal Specify the station number of the communication u...

Page 17: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 18: ...Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 273 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings ...

Page 19: ...rred Normal Completion o_bOK turns ON in one scan FB compilation method Macro type FB behavior Pulse execution type multi scan execution type i_bEN input condition None I O signal flow movement Normal completion If executed with a communication unit error If executed without a communication unit error Error completion If an FB error occurs If Execution Command i_bEN is turned from ON to OFF before...

Page 20: ...alization results in the error code 200 in hexadecimal even if each input label is set to a correct input value 6 Configure the global label as instructed in 1 4 Global labels 7 This FB uses the index register Z9 Do not use Z9 in an interrupt program 8 This FB results in an ignorable double coil warning because it uses the index register to operate the remote output RY 9 Do not run this FB on any ...

Page 21: ...nd i_bEN is ON Turn ON Execution Command i_bEN is ON with CC Link IE Field Flag i_bIeFieldFlag OFF 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Command i_bEN turned OFF before normal or error completion Chec...

Page 22: ...s on the range of the number of input output points of the target CPU module For more information refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 decimal Specify the station number of the communication u...

Page 23: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 24: ... module RJ61BT11 RJ71EN71 Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 573 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definition...

Page 25: ...data 0 Judgment value 1 Normal measurement value 2 Calculated value 3 Sensor head value For information on the judgment value normal measurement value calculated value and sensor head value refer to Contact Type Digital Displacement Sensor HG S Series User s Manual Sensor Output o_uSensorOutput has three arrays and outputs the output data in accordance with the following table Output label Output ...

Page 26: ... iQ R series Sequencer WUME SCHG1IQRFB 1 26 184 Item Description I O signal flow movement Normal completion Error completion 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 ...

Page 27: ...ree groups consisting of the master device and slave devices 1 to 6 slave devices 7 to 13 and slave device 14 Then this FB acquires the Sensor Output o_u3SensorOutput in a batch fashion Carefully note that due to the above reason executing this FB in CC Link mode 1 on SC HG1 C while varying the displacement amount may cause differences in the relationship between the detected value and output 8 Co...

Page 28: ... the target communication unit 103 Response Data i_uResponseData is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Command i_bEN turned OFF before...

Page 29: ...ge of the number of input output points of the target CPU module For more information refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag...

Page 30: ...utput o_u3SensorOutput n Word Unsigned 0 Stores the word information consisting of 16 pieces of bit information that represents the connected controller s output status bit 0 Master device bit 1 1st slave device to bit 13 13th slave device bit 14 14th slave device 3 arrays exist and the output occurs in accordance with the following o_u3SensorOutput 0 Controller judgment output 1 o_u3SensorOutput ...

Page 31: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 32: ...BT11 RJ71EN71 Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1135 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the o...

Page 33: ... value input to Set Controller i_uSetController is ignored and the command is written to and executed on all the connected controllers To execute writing input the written data to Command Data i_dCommandData If Read Flag i_bReadFlag is ON the value input to Set Controller i_uSetController is ignored and the command is read from and executed on all the connected controllers regardless of whether Al...

Page 34: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 35: ...e value to Command Response o_d15CommandResponse Similarly executing a write only command with Read Flag i_bReadFlag ON turns ON Normal Completion o_bOK but does not execute writing Check the attributes of each command documented in the SC HG1 C SC HG1 CEF User s Manual and configure this FB with correct input values 8 Executing writing with this FB in CC Link mode 1 on SC HG1 C executes the comma...

Page 36: ... iQ R CC Link System Master Local Module User s Manual Application MELSEC iQ R Ethernet CC Link IE User s Manual Startup MELSEC iQ R CC Link IE Field Network User s Manual Application GX Works3 Operating Manual 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...

Page 37: ... applied to a controller beyond the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 105 Input Command i_uCommand is outside the valid range Enter the correct command 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings c...

Page 38: ...decimal the number of the starting I O where the target CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you want to...

Page 39: ...mmand Output labels Name Variable name Data type Default Description Execution Status o_bENO Bit OFF Stays ON while the FB is running Normal Completion o_bOK Bit OFF Turns ON upon normal completion of the FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n...

Page 40: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 41: ...odule RJ61BT11 RJ71EN71 Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1044 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions...

Page 42: ...shold and the smaller as the Low Threshold regardless the order you input them in If you select 3 point teaching the displacement amount settings are sorted in the descending order regardless the order you input them in the value in the middle between the maximum and the median is as the High Threshold the value in the middle between the median and the minimum as the Low Threshold Upon completion ...

Page 43: ...ishi MELSEC iQ R series Sequencer WUME SCHG1IQRFB 1 43 184 Item Description I O signal flow movement Normal completion If Teaching Steps i_uTeachStep is 0 If Teaching Steps i_uTeachStep is 1 Error completion If an FB error occurs If a module error occurs ...

Page 44: ...Description I O signal flow movement Normal completion If Teaching Steps i_uTeachStep is 2 Error completion If Execution Command i_bEN is turned from ON to OFF before Normal Completion o_bOK or Error Completion o_bErr turns ON Input Signal i_bInputSignal is turned from OFF to ON with Waiting Signal o_bSignalWait OFF ...

Page 45: ...Once the Input signal is accepted to turn OFF Execution Command i_bEN teaching is not performed If this is the case execute teaching from the 1st point again 8 Executing this FB in CC Link mode 1 on SC HG1 C executes the command once for each of the three groups consisting of the master device and slave devices 1 to 6 slave devices 7 to 13 and slave device 14 Carefully note that SC HG1 C CC Link m...

Page 46: ...C iQ R CC Link System Master Local Module User s Manual Application MELSEC iQ R Ethernet CC Link IE User s Manual Startup MELSEC iQ R CC Link IE Field Network User s Manual Advanced GX Works3 Operating Manual 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 S...

Page 47: ...rectly indicate the target communication unit 104 Set to a controller where Set Controller i_uSetController is set to 0 or does not exist Make the value of Set Controller i_uSetController greater than 0 Check if the setting is not applied to a controller beyond the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 106 Teaching Steps i_uTeachS...

Page 48: ..._bEN This error code is output also when Execution Command i_bEN is intentionally turned OFF before completion 202 Execution Command i_bEN was turned from ON to OFF and then turned from OFF to ON while Execution Status o_bENO was ON Check that Execution Status o_bENO turned OFF and then turn ON Execution Command i_bEN 203 Input Signal i_bInputSignal is turned from OFF to ON with Waiting Signal o_b...

Page 49: ...odule For more information refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bI...

Page 50: ...nt to execute teaching An FB error occurs if you turn it ON with Waiting Signal o_bSignalWait OFF Output labels Name Variable name Data type Default Description Execution Status o_bENO Bit OFF Stays ON while the FB is running Normal Completion o_bOK Bit OFF Turns ON upon normal completion of the FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Un...

Page 51: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 52: ...s Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1353 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Works3 Fo...

Page 53: ...s case other set values are ignored and no setting takes place If Read Flag i_bReadFlag is OFF you can execute various settings by entering the data values corresponding to hold settings in Hold Setting i_uHoldSetting Setting values Measurement mode Trigger mode Self trigger edge direction Self trigger delay 0 Sample hold One shot Leading edge Static span 1 Peak hold Hold Trailing edge Delay timer...

Page 54: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 55: ...lave device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index ...

Page 56: ...he Station No i_uStationNo settings correctly indicate the target communication unit 104 Set to a controller where Set Controller i_uSetController is set to 0 or does not exist Make the value of Set Controller i_uSetController greater than 0 Check if the setting is not applied to a controller beyond the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController...

Page 57: ...rmal or error completion Check that Normal Completion o_bOK or Error Completion o_bErr has turned ON and then turn OFF Execution Command i_bEN This error code is output also when Execution Command i_bEN is intentionally turned OFF before completion 202 Execution Command i_bEN was turned from ON to OFF and then turned from OFF to ON while Execution Status o_bENO was ON Check that Execution Status o...

Page 58: ...mal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wan...

Page 59: ...e 1 Trailing edge Self trigger delay bits 3 to 0 0 Static span 1 Delay timer Self Triger Level i_dSelfTriggerLevel Double word Signed 1999999 to 1999999 decimal Setting Hold Setting i_uHoldSetting to H6 H7 or H8 requires you to set the self trigger level The setting x 0 0001mm is applied to the controller as the self trigger level Static Span i_udStaticSpan Double word Unsigned 0 to 1999999 decima...

Page 60: ...upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication unit Read Hold Setting o_u15ReadHo...

Page 61: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 62: ...U Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1227 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Wo...

Page 63: ...rdance with the value input to Speed Mode i_uResponseSpeed When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the speed modes for all the connected controllers are output to Read Speed Mode o_u15ReadResponseSpeed In this case the values input to Set Controller i_uSetController and Speed Mode i_uResponseSpeed are ignored and no setting takes place FB compilation method ...

Page 64: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 65: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 66: ...the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 10D Speed Mode i_uResponseSpeed is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicat...

Page 67: ...mal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wan...

Page 68: ...ON upon normal completion of the FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to...

Page 69: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 70: ...el MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1232 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Works3 For inf...

Page 71: ...nce with the value input to Write Lever Ratio i_uLeverRatio When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the lever ratios for all the connected controllers are output to Read Lever Ratio o_u15ReadLeverRatio 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 met...

Page 72: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 73: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 74: ...e maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 10E Write Lever Ratio i_uLeverRatio is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indic...

Page 75: ...mal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wan...

Page 76: ...Turns ON upon normal completion of the FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave dev...

Page 77: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 78: ...Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1231 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings...

Page 79: ... controller specified by Set Controller i_uSetController If Execution Command i_bEN is turned ON with NC Flag i_bNCFlag ON the setting NC is applied to the controller specified by Set Controller i_uSetController When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the output logic settings for all the connected controllers are output to Read Output Mode o_uReadOutputMode...

Page 80: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 81: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 82: ...the Start is not applied to a controller beyond the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Comm...

Page 83: ...mal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wan...

Page 84: ...pletion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication un...

Page 85: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 86: ...et CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1417 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of ...

Page 87: ...Threshold i_dLowThreshold and Hysteresis value i_udHysteresis When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the High Threshold Low Threshold and Hysterisis values for all the connected controllers are output to Read High Threshold o_d15ReadHighThreshold Read Low Threshold o_d15ReadLowThreshold and Read Hysterisis o_ud15ReadHysteresis In this case the various input...

Page 88: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 89: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 90: ...ler i_uSetController greater than 0 Check if the setting is not applied to a controller beyond the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 10F The Low Threshold i_dLowThreshold value is higher than the High Threshold i_dHighThreshold value Correct the settings so that the Low Threshold i_dLowThreshold value is lower than the High Th...

Page 91: ...rmal or error completion Check that Normal Completion o_bOK or Error Completion o_bErr has turned ON and then turn OFF Execution Command i_bEN This error code is output also when Execution Command i_bEN is intentionally turned OFF before completion 202 Execution Command i_bEN was turned from ON to OFF and then turned from OFF to ON while Execution Status o_bENO was ON Check that Execution Status o...

Page 92: ...imal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wa...

Page 93: ...Data type Valid range Description Low Threshold i_dLowThreshold Double word Signed 1999999 to 1999999 Specify the Low Threshold value High Threshold i_dHighThreshold Double word Signed 1999999 to 1999999 Specify the High Threshold value Hysterisis Value i_udHysteresis Double word Unsigned 0 to 1999999 Specify the Hysterisis value ...

Page 94: ...n the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication unit Read Low Threshold o_d15ReadLowThreshold n Double word Signed 0 15 arrays exist and store Read Low Threshold values n 0 Master device n 1 1st slave device to n 13 13th slave device n 14 14th slave device Read High Threshold o_d15ReadHighThre...

Page 95: ...ry Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 96: ...Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1285 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Works3 For ...

Page 97: ...f Execution Command i_bEN is turned ON with the Reset Flag i_bReset ON the preset is reset When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the preset values stored in all the connected controllers are output to Read Preset Data o_d15ReadPresetData In this case the values input to Set Controller i_uSetController Preset Value i_dPresetData and Reset Flag i_bReset are ...

Page 98: ...scription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 99: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 100: ... the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 114 Preset Value i_dPresetData is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicat...

Page 101: ...imal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wa...

Page 102: ... Completion o_bOK Bit OFF Turns ON upon normal completion of the FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Maste...

Page 103: ...ory Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 104: ...s Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1202 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Works3 Fo...

Page 105: ... the value of Data Bank No i_uDataBankNo if Load Flag i_bLoadFlag is OFF or if Load Flag i_bLoadFlag is ON loads the data bank identified by the value Data Bank No i_uDataBankNo FB compilation method Macro type FB behavior Pulse execution type multi scan execution type i_bEN input condition None I O signal flow movement Normal completion Error completion If an FB error occurs If Execution Command ...

Page 106: ...device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index register to oper...

Page 107: ... the maximum number of connected units Also check if the 15th bit of Set Controller i_uSetController is not ON 115 Data Bank No i_uDataBankNo is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicat...

Page 108: ... O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you want to configure Set Controller i_...

Page 109: ...de that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication unit FB Version Upgrade History Precaution This chapter describes the functions of function blocks FBs Restrictions on th...

Page 110: ...SEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1352 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX Works3 For informati...

Page 111: ...eshold If Execution Command i_bEN is turned ON with the Reset Flag i_bReset ON the alarm setting for the specified controller is reset When Execution Command i_bEN is turned ON with Read Flag i_bReadFlag ON however the Alarm Delay and Alarm Threshold values for all the connected controllers are output to Read Alarm Delay o_u15ReadAlarmDelay and Read Alarm Threshold o_d15ReadAlarmThreshold In this ...

Page 112: ...escription I O signal flow movement Normal completion Read Flag i_bReadFlag is ON When it is OFF only the controller settings are changed Error completion 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 If a module error occurs ...

Page 113: ... device 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index regi...

Page 114: ...f the 15th bit of Set Controller i_uSetController is not ON 116 Alarm Delay i_uAlarmDelay is outside the valid range Specify a value within the valid range 117 Alarm Threshold i_dAlarmThreshold is outside the valid range Specify a value within the valid range 200 Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and th...

Page 115: ...imal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Specify the station number of the communication unit you wa...

Page 116: ...e FB Error Completion o_bErr Bit OFF Turns ON upon error completion of the FB Error Code o_uErrId Word Unsigned 0 Stores the error code that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Co...

Page 117: ...ory Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 118: ... CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1358 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settings of GX...

Page 119: ...d ON this FB outputs the maintenance information for all the connected controllers to Total Stroke Operation Log o_ud15TotalStrokeLog Maximum Peak Value o_d15MaxPeakValue Maximum Peak Value Operation Log o_ud15MaxPeakValueLog Over Stroke Log o_ud15OverStrokeLog respectively FB compilation method Macro type FB behavior Pulse execution type multi scan execution type i_bEN input condition None ...

Page 120: ...Sequencer WUME SCHG1IQRFB 1 120 184 Item Description I O signal flow movement Normal completion Error completion 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 If a module error occurs ...

Page 121: ...l label as instructed in 1 4 Global labels 7 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 8 This FB results in an ignorable double coil warning because it uses the index register to operate the remote output RY 9 Do not run this FB on any device other than SC HG1 C or SC HG1 CEF 10 If you are using two or more CC Link CC Link IE Field master local modules...

Page 122: ... Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Command i_bEN turned OFF before normal or error completion Check that Normal Completion o_bOK or Error Completion o_bErr has turned ON and then turn OFF Execution Co...

Page 123: ...th this flag ON to start the FB on SC HG1 CEF Start I O No i_uStartIONo Word Unsigned Depends on the range of the number of input output points of the target CPU module For more information refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is...

Page 124: ...odule Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication unit Total Stroke Operation Log o_ud15TotalStrokeLog n Double word Unsigned 0 15 arrays exist and store total stroke operation log entries n 0 Master...

Page 125: ...15MaxPeakValueLog n Double word Unsigned 0 15 arrays exist and store Maximum peak value operation log entries n 0 Master device n 1 1st slave device to n 13 13th slave device n 14 14th slave device Over Stroke Log o_ud15OverStrokeLog n Double word Unsigned 0 15 arrays exist and over stroke operation log entries n 0 Master device n 1 1st slave device to n 13 13th slave device n 14 14th slave device...

Page 126: ...ory Precaution This chapter describes the functions of function blocks FBs 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 Version Date Description 00A 2018 03 06 Newly created ...

Page 127: ...1 Target CPU Series Model MELSEC iQ R series R04CPU R04ENCPU R08CPU R08ENCPU R16CPU R16ENCPU R32CPU R32ENCPU R120CPU R120ENCPU Target engineering tool GX Works3 Version 1 030G or later Program language Ladder Number of basic steps 1234 Steps for MELSEC iQ R series The number of FB steps incorporated into a program differs depending on the CPU module in use the I O definitions and the option settin...

Page 128: ... sets both the keylock and Eco mode If you turn OFF Set Eco Mode i_bEcoModeSet and turn ON Execution Command i_bEN it sets only the keylock When Reset Flag i_bReset is ON this FB ignores Set Eco Mode i_bEcoModeSet and turns off the keylock and Eco mode FB compilation method Macro type FB behavior Pulse execution type multi scan execution type i_bEN input condition None I O signal flow movement Nor...

Page 129: ... 14 Carefully note that SC HG1 C CC Link mode 1 does not allow you to execute writing on controllers belonging to different groups in the same scan timing 7 Configure the global label as instructed in 1 4 Global labels 8 This FB uses the index registers Z8 and Z9 Do not use Z8 and Z9 in an interrupt program 9 This FB results in an ignorable double coil warning because it uses the index register to...

Page 130: ... Remote READY flag OFF Check whether or not an error has occurred in the communication unit Check if the Start I O No i_uStartIONo and the Station No i_uStationNo settings correctly indicate the target communication unit 201 Execution Command i_bEN turned OFF before normal or error completion Check that Normal Completion o_bOK or Error Completion o_bErr has turned ON and then turn OFF Execution Co...

Page 131: ...ation refer to the CPU User s Manual Specify in hexadecimal the number of the starting I O where the target CC Link CC Link IE Field master local module is installed For example specify H0A0 if the starting I O No is 00A0 Station No i_uStationNo Word Unsigned 1 to 64 in decimal when CC Link IE Field Flag i_bIeFieldFlag is OFF 1 to 120 in decimal when CC Link IE Field Flag i_bIeFieldFlag is ON Spec...

Page 132: ...de that occurred in the FB Module Error Code o_ud16ModuleErrId n Double word Unsigned 0 Stores the error code that occurred in the communication unit 16 arrays exist and store module error codes n 0 Master device n 1 1st slave device to n 14 14th slave device n 15 Communication unit FB Version Upgrade History Precaution This chapter describes the functions of function blocks FBs Restrictions on th...

Page 133: ... 1 5 Related manuals To use those products take sufficient safety care and handle them correctly In particular power supplies and other hazardous parts should be connected and wired by quantified engineers who have expertise in electrical and mechanical engineering These Safety Precautions use two safety flags to indicate different levels of danger Warning and Caution Failure to correctly handle t...

Page 134: ...ttings see Appendix 1 5 Various settings Check the connection using GX Works3 See Appendix 1 6 Connection check For information on the wiring of connectors for the connection to the communication unit see Appendix 1 4 Wiring to the communication unit For information on what to do if the connection check fails see Appendix 2 Troubleshooting Troubleshooting Connection confirmation Working normally E...

Page 135: ... devices whether they are cable or wire saving type Type Model name Master device HG SC101 Slave device Cable type HG SC111 HG SC112 Wire saving type HG SC113 Appendix 1 4 Wiring to the communication unit Before wiring the devices turn off the power The power to SC HG1 C SC HG1 CEF is supplied from the master device via the horizontal coupling connector Be sure to connect the horizontal coupling c...

Page 136: ...ect the communication unit to the CC Link network set the station number the baud rate and the CC Link operation mode Set the baud rate setting switch with reference to the following table Baud Rate Setting Switch Baud Rate 0 156kbps 1 6 25kbps 2 2 5Mbps 3 5Mbps 4 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 ...

Page 137: ... number With the communication unit powered OFF turn ON the operating mode setting switch to turn ON the power Once you power ON the communication unit the STS1 indicator green flashes to indicate that you are now in network number setting mode So operate the rotary switch to set the network number The network number is configurable within the range of 01 to EF in hexadecimal When you are done set...

Page 138: ...wer is turned ON with the mode setting switch SW1 OFF Carefully note that if you change the rotary switch setting after power ON the ERR indicator red flashes Appendix 1 5 3 CC Link parameter setup Open GX Works3 to configure these settings Use the following steps to create PLC configuration data and then configure the CC Link slaves 1 Creating a new project common Project New Enter the series mod...

Page 139: ...ad the CPU module configuration Once the setup is complete the Start XY of the CC Link master local module becomes the Start I O No i_uStartIONo of the FB common input for this FB library In the settings shown below Figure 1 5 3 3 H0000 becomes the input value Navigation window Parameter System Parameter Figure 1 5 3 2 System parameters Figure 1 5 3 3 System parameters after reading the mounting s...

Page 140: ... PC where the target CPU module and GX Works3 are already installed is NOT connected via USB you must select 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 ...

Page 141: ...his time you can restrict the setting items by using CSP of SC HG1 C Ensure that the red framed information you configure or check here is the same as configured on the communication unit The mode settings for SC HG1 C are restricted depending on the operation mode you configure Refer to the following table to configure the settings CC Link mode2 and CC Link mode3 uses the extended cyclic function...

Page 142: ...Library Reference Manual for Mitsubishi MELSEC iQ R series Sequencer WUME SCHG1IQRFB 1 142 184 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 ...

Page 143: ...table show the number of link points for SC HG1 C Check the number of link points as needed The first character on the link side should be 0 Figure 1 5 3 8 shows an example where only one unit of SC HG1 C is connected and used in CC Link mode1 Operation mode Number of link points RX RY RWr RWw CC Link mode1 128 16 CC Link mode2 384 64 CC Link mode3 448 64 CPU side settings Specify the bit and word...

Page 144: ...en GX Works3 to configure these settings Use the following steps to create PLC configuration data and then configure the CC Link IE Field slaves 1 Creating a new project common Project New 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 ...

Page 145: ... of the CC Link IE Field master local module becomes the Start I O No i_uStartIONo of the FB common input for this FB library In the settings shown below Figure 1 5 4 3 H0000 becomes the input value Navigation window Parameter System Parameter Figure 1 5 4 2 System parameters Figure 1 5 4 3 System parameters after reading the mounting state Set the Start XY of the CC Link IE Field master local mod...

Page 146: ... module and GX Works3 are already installed is NOT connected via USB you must select 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 4 4 System parameters manual setting Select RJ71EN71 CCIEF as the module model name ...

Page 147: ...l module Next configure the module parameters Under Required Settings set Network Number Under Basic Settings set Network Configuration Settings and Link Refresh Settings Navigation window Parameter Module information Start XY RJ71EN71 Module parameter Figure 1 5 4 5 Module parameters required settings Figure 1 5 4 6 Module parameters basic settings Set the network number as needed ...

Page 148: ... enclosed in a red frame to the station number used by the communication unit Set the RX RY and RWw RWr settings enclosed in a blue frame so that the number of points for the RX RY settings are 128 and the number of points for the RWw RWr settings 64 Using SC HG1 CEF s CSP at this time ensures that the number of points for the RX RY and RWw RWr settings are entered If you want to connect to multip...

Page 149: ...matches all the slave station information The following table show the number of link points for SC HG1 CEF Check the number of link points as needed The first character on the link side should be 0 Figure 1 5 4 9 shows an example where only one unit of SC HG1 CEF is connected and used RX RY RWr RWw Number of link points 128 64 CPU side settings Specify the bit and word devices for the refresh tar...

Page 150: ...dule and restart the PC to check the communication Online Monitor Device Buffer Memory Batch Monitor Once you enter the starting device in the device name box all the information from the 1st station becomes visible 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 Fig...

Page 151: ... restart the PC to check the communication Online Motor Device Buffer Memory Batch Monitor Once you enter the starting device in the device name box all the information from the 1st station becomes visible 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...

Page 152: ...llers The power supply capacity varies depending on the number of connected controllers Referring to the specifications of the connected controllers check if the power supply capacity is sufficient L ERR Indicator Red ON Station number setting error Check whether or not the station number is outside the valid range Flashes Settings changed after power ON Change the switch settings before power ON ...

Page 153: ...r supply indicator Green OFF Power supply error Check the power supply wiring Check whether or not the power 24V is supplied to the communication unit The power supply capacity varies depending on the controller type and the number of connected controllers Confirm the specifications of the connected controllers STS2 indicator Red ON Mode selection error Check if the mode setting switch is correctl...

Page 154: ...opped and the link stop period is ongoing ERR indicator Red ON Transmission path error A failure related to network transmission paths may have occurred Check the communication cable for breaks and imperfect connection If the communication cable is not an Ethernet cable compliant with the 1000BASE T standards communication may fail Check that the cable length between stations is not in excess of 1...

Page 155: ...ct the communication unit without turning OFF the master device Turn back ON the power STS2 indicator Red ON Communication unit error Check if the controllers are correctly connected Do not connect the communication unit without turning OFF the master device Check if the settings for sending commands to the controllers are correctly configured Sending commands to the controllers requires you to co...

Page 156: ...E Field Flag i_bIeFieldFlag OFF 103 259 Response Data i_uResponseData is outside the valid range Specify a value within the valid range 104 260 Set to a controller where Set Controller i_uSetController is set to 0 or does not exist Make the value of Set Controller i_uSetController greater than 0 or turn ON All Controller Set i_bAllSetRequest Check if the setting is not applied to a controller beyo...

Page 157: ...reshold value is lower than the High Threshold i_dHighThreshold value 110 272 Low Threshold i_dLowThreshold is outside the valid range Specify a value within the valid range 111 273 High Threshold i_dHighThreshold is outside the valid range Specify a value within the valid range 112 274 Hysterisis Value i_udHysteresis is outside the valid range Specify a value within the valid range 113 275 Hyster...

Page 158: ...ecution Command i_bEN This error code is output also when Execution Command i_bEN is intentionally turned OFF before completion 202 514 Execution Command i_bEN was turned from ON to OFF and then turned from OFF to ON while Execution Status o_bENO was ON Check that Execution Status o_bENO turned OFF and then turn ON Execution Command i_bEN 203 515 Input Signal i_bInputSignal is turned from OFF to O...

Page 159: ... range exceeded The head value is invalid Check the head status 191 401 Calibration was not correctly performed Calibration failed For information on the calibration procedure refer to Contact Type Digital Displacement Sensor HG S Series User s Manual 1F4 500 Teaching was attempted with no alarm specified or the display range exceeded The head value is invalid Check the head status 1F5 501 Teachin...

Page 160: ...rn back ON the power If the communication still fails the controller may be faulty 898 2200 A request was sent to a non connected slave controllers This FB library is designed to output 102 to Error Code o_uErrId and therefore 898 hexadecimal is not output to Module Error Code o_ud16ModuleErrId Check if any other ladder program does not send a command request to non existent slave controllers 960 ...

Page 161: ...atus Check for faulty controllers C1C 3100 The number of connected slave controllers is more than 14 You can connect up to 14 slave controllers Check and correct the number of slave controllers connected C80 3200 CC Link communication is down Data link was disconnected Check if the connectors are correctly connected FFF 4095 Could not accept a request because of processing a command A command was ...

Page 162: ...itializeUnit_R Execution Command ON b P SUNX SC HG1_ClearError_R c P SUNX SC HG1_CheckOutData_R d P SUNX SC HG1_ExecuteCommand_R e P SUNX SC HG1_ExecuteTeaching_R f P SUNX SC HG1_SetOutHold_R g P SUNX SC HG1_SetResponseSpeed_R h P SUNX SC HG1_SetLeverRatio_R i P SUNX SC HG1_SetOutputMode_R j P SUNX SC HG1_SetThreshold_R k P SUNX SC HG1_ExecutePreset_R l P SUNX SC HG1_SetDataBank_R m P SUNX SC HG1_...

Page 163: ...t Flag ON m P SUNX SC HG1_SetAlarm_R o P SUNX SC HG1_ExecuteKeyLock_R D1 d P SUNX SC HG1_ExecuteCommand_R Set Controller e P SUNX SC HG1_ExecuteTeaching_R f P SUNX SC HG1_SetOutHold_R g P SUNX SC HG1_SetResponseSpeed_R h P SUNX SC HG1_SetLeverRatio_R i P SUNX SC HG1_SetOutputMode_R j P SUNX SC HG1_SetThreshold_R k P SUNX SC HG1_ExecutePreset_R l P SUNX SC HG1_SetDataBank_R m P SUNX SC HG1_SetAlarm...

Page 164: ...ft Amount D8 f P SUNX SC HG1_SetOutHold_R Hold Setting D9 D10 Self Triger Level D11 D12 Static Span D13 Self Delay Timer D14 g P SUNX SC HG1_SetResponseSpeed_R Speed Mode D15 h P SUNX SC HG1_SetLeverRatio_R Write Lever Ratio M4 i P SUNX SC HG1_SetOutputMode_R NC Flag D16 D17 j P SUNX SC HG1_SetThreshold_R Low Threshold D18 D19 High Threshold D20 D21 HYS Setting D22 D23 k P SUNX SC HG1_ExecutePrese...

Page 165: ...C HG1_SetThreshold_R k P SUNX SC HG1_ExecutePreset_R l P SUNX SC HG1_SetDataBank_R m P SUNX SC HG1_SetAlarm_R n P SUNX SC HG1_CheckMaintenance_R o P SUNX SC HG1_ExecuteKeyLock_R M101 a P SUNX SC HG1_InitializeUnit_R Normal completion of FB b P SUNX SC HG1_ClearError_R c P SUNX SC HG1_CheckOutData_R d P SUNX SC HG1_ExecuteCommand_R e P SUNX SC HG1_ExecuteTeaching_R f P SUNX SC HG1_SetOutHold_R g P ...

Page 166: ..._SetThreshold_R k P SUNX SC HG1_ExecutePreset_R l P SUNX SC HG1_SetDataBank_R m P SUNX SC HG1_SetAlarm_R n P SUNX SC HG1_CheckMaintenance_R o P SUNX SC HG1_ExecuteKeyLock_R D100 a P SUNX SC HG1_InitializeUnit_R FB error code b P SUNX SC HG1_ClearError_R c P SUNX SC HG1_CheckOutData_R d P SUNX SC HG1_ExecuteCommand_R e P SUNX SC HG1_ExecuteTeaching_R f P SUNX SC HG1_SetOutHold_R g P SUNX SC HG1_Set...

Page 167: ...put D143 to D172 Detected Value D180 to 209 d P SUNX SC HG1_ExecuteCommand_R Command Response M103 e P SUNX SC HG1_ExecuteTeaching_R Waiting Signal D210 to D224 f P SUNX SC HG1_SetOutHold_R Read Hold Setting D225 to D239 g P SUNX SC HG1_SetResponseSpeed_R Read Speed Mode D240 to D254 h P SUNX SC HG1_SetLeverRatio_R Read Lever Ratio D255 i P SUNX SC HG1_SetOutputMode_R Read Output Operation D260 to...

Page 168: ... the CC Link master local module Start I O No H0 Specify the Start XY address of the RJ71EN71 to communicate with Station No K1 Specify the station number of the communication unit you want to operate a P SUNX SC HG1_InitializeUnit_R initialization 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 th...

Page 169: ...B 1 169 184 c P SUNX SC HG1_CheckOutData_R controller output read 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 ...

Page 170: ...1 170 184 d P SUNX SC HG1_ExecuteCommand_R execute specified command When M0 is turned ON this FB executes the H6 command initialization on all the controllers connected to the SC HG1 C with its station number set to 1 You do not have to enter the value of D1 because it is disabled when M2 is turned ON ...

Page 171: ...the SC HG1 C with its station number set to 1 In the following example M3 is turned ON when M103 is turned ON you can however execute teaching at any time by adding an contact for external input or ladder operation behind the M103 contact Be sure to provide the M103 Teaching Wait Flag to turn ON M3 Input signal because otherwise an FB error may occur Add a contact for external input or ladder oper...

Page 172: ... series Sequencer WUME SCHG1IQRFB 1 172 184 f P SUNX SC HG1_SetOutHold_R output operation setting 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 ...

Page 173: ...hi MELSEC iQ R series Sequencer WUME SCHG1IQRFB 1 173 184 g P SUNX SC HG1_SetResponseSpeed_R write speed mode 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 ...

Page 174: ...o setting When M0 is turned ON this FB sets the lever ratio to 2 0 on the first and second controllers connected to the SC HG1 C with its station number set to 1 i P SUNX SC HG1_SetOutputMode_R output logic settings 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 ...

Page 175: ...SetThreshold_R threshold settings When M0 is turned ON this FB outputs the low threshold values high threshold values and hysteresis values of the controllers connected to the 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 ...

Page 176: ...reset When M0 is turned ON this FB presets to 0 the first to fourth controllers connected to the SC HG1 C with its station number set to 1 l P SUNX SC HG1_SetDataBank_R save or load data bank 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 ...

Page 177: ...uencer WUME SCHG1IQRFB 1 177 184 m P SUNX SC HG1_SetAlarm_R alarm setting 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 ...

Page 178: ...ak operation log entries and over stroke operation log entries of the controllers connected to the SC HG1 C with its station number set to 1 to the 30 words from D400 to D429 the 30 words from D430 to D459 the 30 words from D460 to D489 and the 30 words from D490 to D519 respectively o P SUNX SC HG1_ExecuteKeyLock_R turn on or off the keylock When M0 is turned ON this FB sets the keylock and Eco m...

Page 179: ...rogram for read write protection This feature is useful to prevent the leakage of confidential data contained in a ladder program Project Security File Password Setting Select the data to protect with a password and press Register 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 ...

Page 180: ...n press the Setting button Figure 4 3 Setting the file password If after password registration the project data you load from the PC is different than that for which you registered a password the 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 ...

Page 181: ...s in Appendix 5 1 to Appendix 5 3 Appendix 5 1 Configuring the global labels for the second and subsequent CC Link or CC Link IE Field master local modules Assign the Label Name and Assign Device Label of the global labels so that they are different from those for the 1st master local module The starting device for assignments devices labels should be specified by append the starting device specif...

Page 182: ...B FUN FBFILE Right click the FB you want to use also for the second master local modules and copy the data Figure 5 2 1 Select and right click FBFILE and paste the data Figure 5 2 2 Select the pasted FB and press F2 on the keyboard to rename the FB Figure 5 2 3 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 Figu...

Page 183: ...he global labels for the second and subsequent CC Link or CC Link IE Field master local modules Open the program body where you pasted the FBs by double clicking it Find and Replace Replace Device Label Open the Find and Replace window select the current window from the tab list Enter the original global label in the Find Device Label and the global label created in Appendix 5 1 Configuring the gl...

Page 184: ...es 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 ...

Reviews: