Home
NX-series Safety Control Unit Instructions Reference
Contents
1. Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts TIME data n to DINT data Out Example When Value of In Is 1 day 1 h 1 min 30 s 90 ms T 1d1h1m30s090ms The value of Out will be DINT 90090090 Additional Information To convert DINT data to TIME data refer to DINT TO TIME Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 48 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions TIME_TO_INT This function converts a TIME variable to an INT variable Instruction FB FUN Graphic expression TIME_TO_INT ES TIME to p TIME TO INT Variables Default Name WO Description Validrange Data to con Input Duration T 0ms to T 32s767ms vert Out Conversion Output Conversion INTZO to
2. Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts DINT data n to WORD data Out Additional Information To convert WORD data to DINT data refer to WORD TO DINT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal f the input value is not DINTZO to DINT 65535 a cast error will occur and the program will stop 2 34 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions INT_TO_BYTE This function converts an INT variable to a BYTE variable Instruction Name FB FUN Graphic expression INT_TO_BYTE Convert INT to FUN Variables Default Name WO Description Validrange In Data to con Input Data to con INT 0 to 255 INTZO vert vert
3. Boolean Bit strings Integers Durations sig 212 3 8 2 e e S 2 3 2 mn E mn z T 3 T x T E mn i r m m m m m m m m to u 6 lt g Y gt O gt 3 3 E li Z 5 F m o z o K OK OK OK OK InO to InN OK OK OK OK OK OK OK OK OK OK OK OK OK OK Out OK OK OK OK OK OK OK OK OK OK OK OK OK OK Function This function selects one of two to N selections nO to InN Selector K specifies which of nO to InN to select The value of one of the input variables is assigned to Out according to the value of K InO is assigned if Kis 0 InN is assigned if K is N Additional Information Use the SEL instruction to select one of two selections 2 74 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use In0 In1 and Out may have different data types but observe the following precautions Set the valid range of Out to include the valid ranges of nO to INN If the value of K is outside the valid range i e less than 0 or greater than N an MUX Error will occur and the program will stop suononijsu pJepuejs 19410 XAN NX series Safety Control Unit Instructions Reference Manual Z931 2 75 2 Standard Functions NX series Safety Control Unit Instructions Reference Manual Z931 Safety Standard Function Blocks zi This section gives the specifications of the safety standard function blocks that you can use for NX series safety co
4. data pare Out Comparison Output Comparison Depends on data type result result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations i W o g z o e mn E 2 gt lt gt 3 gt sz gt 3 gt 3 gt o T T E T O T T T m T r m m m m m m m m m E as z S gt 2 3 o 3 z r m e m o In1 or In2 OK OK OK OK OK OK Out OK OK 2 68 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Function These functions compare the values of two variables n1 and n2 The output value Out is shown below for each instruction LT If In is less than n2 the result is TRUE Otherwise the result is FALSE LE If n1 is less than or equal to n2 the result is TRUE Otherwise the result is FALSE GT If n1 is greater than n2 the result is TRUE Otherwise the result is FALSE GE If In is greater than or equal to n2 the result is TRUE Otherwise the result is FALSE suononJjsu uosieduio o Additional Information The relationship between values with data types that are integers or durations are determined as given 3 in the following table m Data types Relationship 2 INT SAFEINT DINT or SAFEDINT The sign is included in the compar
5. 1 You must connect a SAFEBOOL variable not a BOOL variable depending on safety requirements Output Variables Jeq6unw 4S Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S AOPD Out SAFEBOOL TRUE or FALSE FALSE This safety related output gives the status of the protec tion devices that is being muted FALSE Something has entered the AOPD protected area and muting is disabled TRUE Nothing has entered the AOPD protected area and muting is enabled S MutingActive SAFEBOOL TRUE or FALSE FALSE Gives the muting status FALSE Muting is disabled TRUE Muting is enabled Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1640000 Refer to Safety FB Common Output Variables on page code 4 4 Vi Precautions for Correct Use NX series Safety Control Unit Instructions Reference Manual Z931 This FB does not detect short circuits in muting sensor signals or errors in the function applica tions that supply those signals It interprets them as illegal muting sequences Unintentional muting must not be allowed under these conditions Give attention to this during risk assess ment 4 Safety Function Blocks Function Muting is used to intentionally disable a safety function Muting is used for example to pass a work piece throu
6. sssesssseeee een 4 2 Safety Function Block Instructions eee a eee ieoa ara aee reran e aaka E TEA AEEA EREA nnne nnns 4 8 SE Antlvalentz ss T dee A a AAA tit te die ae AA AAA aa 4 9 SE EDM iren ene Iia Iia 4 15 SF Emergo y SOD ic incite e ed E EHE T a DRE iat eet ped 4 23 SE EnableSwWitch 4 ce ttr e tet a a eA ade ne REP E RR ina 4 30 SE Equivalent iie b m Mmi iita to hea 4 36 SF ESPRE a Ne dutem ntum t deam ta de 4 42 SF GuardLOCckling ett ttr re e eere Rer dee e te er E AD 4 49 SE GuardMonltoririg ii Eie eis 4 55 SF ModeSelectot tnc e e n e ce i utt Qe lecta niece tae rite ede 4 61 SE MutingPa e cried rte teet anced cit cite nee e EE dit 4 70 SE M tirigPar 2S6hSOr iiie ll ERRARE seen LIN ELA OEERRR ded LEN PATREXFEEREUA 4 81 SE MutingS8g 1 eina Miei cens 4 90 SE QutGCOontrol ier een tea o to iet RA ere it Aida dasha enc da eats dd ta 4 99 SE SafetyRequest a rete ele erai dua sates eens ad 4 105 4 NX series Safety Control Unit Instructions Reference Manual Z931 CONTENTS SN EEES AU esee nennen th nennen nnne nnn abes nnns a 4 111 SF TwoHandControlTypell esses e enne nnrnn nnns 4 121 SF TwoHandControlTypelll essen eene nennen nennen nnns 4 126 Index NX series Safety Control Unit Instructions Reference Manual Z931 5 CONTENTS NX series Safety Control Unit Instructions Reference Manual Z931 Relevant Manuals Relevant Manuals The in
7. Safety output variables TRUE Error FALSE sx90 g uonouny jajes 10 sejny jeeuec 4 Safety Function Blocks Safety Function Block Instruc tions Instruction Name Function Page SF_Antivalent Antivalent Monitors the discrepancy time for two P 4 9 antivalent SAFEBOOL inputs SF_EDM External Device Monitor Controls a safety output and monitors P 4 15 ing actuator control SF_EmergencyStop Emergency Stop Monitors the input from an emergency P 4 23 stop button SF_EnableSwitch Enable Switch Supports stopping a safety protection P 4 30 function that uses an enable switch SF_Equivalent Equivalent Monitors the discrepancy time for two P 4 36 equivalent SAFEBOOL inputs SF_ESPE Electro Sensitive Protec Monitors electro sensitive protective P 4 42 tive Equipment ESPE equipment ESPE SF_GuardLocking Safety Guard Interlocking Controls entry to a hazardous area P 4 49 with Locking with a four state interlock guard with a guard lock SF_GuardMonitoring Safety Guard Monitoring Monitors a relevant safety guard and P 4 55 opens closes the safety guard SF_ModeSelector Mode Selector Selects the system operation mode P 4 61 automatic manual semi automatic etc SF_MutingPar Parallel Muting Performs parallel muting with four P 4 70 muting sensors SF_MutingPar_2Sensor Parallel Muting with 2 Performs parallel muting with two P 4 81 Sensors muting sensors
8. ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m a E m o In OK OK Out OK OK Function This function converts WORD data n to DWORD data Out Example for the Range of WORD Data WORD 16 0000 to WORD H16HFFFF The value of Out will be DWORD 16 00000000 to DWORD 16 0000F FFF Additional Information There is no instruction that converts DWORD data to WORD data Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 28 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions DINT TO BOOL This function converts a DINT variable to a BOOL variable Instruction ee Graphic expression DINT_TO_BOOL NEC DINT to Variables Default Name WO Description Validrange Data to con Input Data to con DINT 2147483648 to vert vert 2147483647 Out Conversion Output Conversion TRUE or FALSE FALSE result result DINTZO If you omit an input or output parameter a building error w
9. BOOL SAFEBOOL SAFEBOOL SAFEBOOL SAFEBOOL BOOL Graphic expression SF_EnableSwitch Activate BOOL S_SafetyActive SAFEBOOL S EnableSwitchCh1 BOOL S EnableSwitchCh2 WORD S AutoReset Reset I Input Variables Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S SafetyActive SAFEBOOL TRUE or FALSE FALSE A constant or a variable lt confirms safe mode motion speed limit power limit or motion range limit FALSE Turns OFF safe mode TRUE Turns ON safe mode S EnableSwitch SAFEBOOL TRUE or FALSE FALSE A variable The input signal from connected enable Ch1 switches E1 and E2 FALSE The connected switches are open TRUE The connected switches are closed S EnableSwitch SAFEBOOL TRUE or FALSE FALSE A variable The input signal from connected enable Ch2 switches E3 and E4 FALSE The connected switches are open TRUE The connected switches are closed S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S EnableSwitch SAFEBOOL TRUE or FALSE FALSE A safety related output that indicates t
10. Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 127 4 Safety Function Blocks i Timing Charts Activate S_Button1 S_Button2 Ready S_TwoHandOut Error DiagCode 0000 C003 8004 8005 C005 8004 8000 8007 8008 8004 8005 8008 099 ene ener tns enne none ooo 9007 8008 une nno Internal Timer 500ms gt 500ms lt 4 128 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected After the FB is activated it detects buttons that are already set to TRUE as illegal input settings that result in errors This FB detects if the input signal time difference exceeds 500 ms Operation for Errors When an error occurs the S TwoHandOut output is set to FALSE and the safe state is main tained When both buttons are released i e set to FALSE the error status is reset e FB specific Error Codes DiagCode hexadecimal Status name Status description and output results C001 Error 1 B1 S_ Button was TRUE when the FB was activated Ready TRUE Error TRUE S TwoHandOut FALSE C002 Error 1 B2 S Button2 was TRUE when the FB was activated Ready TRUE Error TRUE S TwoHandOut FALSE C003 Error 1 B1 amp B2
11. S UnlockGuard Error DiagCode 0000 8001 8000 8000 8000 8013 8012 8013 8011 8003 8000 8000 8014 8014 8003 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected Undetected changes to TRUE in the Reset input are detected Errors are detected with the guard switch An error is detected when safety is compromised Either the guard was opened or unlocked Operation for Errors When an error occurs the S GuardLocked and S UnlockGuard outputs are set to FALSE the DiagCode output gives the relevant error code and the Error output is set to TRUE An error must be acknowledged by changing the Reset input to TRUE e FB specific Error Codes DiagCode hexadecimal Status name C001 Reset Error 1 Status description and output results When the Init state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S GuardLocked FALSE S UnlockGuard FALSE Error TRUE C002 Reset Error 2 When the Safety Lost state C004 was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error TRUE Buryooqpsendy 4S C003 Reset Error 3 When the Wait for Reset state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Err
12. Variables There are no variables for these instructions Function When the execution condition is TRUE control is returned to the location that called the POU without executing any processing after RETURN The following figure shows a programming example When the RETURN instruction is executed in the example programming C and D that follow it are not executed The outputs in programming C and D retain the values that they had just before the RETURN instruction was executed FALSE Output from Programming B TRUE Output from Programming B Network Execution Network Execution 1 Programming A 1 Programming A Programming B Programming B 2 BOOL output RETURN 2 BOOL output RETURN i e a Not executed due to 3 Programming C 3l Programming C RETURN instruction een 4 picanha Mitac dass A l H ot executed due to 4 Programming D a Programming D RETURN instruction Ml o cee ee we we we i i es al cU a 4 Precautions for Correct Use You must use either a BOOL or SAFEBOOL execution condition for the RETURN instruction If you connect an execution condition with any other data type a building error will occur If you use this instruction too often the flow of processing will be difficult to understand Use it with caution Programming after the RETURN instruction is not executed when the RETURN instruction is exe cuted The outputs retain the val
13. 32768 to INTZ 1 If the value of n is INT 32768 1000 0000 0000 0000 binary the value of Out is WORD 16 8000 If the value of n is INT 1 1111 1111 1111 1111 binary the value of Out is WORD 16 FFFF Additional Information To convert WORD data to INT data refer to WORD_TO_INT 2 38 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononijsu uois19AUO d L eyeq QHOM OL 1NI NX series Safety Control Unit Instructions Reference Manual Z931 2 39 2 Standard Functions DINT_TO_INT This function converts a DINT variable to an INT variable Instruction FB FUN Graphic expression DINT_TO_INT o DINT to DINT TO INT Variables Default Name WO Description Validrange Data to con Input Data to con DINT 32768 to 32767 vert vert Out Conversion Output Conversion INTZ 32768 to 32767 INTZO result result DINTZO If you omit an input or output parame
14. 4 122 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts Activate S Button1 S Button2 Ready S TwoHandOut Error DiagCode 0000 C003 8004 8004 8006 8000 8008 8009 8007 8004 8006 8000 jed jjoguoopueHoM 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 123 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected After the FB is activated it detects buttons that are already set to TRUE as illegal input settings that result in errors Operation for Errors When an error occurs the S TwoHandOut output is set to FALSE and the safe state is main tained When both buttons are released i e set to FALSE the error status is reset FB specific Error Codes DiagCode hexadecimal Status name Status description and output results C001 Error B1 S Button was TRUE when the FB was activated Ready TRUE Error TRUE S TwoHandOut FALSE C002 Error B2 S Button2 was TRUE when the FB was activated Ready TRUE Error TRUE S TwoHandOut FALSE C003 Error B1 amp B2 S Button and S Button2 were TRUE when the FB was acti vated Ready TRUE Error TRUE S TwoHandOut FALSE FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE Error FALSE S T
15. 8001 hex 32 769 decimal Indicates the Init state The FB detected Activate but the safety output is set to FALSE Normally the I O have the following status Activate TRUE Safety input variables TRUE or FALSE Ready TRUE Error FALSE Safety output variables FALSE 1000 0000 0000 0010 binary 8002 hex 32 770 decimal The FB is operating and a safety request input was detected For example a safety input variable is FALSE The safety output variable is FALSE After this state a safety input request is received and the safety output is disabled Normally the I O have the following status Activate TRUE Safety input variables FALSE Ready TRUE Error FALSE Safety output variables FALSE 1000 0000 0000 0011 binary 8003 hex 32 771 decimal NX series Safety Control Unit Instructions Reference Manual Z931 The safety output from an operating FB was disabled by a safety request and the safety output is FALSE The safety request has been canceled but the safety output remains FALSE until the reset input is detected Normally the I O have the following status Activate TRUE Safety input variables Change from FALSE to TRUE and remain TRUE Ready TRUE Error FALSE Safety output variables FALSE sx90 g uonouny jajes 10 se ns jeeuec 4 Safety Function Blocks Safety FB Common State Transition Diagram The following type of transition diagram shows chan
16. AND NOT MS_21 AND NOT MS_22 Muting Condition 4 8012 to 8021 when all switches are active MS_11 AND MS_12 AND MS_21 AND MS_22 Muting Condition 24 8012 to 8014 when MS_21 is the first switch to stop muting Timer for DiscTime21_22 started MS_11 AND MS_12 AND R_TRIG at MS_21 AND NOT MS_22 Muting Condition 24 8012 to 8314 when MS_22 is the first switch to stop muting Timer for DiscTime21_22 started MS_11 AND MS_12 AND NOT MS_21 AND R_TRIG at MS_22 Muting Condition 25 8014 to 8021 when MS_22 is the second switch to stop muting Timer for DiscTime21_22 stopped MS_11 AND MS_12 AND MS_21 AND R_TRIG at MS_22 Muting Condition 25 8314 to 8021 when MS_21 is the second switch to stop muting Timer for DiscTime21_22 stopped MS_11 AND MS_12 AND R_TRIG at MS_21 AND MS_22 Muting Condition 5 8021 to 8000 when one of the muting stop switches is reset Timer for MaxMutingTime stopped NOT MS_11 AND NOT MS_12 AND F_TRIG at MS_21 OR F_TRIG at MS_22 Backward Direction Muting Condition 11 8000 to 8122 when MS 21 is the first switch to start muting Timers for MaxMutingTime and DiscTime21_22 started MutingEnable AND NOT MS_22 AND R_TRIG at MS_21 AND NOT MS_11 AND NOT MS_12 Muting Condition 11 8000 to 8422 when MS_22 is the first switch to start muting Timers for MaxMutingTime and DiscTime21_22 started MutingEnable AND R_TRIG at MS_22 AND NOT MS 21 AND NOT MS 11 AND NOT MS 12 Muting Condition 12 8122 to 8121 when MS
17. Control Error When output was disabled an undetected change to TRUE in the Reset input was detected Ready TRUE S OutControl FALSE Error TRUE C111 Init Error Reset and ProcessControl simultaneously changed to TRUE in state 8001 Ready TRUE S OutControl FALSE Error TRUE C211 Lock Error Reset and ProcessControl simultaneously changed to TRUE in state 8003 Ready TRUE S_OutControl FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 103 JO4UODINO AS 4 Safety Function Blocks 0000 e FB specific State Codes No Error DiagCode hexadecimal Status name Idle Status description and output results The FB is disabled default Ready FALSE S OutControl FALSE Error FALSE 8001 Init Activate is set to TRUE and the FB is activated S StartReset is ON Resetting is required Ready TRUE S_OutControl FALSE Error FALSE 8002 Safe S SafeControl changed to OFF so S OutControl changed to OFF Ready TRUE S_OutControl FALSE Error FALSE 8003 Lock S_SafeControl changed to ON and S_AutoReset changed to OFF so the FB is waiting for a Reset input Ready TRUE S_OutControl FALSE Error FALSE 8010 Output Disable ProcessControl is OFF Ready TRUE S OutControl FALSE Error FALSE 8000 4 104 Output Enable ProcessControl is ON Ready TRUE S OutControl TR
18. TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8004 External Function Test The automatic sensor test failed An external manual sensor test is required The FB started support for the required external manual sensor test NoExternalTest FALSE The sensor signal must be made FALSE Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8005 ESPE Interrupted The automatic sensor test failed An external manual sensor test is External Test required The FB started support for the required external manual sensor test NoExternalTest FALSE The sensor signal must be TRUE Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8006 End External Test The automatic sensor test failed An external manual sensor test is required The FB started support for the required external manual sensor test NoExternalTest FALSE The external manual test was completed The FB detected the completion of the sensor switching cycle external control Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8010 ESPE Free No Test S OSSD Inis set to TRUE the AOPD
19. TRUE Enables starting muting S_StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_AOPD_Out SAFEBOOL TRUE or FALSE FALSE This safety output gives the status of the protection devices that is being muted FALSE Something has entered the AOPD protected area and muting is disabled TRUE Nothing has entered the AOPD protected area and muting is enabled S MutingActive SAFEBOOL TRUE or FALSE FALSE Gives the muting status FALSE Muting is disabled TRUE Muting is enabled Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 16 0000 Refer to Safety FB Common Output Variables on page code 4 4 Function Muting is used to intentionally disable a safety function Muting is used for example to pass a work piece through a hazardous area without stopping the machine Muting is activated by muting sen sors Two muting sensors are used To correctly incorporate the safety function into a manufacturing process you must ensure that people will not enter the hazardous area while the light curtain is being muted Pushbuttons proximity sensors photoelect
20. The NX series Units must be installed within a metallic control cabinet You must meet the following conditions for the DC power supplies that are connected as the Unit power supplies and I O power supplies for the NX series Units a Use reinforced insulation or double insulation b Ensure an output hold time of 20 ms min c Use an SELV power supply that meets the requirements of IEC EN 60950 1 and EN 50178 Do not allow the power supply cable length to exceed 3 m We recommend that you use the OMRON S8JX series Power Supplies EMC standard compli ance was confirmed for the recommended Power Supplies NX series Units that comply with EC Directives also conform to the Common Emission Standard EN 61131 2 Radiated emission characteristics 10 m regulations may vary depending on the configuration of the control panel used other devices connected to the control panel wiring and other conditions You must therefore confirm that the overall machine or equipment in which the NX series Units are used complies with EC Directives This is a Class A product for industrial environments In a residential environment it may cause radio interference If radio interference occurs the user may be required to take appropriate mea sures Conformance to EN ISO 13849 1 and EN 62061 International standards EN ISO 13849 1 and EN 62061 demand that process controls be in place for the creation of safety related software when building a safety
21. nieto eere 2 34 EE 2 62 DIVISION a ad 2 62 PS A eta te echa en 3 10 Downc Cco rntet niinn ungan preter Es ne E De e ee cens 3 3 DWORD TO DINT eme 2 21 DWORD TO TIME eem 2 25 E Electro Sensitive Protective Equipment ESPE 4 42 Emergency Stop oisnean 4 23 Enable Switch esoo tati 4 30 EQ 2 66 Equal 2 epe isa 2 66 Equivalent isiin eee tene neca 4 36 Exclusive logical OR eee 2 52 External Device Monitoring sees 4 15 G GE 2 68 Greater Than einen ee iet 2 68 Greater Than Or Equal see 2 68 GP EE 2 68 l INT TO BOOL iina ane 2 30 INT TO BYTE cai id alee 2 35 INT TO DINT iere tnit t dial 2 41 INT_TO DWORD nde tenerte rennen 2 36 INT TOS TIME ec tere ega 2 43 INT TO WORD 1 ertet tette dne 2 38 J JUMP iia 2 6 TU ad 2 6 L LABEL corria n 2 6 label eerte rete 2 6 NX series Safety Control Unit Instructions Reference Manual Z931 Index Ubicacion 2 68 SF_ModeSelector iniit 4 61 LESS Thai uere t tbe deeem 2 68 SF MutingPar cit ica eet erem 4 70 Less Than Or Equal se 2 68 SF MutingPar 2Sensor seen 4 81 Eogical AND 2 Itera 2 52 SE Muting96eq eo 4 90 Logical OR eee ei deis 2 52 SE OutControl 2 5 pat es 4
22. the transition to the Idle state has the highest priority 0 2 Astate transition to Error Muting sequence priority 1 Error Timer priority 2 Safety Demand AOPD priority 3 or Error Muting lamp priority 4 in the muting substates has higher priority than a state tran sition to muting substates with priority 5 or 6 3 The muting conditions are described below NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Forward Direction Muting Condition 1 8000 to 8011 when MS 11 is the first switch to start muting Timers for MaxMuting Time and DiscTime11_12 started MutingEnable AND R_TRIG at MS_11 AND NOT MS_12 AND NOT MS_21 AND NOT MS_22 Muting Condition 1 8000 to 8311 when MS_12 is the first switch to start muting Timers for MaxMutingTime and DiscTime11_12 started MutingEnable AND NOT MS_11 AND R_TRIG at MS_12 AND NOT MS_21 AND NOT MS_22 Muting Condition 2 8011 to 8012 when MS_12 is the second switch to start muting Timer for DiscTime11_12 stopped MutingEnable AND MS_11 AND R_TRIG at MS_12 AND NOT MS_21 AND NOT MS_22 Muting Condition 2 8311 to 8012 when MS_11 is the second switch to start muting Timer for DiscTime11_12 stopped MutingEnable AND R_TRIG at MS_11 AND MS_12 AND NOT MS_21 AND NOT MS_22 Muting Condition 3 8000 to 8012 when both switches simultaneously start muting Timer for MaxMutingTime started MutingEnable AND R_TRIG atMS 11 AND R_TRIG at MS 12
23. 1 e Reset abc FALSE NEWER 5 d 3 3 S TRUE 1 1 1 1 1 1 Load def FALSE l i CV mno QU ghi QD ikl When CV reaches PV QU changes to TRUE When RESET changes to TRUE CV changes to 0 QU changes to FALSE and QD changes to TRUE When Reset changes to FALSE the counter inputs are enabled When CU changes to TRUE CV is incremented This causes QD to change to FALSE When CD changes to TRUE CV is decremented When CV reaches 0 QD changes to TRUE When Load changes to TRUE CV changes to PV This causes QU to change to TRUE and QD to change to FALSE Additional Information Use the SF_CTD instruction or SF_CTU instruction to create a counter that only decrements or only increments NX series Safety Control Unit Instructions Reference Manual Z931 3 9 3 Safety Standard Function Blocks SF_F_TRIG This FB outputs TRUE for one task period only when the input signal changes to FALSE Instruction Name FB FUN Graphic expression SF_F_TRIG Down Trigger FB SF F TRIG CLK Q Variables i Input Variables Variable Name Datatype Valid range Default Description CLK Input signal SAFEBOOL TRUE or FALSE FALSE Input signal i Output Variables Variable Name Datatype Valid range Default Description Q Output signal SAFEBOOL TRUE or FALSE FALSE Output signal Function F TRIG assigns TRUE to output signal Q for one task period only when input signal CLK changes to FALSE Otherwise
24. 1 safety task period Every safety task period a timer value is checked to see if it has reached the set time If the timer value reaches the set time immediately after this check the time is delayed by one safety task period uononasuj BuneJdjoju z L suonduoseg Examples are provided below When the OFF Delay Timer Instruction Is Set to 500 ms and the Safety Task Period Is Set to 16 ms The timer will time out 512 ms 16 ms x 32 after the safety task is started e When the OFF Delay Timer Instruction Is Set to 500 ms and the Safety Task Period Is Set to 20 ms The timer will time out 520 ms 20 ms x 26 after the safety task is started Care is required because the timer will not operate at 500 ms Refer to the NX series Safety Control Unit User s Manual Cat No 2930 for details on the safety task period Sen EA jeg Jeuul y 2 1 M Precautions for Correct Use The time when an OFF Delay Timer instruction times out can affect the safety reaction times NX series Safety Control Unit Instructions Reference Manual Z931 1 5 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions NX series Safety Control Unit Instructions Reference Manual Z931 Standard Functions pp This section gives the specifications of the standard functions that you can use for NX series Safety Control Units Table of Standard Functions oooooccocococn nanan 2 2 Execution Cont
25. 32767 INTZO result result If you omit an input or output parameter a building error will occur T Oms Boolean Bit strings Integers Durations Ww 7 w o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m w i E E 9 z 9 2 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts TIME data n to INT data Out Example When Value of n Is 10 s 500 ms T 10s500ms The value of Out will be INT 10500 Additional Information To convert INT data to TIME data referto INT TO TIME Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If the input value is not TIMEZOms to TIME 32s767ms a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 49 suononijsu UOISIBAUOD d L eyeq LN OL MIL 2 Standard Functions WORD TO BOOL This function converts a WORD variable to a BOOL variable Instruct
26. 42 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions INT_TO_TIME This function converts an INT variable to a TIME variable Instruction Name FB FUN Graphic expression INT_TO_TIME EM INT to INT TO TIME Variables Default Name WO Description Validrange In Data to con Input Data to con INTZO to 32767 INTZO vert vert Out Conversion Output Duration T 0ms to T 32s767ms T Oms result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 5 O 3 z z m d E m o In OK OK Out OK OK Function This function converts INT data n to TIME data Out Example When Value of In Is INT 10500 The value of Out is 10 s 500 ms T 10s500ms Additional Information To convert TIME data to INT data refer to TIME TO INT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either
27. BOOL output gt Step1 2 BOOL output gt Step1 i gum umm Tum ee micum mi 1 v I 3 Programming C 31 1 Programming C UE A Uu i ls i 4 Step1 4 Step1 5 Programming D 5 Programming D Vv NY 2 6 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Additional Information You cannot jump upward in the networks You can use the same label as the jump destination for more than one JUMP instruction You can set only a label in a network or you can set both programming and a label in a network Precautions for Correct Use suononJjsu o 3u02 uonnoex3 You must use either a BOOL or SAFEBOOL execution condition for the JUMP instruction If you connect an execution condition with any other data type a building error will occur You cannot omit labels If you omit a label a building error will occur Place the JUMP instruction and label in the same POU Programming between the JUMP instruction and the label is not executed when the JUMP instruction is executed The outputs retain the values that they had just before the JUMP instruction was exe cuted 38v 1 pue dino NX series Safety Control Unit Instructions Reference Manual Z931 2 7 2 Standard Functions RETURN This function returns control to the process that called the POU without executing any processing after RETURN Instruction Name FB FUN Graphic expression NN ELLI
28. C001 Wait for S EStopln 1 8002 NOT Reset NOT S EStopln S EStopln Reset AND NOT R_ARIG at Reset S_EStopInAND S AutoReset Safety Output Enabled 8000 Wait for S_EStopin 2 8004 NOT S EStopln S EStopln AND NOT S AutoReset Wait for Reset 2 8005 Ready FALSE Ready TRUE Reset Error 2 C002 NOT Reset Reset AND NOT R TRIG at Reset NOT S EStopln S E StopOut FALSE S E StopOut TRUE Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 dojs AoueBueur4 4S 4 Safety Function Blocks i Timing Charts Inputs Start sequence i Normal operation with Reset Activate S EStopln Outputs i i Ready S EStopOut DiagCodei 0000 S_StartReset FALSE and S_AutoReset FALSE Start reset normal operation safety request and restart Inputs Start sequence with S StartReset Normal operation with Reset Activate S EStopln Reset Outputs i Ready i S EStopOut DiagCode 0000 8000 8000 S_StartReset TRUE and S_AutoReset FALSE Start normal operation safety request and restart 4 26 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Inputs Start sequence Normal operation with S
29. DINT to DINT TO TIME Variables Default Name WO Description Validrange Data to con Input Integer DINT 0 to 2147483647 vert Out Conversion Output Duration T 0ms to T Oms result T 24d20h31m23s647ms If you omit an input or output parameter a building error will occur DINT 0 Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts DINT data n to TIME data Out Example When Value of n Is DINT 90090090 The value of Out is 1 day 1 h 1 min 30 s 90 ms T 1d1h1m30s090ms Additional Information To convert TIME data to DINT data refer to TIME TO DINT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal f the input value is not DINTZO to DINT 2147483647 a cast error will occur and the program will stop 2
30. Default Name WO Description Valdrange Values to mul Input Values to mul Depends on data type tiply tiply Out Output value Output Output value Depends on data type If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations w o w e Og o 5 s e 4 o Se ale ale e E ES gt 2 2 gt O TU T E T o T T TU m T r m m m 6 m m m m m pa q 2 S g z 9 Q 3 O 2 3 z m a E m o In1 OK OK OK OK OK OK In2 to OK OK OK OK InN Out OK OK OK OK OK OK Function This function multiplies multiply values n7 to InN and outputs the result to output value Out An overflow occurs if the product of n7 to InN exceeds the valid range of the data type of the multiplica tion result If an overflow occurs the data types of In7 to InN the data type of the multiplication result and the value of the multiplication result will be as shown in the following table I O data types Value of multiplication results Integers Of the product of n7 to InN the multiplication result will be the value that can be expressed by the number of bits in the data type of the addition result 12 Durations Of the product of In1 to InN the multiplication result will be the value that can be expressed
31. FALSE TestExecuted TRUE Error TRUE C010 Test Error 1 The test time was exceeded in state 8020 Test Request Ready TRUE S_OSSD_Out FALSE S_TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE Josues Ajejese qeisa JS NX series Safety Control Unit Instructions Reference Manual Z931 4 117 4 Safety Function Blocks DiagCode hexadecimal C020 Status name Test Error 2 Status description and output results The test time was exceeded in state 8030 Test Active Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE o FB specific DiagCode hexadecimal 0000 State Codes No Error Status name Idle Status description and output results The FB is disabled default Ready FALSE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8001 Init The FB detected an activate signal and the FB is active Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8002 ESPE Interrupted 1 The FB detected a safety request The switch has not been auto matically tested Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8003 4 118 Wait for Reset 1 The FB is waiting for Reset to change to TRUE after state 8002 Ready
32. If an error occurs in the automatic sensor test an automatic test is possible again without a manual sensor test S StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset NX series Safety Control Unit Instructions Reference Manual Z931 BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 4 111 4 Safety Function Blocks i Output Variables Variable Ready Data type BOOL Valid range TRUE or FALSE Default FALSE Description Refer to Safety FB Common Output Variables on page 4 4 S OSSD Out SAFEBOOL TRUE or FALSE FALSE The safety related output that gives the ESPE status FALSE There is a safety related operation request for the Sensor or a test error occurred TRUE There is no safety related operation request for the sensor and no test error occurred Note OSSD is an output signal switching device S TestOut SAFEBOOL TRUE or FALSE FALSE Forms a pair with the sensor test input Although SAFE BOOL is specified this signal is commonly connected to a BOOL output FALSE There is a test request TRUE There is no test request TestPossible BOOL TRUE or FALSE FALSE The feedback signal to the process FALSE An automatic sensor test cannot be p
33. If the value of n is WORD 16 FFFF 1111 1111 1111 1111 binary the value of Out is INT 65535 which is INTZ 1 as a 2 byte expression Additional Information To convert INT data to WORD data refer to INT TO WORD 2 18 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononijsu uois19AUO d L eyeq 1NI OL QHOM NX series Safety Control Unit Instructions Reference Manual Z931 2 19 2 Standard Functions WORD TO DINT This function converts a WORD variable to a DINT variable Instruction Name FB FUN Graphic expression Variables Name WO Description Validrange Default Data to con Input Data to con WORD 16 0000 to FFFF WORD 16 0000 vert vert Out Conversion Output Conversion DINT 0 to 65535 DINT 0 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations
34. MS 11 OR MS 12 OR NOT MS 22 State 8112 F TRIG at M8 11 OR R TRIG at MS 21 OR R TRIG at MS 22 NX series Safety Control Unit Instructions Reference Manual Z931 4 93 4 Safety Function Blocks State Transition Diagram NOT Activate Timeparameter out of range Parameter Error C005 Timeparemeter within range AND R_TRIG at Reset ORS Start Reset R_TRIG at Reset 3 Wrong Muti g Muting substates condition1 Muting Muting condition3 Forward Start 8011 6 Muting condition2 Active 8012 Note 1 NOT Reset Reset AND NOT R_TRIG at Reset AND NOT S_StartReset R_TRIG at Reset S AOPD In Safety Demand AOPD 8002 NOT S AOPD In hor 2 S AOPD In NOT S_MutingLamp NOT SAMf tingLamp sequence NOT S AOPD In not in states 8012 or 8112 Muting condition11 Muting Backward 5 Start Q S MutingLamp Error Muting lamp C003 NOT S_MutingLamp condition12 MS_11 gt MutingSwitch 11 MS_12 gt MutingSwitch 12 MS_21 gt MutingSwitch 21 MS_22 gt MutingSwitch 22 Ready FALSE Ready TRUE 4 Reset AND NOT R_TRIG at Reset NOT MS_11 OR MS_12 OR MS_21 OR MS_22 NOT MS_11 OR MS 120RMS 21 41 ORMS 22 Error Timer MaxMuting C006 Error Muting sequence CYx4 S AOPD Out FALS S AOPD Out RUE Wrong Muting sequence Timer expired condition13 On uting Backward Active 8112 Transitions to the Idle state from any other s
35. Muting Active A muting sequence is in operation for one of the following A change to TRUE was detected in the second muting switch of S_MutingSwitch11 and S_MutingSwitch12 Both S MutingSwitch11 and S_MutingSwitch12 were started in the same cycle Monitoring for DiscTimeEntry was stopped Monitoring for MaxMu tingTime was started Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE JS Sunny Josuegz Jed NX series Safety Control Unit Instructions Reference Manual Z931 4 89 4 Safety Function Blocks SF_MutingSeq Muting is used to intentionally disable a safety function This safety FB performs sequential muting with four muting sensors Instruction SF_MutingSeq Variables ing Name Sequential Mut FB FUN FB BOOL SAFEBOOL BOOL BOOL BOOL BOOL SAFEBOOL TIME BOOL SAFEBOOL BOOL Graphic expression SF_MutingSeq Activate BOOL S AOPD In SAFEBOOL MutingSwitch1 1 SAFEBOOL MutingSwitch12 BOOL MutingSwitch21 WORD MutingSwitch22 S_MutingLamp MaxMutingTime MutingEnable S_StratReset Reset i Input Variables Variable Activate Data type BOOL Valid range TRUE or FALSE Default FALSE Description Refer to Safety FB Common Input Variables on page 4 2 S AOPD In SAFEBOOL TRUE or FALSE FALSE This is the OSSD safety output signal from the AOPD active optoelectronic protective device FALSE Something entered the protected
36. Out Conversion Output Conversion BYTE 16 00 to FF BYTE 16 00 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 5 O 3 z z m d E m o In OK OK Out OK OK Function This function converts INT data n to BYTE data Out Additional Information To convert BYTE data to INT data refer to BYTE TO INT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If the input value is not INT 0 to INT 255 a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 35 suononijsu uois19AUO d L eyeq 31A8 OL LNI 2 Standard Functions INT TO DWORD This function converts an INT variable to a DWORD variable Instruction Name FB FUN Graphic expression INT TO DWORD Convert INT to FUN Variables Default Va
37. Position 2 Safe operation mode is ON and the enable switch is in position 2 Ready TRUE P S EnableSwitchOut TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 35 4 Safety Function Blocks SF_Equivalent This safety FB monitors the discrepancy time for two equivalent SAFEBOOL inputs Instruction SF_Equivalent Variables Name Equivalent FB FUN FB BOOL SAFEBOOL SAFEBOOL TIME Graphic expression SF_Equivalent Activate BOOL S_ChannelA SAFEBOOL S_ChannelB BOOL DiscrepancyTime WORD i Input Variables Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S_ChannelA SAFEBOOL TRUE or FALSE FALSE A variable It functions as input A for a logic connection FALSE Input A is open TRUE Input A is closed S_ChannelB SAFEBOOL TRUE or FALSE FALSE A variable It functions as input B for a logic connection FALSE Input B is open TRUE Input B is closed Discrepancy TIME Depends on data T 0ms A constant It sets the maximum monitoring time for dis Time type crepancy between two inputs i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_EquivalentOut SAFEBOOL TRUE or FALSE FALSE The safety output FALSE At least one of the s
38. Reset Discrepancy Timer Outputs Ready S_GuardMonitoring Error DiagCode in hex pum A AAA A ARA A AAA S R a LL A A AAA 0000 8003 8003 8000 8002 8012 8014 8003 8000 8002 8012 8012 8003 C001 8012 p oo L Eu mda Er LL oe 7 oe 8012 8004 8004 C011 C011 8012 8014 8003 8002 8002 8012 8003 8000 0000 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected Specific errors are detected for the SAFEBOOL external signal input According to EN ISO 13849 1 safety guards that have two switches mechanical settings and open close switch set tings are combined According to EN ISO 13849 1 the offset in the response times of both mechanical switches is monitored as the discrepancy time The offset is treated as detection of an application error i e an error created by the application An error is detected when the offset between the first input and second input for S_GuardSwitch1 or S GuardSwitch2 is larger than the value of the DiscrepancyTime input The Error output is set to TRUE If Reset is already TRUE when the Wait for Reset state is entered this FB detects the undetected change to TRUE as an error O Reset Operation for Errors When an error occurs the S GuardMonitoring output is set to FALSE If the two inputs S GuardSwitch1 and S GuardSwitch2 are bridged an error is not detected To reset
39. S_GuardSwitch2 to change to FALSE Ready TRUE S_GuardMonitoring FALSE Error FALSE 8003 Wait for Reset The FB is waiting for Reset to change to TRUE Ready TRUE S_GuardMonitoring FALSE Error FALSE 8012 Guard Opened The guard is completely open Ready TRUE S_GuardMonitoring FALSE Error FALSE 8004 Wait for GuardSwitch2 S_GuardSwitch1 changed to TRUE waiting for S_GuardSwitch2 The discrepancy timer started Ready TRUE S_GuardMonitoring FALSE Error FALSE 8014 Wait for GuardSwitch1 S_GuardSwitch2 changed to TRUE waiting for S_GuardSwitch1 The discrepancy timer started Ready TRUE S_GuardMonitoring FALSE Error FALSE 8005 Guard Closed The guard was closed If S AutoReset is FALSE the FB is waiting for Reset Ready TRUE S GuardMonitoring FALSE Error FALSE 4 60 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF_ModeSelector This safety FB selects the system operation mode automatic manual semi automatic etc Instruction Name FB FUN Graphic expression SF_ModeSelector Mode Selector FB SF_ModeSelector BOOL Activate Ready BOOL SAFEBOOL S_Mode0 S_Mode0Sel SAFEBOOL SAFEBOOL S_Mode1 S_Mode1Sel SAFEBOOL SAFEBOOL S_Mode2 S_Mode2Sel SAFEBOOL SAFEBOOL S_Mode3 S_Mode3Sel SAFEBOOL SAFEBOOL S_Mode4 S_Mode4Sel SAFEBOOL SAFEBOOL S_Mode5 S_Mode5Sel SAFEBOOL SAFEBOOL S_Mode6 S_Mode6Sel SAFEBOOL SAFEBOOL S_Mode7 S_Mode7Sel SAFEBOOL SAFEBOOL S_
40. Safety Function Blocks DiagCode hexadecimal 8004 Status name Wait for NO Status description and output results S_ChannelNC changed to TRUE the discrepancy time timer started opera tion and the FB is waiting for S_ChannelNO to change to FALSE Ready TRUE S_AntivalentOut FALSE Error FALSE 8014 Wait for NC S_ChannelNO changed to FALSE the discrepancy time timer started oper ation and the FB is waiting for S_ChannelNC to change to TRUE Ready TRUE S_AntivalentOut FALSE Error FALSE 8005 From Active Wait One of the channels changed to FALSE the discrepancy time timer started operation and the FB is waiting for the other channel to change to FALSE Ready TRUE S_AntivalentOut FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 SF EDM 4 Safety Function Blocks This safety FB controls a safety output and monitors actuator control Instruction Name FB FUN SF_EDM External Device FB Monitoring BOOL SAFEBOOL SAFEBOOL SAFEBOOL TIME Variables I Input Variables Default FALSE Variable Activate Data type BOOL Valid range TRUE or FALSE SAFEBOOL S_StartReset BOOL Reset Graphic expression Activate BOOL S OutControl SAFEBOOL S EDM1 BOOL S EDM2 WORD MonitoringTime Waa 4s Description Refer to Safety FB Common Input Variables on page 4 2 S_OutControl SAFEBOOL TRUE or FALSE
41. Status description and output results The FB is disabled default Ready FALSE S AOPD Out FALSE S MutingActive FALSE Error FALSE 8000 AOPD Free Muting is disabled but the control input from AOPD is active If the muting timer is operating it stops Ready TRUE S AOPD Out TRUE S MutingActive FALSE Error FALSE 8001 Init The FB was started Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8002 Safety Demand AOPD Muting is disabled The control input from AOPD is disabled Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error FALSE 8003 Wait for Reset A safety request or error was detected and cleared The operator must respond with Reset Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8005 Safe The safety function is operating Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 DiagCode hexadecimal 8011 Status name Muting Forward Start 1 4 Safety Function Blocks Status description and output results A forward muting sequence is being started after MutingSwitch 11 changed to TRUE Monitoring is active for DiscTime11_12 Monitor ing is active for MaxMutingTime Ready TRUE S AOPD Out TRUE S MutingActive FALSE Error FALSE 8311 Muting Forward Start 2 A forward muting sequence i
42. Timer Outputs FALSE when the set time elapses after the timer starts P 3 14 SF_TON On Delay Timer Outputs TRUE when the set time elapses after the timer starts P 3 16 SF_TP Timer Pulse Outputs TRUE during the set time after the timer starts P 3 18 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks SF_CTD This FB decrements the counter value when the counter input signal is received Instruction Name FB FUN Graphic expression SF_CTD Down counter FB Variables i Input Variables o lo g Variable Name Data type Valid range Default Description CD Counter input BOOL TRUE or FALSE FALSE Counter input LOAD Load signal BOOL TRUE or FALSE FALSE TRUE Set CV to PV PV Preset value SAFEINT 0 to 32767 0 Counter preset value Output Variables Name Datatype Validrange Defaut Variable Description Q Counter output SAFEBOOL TRUE or FALSE TRUE CV is 0 or lower FALSE CV is 1 or higher CV Counter value SAFEINT 0 to 32767 0 Counter present value Function The SF_CTD instruction creates a down counter The preset value and counter value must have a SAFEINT data type When load signal Load changes to TRUE counter value CV is set to the value of preset value PV and counter output Q changes to FALSE When counter input signal CD changes to TRUE CV is decremented When the value of CV reaches 0 or less the va
43. Z931 2 3 suonouny pJepuejs jo e qej 2 Standard Functions Type Instruction Name Description Page Boolean operations AND Logical AND Performs a logical AND on P 2 52 multiple Boolean variables OR Logical OR Performs a logical OR on P 2 52 multiple Boolean variables XOR Exclusive Performs an exclusive logi P 2 52 logical OR cal OR on multiple Boolean variables NOT Bit Reversal Reverses the value of a P 2 54 Boolean bit Math ADD Addition Adds integers or durations P 2 56 SUB Subtraction Subtracts integers or dura P 2 58 tions MUL Multiplication Multiplies integers or a dura P 2 60 tion DIV Division Divides integers or a dura P 2 62 tion Comparison EQ Equal Determines if the values of P 2 66 two variables are equivalent NE Not Equal Determines if the values of P 2 67 two variables are not equiv alent LT Less Than Performs a less than com P 2 68 parison between two values LE Less Than Performs a less than or P 2 68 Or Equal equal comparison between two values GT Greater Performs a greater than P 2 68 Than comparison between two values GE Greater Performs a greater than or P 2 68 Than Or equal comparison between Equal two values Others SEL Bit Selection Selects one of two selec P 2 72 tions MUX Multiplexer Selects one of multiple P 2 74 selections 2 4 NX series Safety Control Unit Instructions Reference Manual Z931 Executio
44. a DINT variable NX series Safety Control Unit Instructions Reference Manual Z931 Data type conversion Type 2 Standard Functions Instruction Name Description Page Integer to DINT_TO_TIME Convert Converts a DINT variable to P 2 42 duration DINT to a TIME variable TIME INT_TO_TIME Convert INT Converts an INT variable to P 2 43 to TIME a TIME variable Duration to TIME_TO_BOOL Convert Converts a TIME variable to P 2 44 Boolean TIME to a BOOL variable BOOL Duration to bit TIME_TO_BYTE Convert Converts a TIME variable to P 2 45 string TIME to a BYTE variable BYTE TIME_TO_DWORD Convert Converts a TIME variable to P 2 46 TIME to a DWORD variable DWORD TIME_TO_ WORD Convert Converts a TIME variable to P 2 47 TIME to a WORD variable WORD Duration to TIME_TO_DINT Convert Converts a TIME variable to P 2 48 integer TIME to a DINT variable DINT TIME_TO_INT Convert Converts a TIME variable to P 2 49 TIME to INT an INT variable Bit string to WORD_TO_BOOL Convert Converts a WORD variable P 2 50 Boolean WORD to to a BOOL variable BOOL NX series Safety Control Unit Instructions Reference Manual Z931 2 11 suononijsu UOISISAUO ed eyeq 2 Standard Functions BOOL_TO_INT This function converts a BOOL variable to an INT variable Instruction FB FUN Graphic expression BOOL_TO_INT ELE BOOL to BOOL TO INT Variables Default Data to c
45. about the Describes the operating procedures of the Sysmac Studio sion 1 Operation Man SE2LILILI operating procedures ual 22 and functions of the Sysmac Studio NX series Safety Control Unit Instructions Reference Manual Z931 Terminology Terminology Refer to the NX series Safety Control Unit User s Manual Cat No 2930 for the definitions of terms that are used in this manual NX series Safety Control Unit Instructions Reference Manual Z931 23 Revision History Revision History A manual revision code appears as a suffix to the catalog number at the bottom left of the front and back covers of the manual Z931 E1 03 LI Revision code Revision code Date Revised content 01 June 2013 Original production 02 September 2013 Corrected mistakes 03 December 2013 Added information on timer set values Corrected mistakes 24 NX series Safety Control Unit Instructions Reference Manual Z931 Sections in this Manual Sections in this Manual Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions Standard Functions Safety Standard Function Blocks Safety Function Blocks NX series Safety Control Unit Instructions Reference Manual Z931 25 26 Sections in this Manual NX series Safety Control Unit Instructions Reference Manual Z931 Introduction to Instructions for Safety Control Units and Interpretin
46. according to an up counter input signal and a down counter input signal The counter has the functions of both an up counter and a down counter The preset value and counter value must have a SAFEINT data type NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks O Operation as an Up Counter When reset signal RESET changes to TRUE counter value CV changes to 0 and up counter output QU changes to FALSE When up counter input signal CU changes to TRUE CV is incremented When the value of CV reaches the value of PV or higher the value of QU changes to TRUE After the value of CV reaches the value of PV or higher the value of CV does not change even if the value of CU changes to TRUE Operation as a Down Counter When load signal LOAD changes to TRUE counter value CV changes to the value of preset value PV and down counter output QD changes to FALSE When down counter input signal CD changes to TRUE CV is decremented When the value of CV reaches 0 or less the value of QD changes to TRUE After the value of CV reaches 0 or less CV does not change even if CD changes to TRUE e Common Operation for Up and Down Counters CU and CD are ignored while LOAD or RESET is TRUE CV is not incremented or decremented If both CU and CD change to TRUE at the same time CV will not change If RESET and LOAD are both TRUE RESET has priority and the value of CV changes to 0 If RESET cha
47. any instance of an instruction that you specify Variables Variable The input variable or output variable is given Name The name of the variable is given Example Up counter e 1 0 Whether the variable is an input variable or output variable is given Description The meaning of the variable and any restrictions are given Valid range The range that the variable can take is given Depends on data type indicates that the valid range of the variable depends on the data type that you use The valid ranges of the data types are given later in this section Default The specified default value is automatically used for the variable if you do not assign a parameter to the instruction before it is executed indicates the following Input variables The default value of the data type of the input variable is assigned The default values of the data types are given later in this section Output variables Default values are not set Data type The data type of the variable is given Broadly speaking there are two classifications of data types safety signals and non safety signals These two classifications of data types are described later NX series Safety Control Unit Instructions Reference Manual Z931 1 3 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions Item Description Function The function of the instruction is described Additional Informa Additio
48. are not shown for when Activate changes to FALSE However the transition to the Idle state has the highest priority 0 2 Astate transition to Error Muting sequence priority 1 Error Timer priority 2 Safety Demand AOPD priority 3 or Error Muting lamp priority 4 in the muting substates has higher priority than a state tran sition to muting substates with priority 5 Note 1 3 The muting conditions are described below NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Muting Conditions Muting Condition 1 8000 to 8011 when MS_ 11 is the first switch to start muting Timers for DiscTimeEntry and MaxMuting Time started MutingEnable AND R_TRIG at MS_11 AND NOT MS_12 Muting Condition 2 8000 to 8311 when MS_12 is the first switch to start muting Timers for DiscTimeEntry and MaxMuting Time started MutingEnable AND NOT MS_11 AND R_TRIG at MS 12 Muting Condition 3 8011 to 8012 when MS 12 is the second switch to start muting Timer for DiscTimeEntry stopped MutingEnable AND MS 11 AND R TRIG at MS 12 Muting Condition 4 8311 to 8012 when MS 11 is the second switch to start muting Timer for DiscTimeEntry stopped MutingEnable AND R_TRIG at MS 11 AND MS 12 Muting Condition 5 8000 to 8012 when both switches simultaneously enable muting Timer for MaxMuting Time started MutingEnable AND R_TRIG at MS 11 AND R_TRIG at MS 12 Muting Condition 6 8012 to 8000 when both s
49. are performed with the data type that includes the range of all of the data types For example if nO is INT data and In1 is DINT data calculations are performed with DINT data Therefore selection result Out will be DINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you seta safety data type variable for the output terminal set a safety data type variable for the two input terminals as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononijsu pJepuejs 19u10 Tas NX series Safety Control Unit Instructions Reference Manual Z931 2 73 2 Standard Functions MUX This function selects one of multiple selections Instruction Name FB FUN Graphic expression MUX Multiplexer FUN MUX K Variables Name 1 0 Description Valid range Default K Selector Input 0 Selects In0 Depends on data type 1 Selects n1 2 Selects n2 N Selects nN InO to InN Selections Selections Out Selection Output Selection Depends on data type result result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction
50. area TRUE Nothing entered the protected area MutingSwitch 11 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 11 FALSE Muting sensor 11 is not operating TRUE A workpiece activated muting sensor 11 MutingSwitch12 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 12 FALSE Muting sensor 12 is not operating TRUE A workpiece activated muting sensor 12 MutingSwitch21 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 21 FALSE Muting sensor 21 is not operating TRUE A workpiece activated muting sensor 21 MutingSwitch22 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 22 FALSE Muting sensor 22 is not operating TRUE A workpiece activated muting sensor 22 S_MutingLamp SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is the muting lamp status input e g filament broken status FALSE Muting lamp failure TRUE Muting lamp is normal MaxMutingTime TIME T Os to T 10min TAOs A constant It sets the maximum time until completion of the muting sequence The timer starts when the muting sensor first operates NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Variable Data type Valid range Default Description MutingEnable BOOL TRUE or FALSE FALSE A cons
51. be connected to an applicable input device e g safety input terminal You must select the ESPE according to the required category in product specifications IEC 61496 1 IEC 61496 2 IEC 61496 3 and IEC 13849 You must monitor testing with a separate mechanism to ensure that the test is started at a suitable interval Activate the S StartReset and S AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit Test Mode 1 When the StartTest input changes to TRUE the S TestOut output is set to FALSE and the inter nal monitor is started The S TestOut signal stops light emission Monitoring for the first TestTime starts S OSSD In changes to FALSE Monitoring for the second TestTime starts S TestOut changes to TRUE Light emission from the emitter starts The S OSSD In sensor input changes to TRUE The monitoring time is stopped S_OSSD_Out is set to TRUE during the test Josues Ajejese qeise JS ON DOO FW DN e Startup Control Options Control starts after the FB is activated Control starts after a protective device interrupt NX series Safety Control Unit Instructions Reference Manual Z931 4 113 4 Safety Function Blocks fi State Transition Diagram Idle 0000 NOT Activate Activate Ready FALSE Ready TRUE Reset AND NOT TestTime gt 150ms R_TRIG at Reset Reset AND NOT Reset R_TRIG at R set 2 Err
52. both be changed to FALSE to open the safety guard The S_GuardMonitoring output immediately changes to FALSE when either of the switches is set to FALSE The S_GuardSwitch1 and S_GuardSwitch2 inputs must both be changed to TRUE to close the safety guard This FB monitors the symmetry of the switching operation of both switches The S_GuardMonitoring output remains FALSE if only one of the inputs completes the open or close process The operation of the S_GuardMonitoring output depends on the time difference between the switch inputs If the input values from S_GuardSwitch1 and S_GuardSwitch2 are different monitoring the discrepancy time is started immediately If the inputs are still different after the discrepancy time expires the S_GuardMonitoring output remains FALSE If both of the corresponding inputs S_GuardSwitch1 and S_GuardSwitch2 change to TRUE within the time specified by the Discrepan cyTime input the S_GuardMonitoring output is set to TRUE after the confirmation response Activate the S StartReset and S_AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit A FB error will occur if the same variable is assigned to the input and the discrepancy time is set to O Set DiscrepancyTime to a value that is longer than the safety task period Refer to the NX series Safety Control Unit User s Manual Cat No Z930 for application methods for DiscrepancyTime NX serie
53. control system that uses Safety Control Units The process control must ensure that the software is easy to read understand test and maintain to avoid system failures during each phase i e general software design safety circuit system design and software upgrades of the software design lifecycle This means that process controls must also be in place for the design and development of safety soft ware such as for equipment and machinery that use function blocks that are provided by the Safety Control Units It is the customer s responsibility to conform with all standards Conformance to UL and CSA Standards The NX series Safety Control Units comply with the following UL and CSA standards The application conditions for standard compliance are defined Refer to the Instruction Sheet that is provided with each Unit before application NX series Safety Control Unit Instructions Reference Manual Z931 17 Regulations and Standards Conformance to KC Standards Observe the following precaution if you use NX series Units in Korea AF 717 AFE PESAN 71718 GERAD AAPARINNE Baz EE ALAS 0 42 F9 3 17 spero 7999 AJA 83 AS Eapo s YU Class A Device Broadcasting Communications Device for Office Use This device obtained EMC registration for office use Class A and it is intended to be used in places other than homes Sellers and or users need to take note of this Software Licenses and Copyrights This product incorpora
54. direction in state 8422 C9x4 Error occurred in backward direction in state 8121 CAx4 Error occurred in backward direction in state 8114 CBx4 Error occurred in backward direction in state 8414 CCx4 Error occurred in backward direction in state 8112 CFx4 MutingEnable was not detected x Sensor status when the error occurred 4 bits LSB MS_11 MS_12 MS_21 MSB MS_ 22 C005 Parameter Error The value of DiscTime11 12 DiscTime21 22 or MaxMutingTime is outside of the valid range Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE C006 Error Timer MaxMuting Timing error The muting operation time while S MutingActive TRUE exceeded MaxMutingTime Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 77 4 Safety Function Blocks DiagCode hexadecimal C007 Status name Error Timer MS11 12 Status description and output results Timing error Discrepancy time between MutingSwitch11 and MutingSwitch12 exceeded DiscTime11 12 Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE C008 Error Timer MS21_22 Timing error Discrepancy time between MutingSwitch21 and MutingSwitch22 exceeded DiscTime21_22 Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE FB specific State Codes No Error DiagCode hexadecimal 0000 Status name Idle
55. duration BYTE to a TIME variable TIME WORD_TO_TIME Convert Converts a WORD variable P 2 24 WORD to to a TIME variable TIME DWORD_TO_TIME Convert Converts a DWORD vari P 2 25 DWORD to able to a TIME variable TIME Bit string to bit BYTE TO WORD Convert Converts a BYTE variable to P 2 26 string BYTE to a WORD variable WORD WORD TO BYTE Convert Converts a WORD variable P 2 27 WORD to to a BYTE variable BYTE WORD TO DWORD Convert Converts a WORD variable P 2 28 WORD to to a DWORD variable DWORD Integer to DINT TO BOOL Convert Converts a DINT variable to P 2 29 Boolean DINT to a BOOL variable BOOL INT TO BOOL Convert INT Converts an INT variable to P 2 30 to BOOL a BOOL variable Integer to bit DINT TO BYTE Convert Converts a DINT variable to P 2 31 string DINT to a BYTE variable BYTE DINT TO DWORD Convert Converts a DINT variable to P 2 32 DINT to a DWORD variable DWORD DINT TO WORD Convert Converts a DINT variable to P 2 34 DINT to a WORD variable WORD INT TO BYTE Convert INT Converts an INT variable to P 2 35 to BYTE a BYTE variable INT TO DWORD Convert INT Converts an INT variable to P 2 36 to DWORD a DWORD variable INT_TO_WORD Convert INT Converts an INT variable to P 2 38 to WORD a WORD variable Integer to integer DINT_TO_INT Convert Converts a DINT variable to P 2 40 DINT to INT an INT variable INT_TO_DINT Convert INT Converts an INT variable to P 2 41 to DINT
56. error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations 0 7 W o o o 5 o o J e lt gt 3 gt Z gt 3 gt gt gt gt O T T E Tl o Tl Tl e T m T E m m m m m m m m D Uu 2 E g Z 9 B o z 3 z S i o In OK OK Out OK OK Function This function reverses the TRUE FALSE value of the Boolean variable n The relationships between input and output variables are given in the following table In bit Out bit FALSE TRUE TRUE FALSE Precautions for Correct Use You must use Boolean variables for n and Out The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 54 NX series Safety Control Unit Instructions Reference Manual Z931 Math Instructions Type Instruction Name Description Page Math ADD Addition Adds integers or durations P 2 56 SUB Subtraction Subtracts integers or dura P 2 58 tions MUL Multiplication Multiplies inte
57. have two error related outputs Error and DiagCode sis i Safety FB Common Input Variables The common input variables for safety FBs are listed in the following table Input param eter name Activate 4 2 Data type Valid range Default Description BOOL TRUE or FALSE Enables and disables the FB FALSE You can input a variable or a constant The default is FALSE You can input a variable that gives the status of the input device to evaluate for this parameter in order to disable the FB and to prevent unrelated diagnostic data from being output If this parameter is FALSE all output variables take their default values Normally input a TRUE constant to enable the FB NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks I 8 nput param Data type Valid range Default Description eter name S_StartReset SAFE TRUE or FALSE Controls automatic and manual resetting at startup BOOL FALSE i e when program execution is started You can input a variable or a constant FALSE default Perform resetting manually when the Safety CPU Unit is started TRUE Resetting is performed automatically when the Safety CPU Unit is started Use automatic resetting only when you can verify that no hazard of any sort will result from automatically resetting the Safety CPU Unit S_AutoReset SAFE TRUE or FALSE Controls automatic and manual resetting for the oper BOOL FALSE ation
58. in an input make the inputs for both channels inactive make S ChannelNC FALSE and make S ChannelNO TRUE to reset the FB FB specific Error Codes DiagCode hexadecimal Status name Status description and output results C001 Error 1 An input did not occur within the monitoring time in the Wait for NO state 8004 Ready TRUE S AntivalentOut FALSE Error TRUE C002 Error 2 An input did not occur within the monitoring time in the Wait for NC state 8014 Ready TRUE S AntivalentOut FALSE Error TRUE C003 Error 3 The input did not change within the monitoring time while the state changes from the From Active Wait 8005 to the Init 8001 state S ChannelNO did not change to TRUE after S ChannelNC changed to FALSE Or S ChannelNC did not change to FALSE after S ChannelNO changed to TRUE Ready TRUE S AntivalentOut FALSE Error TRUE jusjeAnuv 4S e FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE S_AntivalentOut FALSE Error FALSE 8001 Init The FB detected an activate signal and the FB is active Ready TRUE S AntivalentOut FALSE Error FALSE 8000 Safety Output An input changed to TRUE in Antivalent Mode Enabled Ready TRUE S AntivalentOut TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 13 4
59. in hexadecimal You can get detailed information on internal and external errors for FBs from DiagCode More than one reset input may be required to reset a FB fi Range of Values for Safety FB Common Diagnostic Codes DiagCode Meaning 0000_0000_0000_0000 binary The FB is not operating or the Safety CPU Unit is stopped 10xx xxxx xxxx xxxx binary The FB is operating and an error does not exist x is a FB specific code 11xx xxxx xxxx xxxx binary The FB is operating and an error exists x is FB specific code 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 i Safety FB Common Diagnostic Codes DiagCode 0000_0000_0000_0000 binary 0000 hex 0 decimal 4 Safety Function Blocks Meaning Indicates the Idle state In this state the FB is not operating Normally the I O have the following status Activate FALSE Safety input variables TRUE or FALSE Ready FALSE Error FALSE Safety output variables FALSE 1000 0000 0000 0000 binary 8000 hex 32 768 decimal Indicates the default operating status for normal operation that makes the safety output variable TRUE The FB is operating and no error has occurred or the operation is in a different state that makes the safety output FALSE Normally the I O have the following status Activate TRUE Safety input variables TRUE Ready TRUE Error FALSE Safety output variables TRUE 1000 0000 0000 0001 binary
60. input value is not INT 32768 to INT 32767 a cast error will occur and the program will stop 2 30 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions DINT_TO BYTE This function converts a DINT variable to a BYTE variable Instruction EIE Graphic expression DINT TO BYTE NN DINT to Variables Default Name WO Description Validrange In Data to con Input Data to con DINTZO to 255 DINT 0 vert vert Out Conversion Output Conversion BYTE 16 00 to FF BYTE 16 00 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts DINT data n to BYTE data Out Additional Information To convert BYTE data to DINT data refer to BYTE TO DINT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set ei
61. is DINT 2147483648 1000 0000 0000 0000 0000 0000 0000 0000 binary the value of Out is DWORD 16 80000000 e If the value of In is DINT 1 1111 1111 1111 1111 1111 1111 1111 1111 binary the value of Out is DWORD 16 F FFFFFFF Additional Information To convert DWORD data to DINT data refer to DWORD_TO_DINT 2 32 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononijsu uois19AUO d L eyeq QHOMG OL LNIG NX series Safety Control Unit Instructions Reference Manual Z931 2 33 2 Standard Functions DINT_TO_WORD This function converts a DINT variable to a WORD variable Instruction eS Graphic expression DINT_TO_WORD a DINT to Variables Default Data to con Input Data to con DINT 0 to 65535 vert vert Out Conversion Output Conversion WORD 16 0000 to FFFF WORD 16 0000 result result If you omit an input or output parameter a building error will occur DINT 0
62. is receiving light A sensor test has not been performed Ready TRUE S_OSSD_Out TRUE S_TestOut TRUE TestPossible TRUE TestExecuted FALSE Error FALSE 8020 Test Request An automatic sensor test is in progress The FB is waiting for the signal from the sensor to change to FALSE The time from when a test was requested from the sensor until the sensor signal changes to FALSE is being monitored Ready TRUE S_OSSD_Out TRUE S TestOut FALSE TestPossible FALSE TestExecuted FALSE Error FALSE Josues Ajejese qeise JS NX series Safety Control Unit Instructions Reference Manual Z931 4 119 4 Safety Function Blocks DiagCode hexadecimal 8030 Status name Test Active Status description and output results An automatic sensor test is in progress The FB is waiting for the signal from the sensor to change to FALSE The time from when a test was requested from the sensor until the sensor signal changes to TRUE is being monitored Ready TRUE S_OSSD_Out TRUE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE 8000 ESPE Free Test ok The FB did not detect a safety request The sensor was tested automatically Ready TRUE S_OSSD_Out TRUE S TestOut TRUE TestPossible TRUE TestExecuted TRUE Error FALSE 8012 ESPE Interrupted 2 The FB detected a safety request The sensor was tested automat ically Ready TRUE S_OSSD_Out FAL
63. n to DWORD data Out Example When Value of In Is 49 days 17 h 2 min 47 s 295 ms T 49d17h2m47s295ms The value of Out will be DWORD 16 FFFFFFFF Additional Information To convert DWORD data to TIME data refer to DWORD TO TIME Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 46 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions TIME_TO_WORD This function converts a TIME variable to a WORD variable Instruction eee Graphic expression TIME TO WORD NEC TIME to Variables Default Name WO Description Validrange Data to con Input Duration T 0ms to T 65s535ms vert Out Conversion Output Conversion WORD 16 0000 to FFFF WORD 16 0000 result result If you omit an input or output parameter a building error will occur T Oms Boolean Bit strings Integers Durations Ww 7 w sz 2 g z o g o J o O E E O O P m m m a m o m m m m m w i E E 9 z 9 2 5 O 3 z z m d 2 m
64. restart NX series Safety Control Unit Instructions Reference Manual Z931 4 45 4 Safety Function Blocks Inputs Start sequence Normal operation with S_AutoReset Activate S ESPE In Outputs i i i Ready i S ESPE Out DiagCodei 0000 S StartReset FALSE and S AutoReset TRUE Start normal operation safety request and restart 4 46 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected This FB detects an undetected change to TRUE in the Reset input as an error Operation for Errors S ESPE Out is set to FALSE If there is an undetected change to TRUE in the Reset input the DiagCode output gives the relevant error code and the Error output is set to TRUE To reset the error you must set Reset to FALSE e FB specific Error Codes DiagCode hexadecimal Status name C001 Reset Error 1 Status description and output results When the Wait for Reset 1 state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S ESPE Out FALSE Error TRUE C002 Reset Error 2 When the Wait for Reset 2 state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_ESPE_Out FALSE Error TRUE 3dS3 dS e FB specific State Codes No Error DiagCode hexadecimal Status name 0000 Idle St
65. terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 23 suononijsu uois19AUO d L eyeq 3WIL OL SLAG 2 Standard Functions WORD TO TIME This function converts a WORD variable to a TIME variable Instruction Name FB FUN Graphic expression WORD_TO_TIME Convert WORD FUN WORD TO TIME to TIME Variables Default Data to con Input Data to con WORD 16 0000 to FFFF WORD 16 0000 vert vert Out Conversion Output Duration T 0ms to T 1m5s535ms_ T Oms result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m a 2 m o In OK OK Out OK OK Function This function converts WORD data n to TIME data Out Example When Value of In Is WORD 16 C549 The value of Out is 50 s 505 ms T 50s505ms Additional Information To convert TIME data to WORD data refer to TIME TO WORD Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a buildi
66. the Reset Error state you must set the Reset input to FALSE The S GuardSwitch1 and S GuardSwitch2 inputs must both be set to FALSE to reset a discrep ancy time error n o e FB specific Error Codes 5 DiagCode hexadecimal Status name Status description and output results C001 Reset Error When the Wait for Reset state was entered an undetected change g to TRUE in the Reset input was detected a Ready TRUE S GuardMonitoring FALSE Error TRUE C011 Discrepancytime Error The discrepancy time expired in state 8004 1 Ready TRUE S GuardMonitoring FALSE Error TRUE C012 Discrepancytime Error The discrepancy time expired in state 8014 2 Ready TRUE S GuardMonitoring FALSE Error TRUE FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE S_GuardMonitoring FALSE Error FALSE 8000 Normal The safety guard is closed and a confirmation response for a safe state was received Ready TRUE S_GuardMonitoring TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 59 4 Safety Function Blocks DiagCode hexadecimal 8001 Status name Init Status description and output results The FB was activated Ready TRUE S_GuardMonitoring FALSE Error FALSE 8002 Open Guard Request The FB is waiting for S_GuardSwitch1 and
67. the value of Q is FALSE f the value of CLK is FALSE when the power supply is turned ON the value of Q changes to TRUE The following figure shows a programming example and timing chart TRUE CLK A SF_F_TRIG_instance FALSE Q abc FALSE Task period Additional Information The SF_F_TRIG instruction assigns TRUE to output signal Q for only one task period when the power supply is turned ON RUN 3 10 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks SF_R_TRIG This FB outputs TRUE for one task period only when the input signal changes to TRUE Instruction Name FB FUN Graphic expression SF_R_TRIG Up Trigger FB SF_R_TRIG Variables i Input Variables Variable Name Data type Valid range Default Description CLK Input signal SAFEBOOL TRUE or FALSE FALSE Input signal i Output Variables 9 OlWL Y dS Variable Name Datatype Valid range Default Description Q Output signal SAFEBOOL TRUE or FALSE FALSE Output signal Function This FB assigns TRUE to output signal Q for one task period only when input signal CLK changes to TRUE Otherwise the value of Q is FALSE If the value of CLK is TRUE when the power supply is turned ON the value of Q changes to TRUE The following figure shows a programming example and timing chart CLK A TRUE SF_R_TRIG_instance FALSE NN SF R TRIG ne Q abc FALSE gt T
68. the value of a specified BOOL variable and the execution condition and outputs it to the next instruction Use the ORN instruction for a NC bit con nected in parallel with the previous instruction Use the ORN instruction to configure a logical OR between an NC bit and one of the following a LD or LDN instruction connected directly to the bus bar or the logic block starting with a LD or LDN instruction and ending with the instruction immediately before the ORN instruction The following figure shows a programming example of the OR instruction It takes the logical OR of vari able A and variable B and outputs it to variable C LD instruction A a Out instruction OR instruction M anua name Nu series Instructions Reference Manual W502 This page is for illustration only It may not literally appear in this manual Special Information Special information in this manual is classified as follows EN Additional Information References are provided to more detailed or related information L Version Information Information on differences in specifications and functionality for CPU Units and EtherCAT Cou pler Units with different unit versions and for different versions of the Sysmac Studio is given NX series Safety Control Unit Instructions Reference Manual Z931 o Terms and Conditions Agreement Terms and Conditions Agreement Warranty Limitations of Liability 10 Warranties e Exclusive Warr
69. timer output to TRUE when timing starts and then changes the timer output to FALSE when the set time is reached Use the SF TON instruction for a timer that starts when N changes to TRUE and then changes the timer output to TRUE when the elapsed time reaches the set time NX series Safety Control Unit Instructions Reference Manual Z931 3 15 3 Safety Standard Function Blocks SF TON This FB outputs TRUE when the set time elapses after the timer starts Instruction Name FB FUN Graphic expression SF_TON On Delay Timer FB SF_TON IN Q PT ET Variables i Input Variables Name Datatype Validrange Default Timer input TRUE or FALSE Variable Description TRUE Timer start specification FALSE Timer reset specification PT Set time TIME Depends on data 0 Time from when timer starts until Q type changes to TRUE i Output Variables Variable Name Data type Valid range Default Description Q Timer output SAFEBOOL TRUE or FALSE FALSE TRUE ET reached PT FALSE N is TRUE and ET is lower than PT after the timer starts ET Elapsed time TIME Depends on data 0 Elapsed time since timer started type 3 16 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks Function This FB outputs TRUE when the set time elapses after the timer starts The time is set in millisec onds The timer starts when timer input N changes
70. to TRUE Elapsed time ET is incremented as time elapses When ET reaches set time PT timer output Q changes to TRUE ET is not incremented after that The timer is reset when N changes to FALSE ET changes to 0 and Q changes to FALSE If the timer is started and then N changes to FALSE before ET reaches PT the timer is reset The following figure shows a programming example and timing chart when PT is T 10ms Variable abc will change to TRUE 10 ms after variable A changes to TRUE SF_TOF_instance SF TOF IN 3 PI ETF def NOL 4S PT T 10ms Q abc l l l 1 I ET def I Additional Information Use the SF TP instruction for a timer that changes the timer output to TRUE when timing starts and then changes the timer output to FALSE when the set time is reached Use the SF TOF instruction for a timer that starts when N changes to FALSE and then changes the timer output to FALSE when the elapsed time reaches the set time NX series Safety Control Unit Instructions Reference Manual Z931 3 17 3 Safety Standard Function Blocks SF_TP This FB outputs TRUE during the set time after the timer starts Instruction Name FB FUN Graphic expression SF_TP Timer Pulse FB SF TP IN Q PT ET Variables i Input Variables Name Datatype Validrange Default Timer input TRUE or FALSE Variable Description TRUE Timer start specification FALSE Timer reset specification P
71. to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results C003 Reset Error 3 When state C010 Test Error 1 was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE C004 Reset Error 4 When state C020 Test Error 2 was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE C005 Reset Error 5 When state 8006 End External Test was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE C006 Reset Error 6 When state C000 Parameter Error was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE C007 Reset Error 7 When state 8013 Wait for Reset 2 was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible
72. was selected and confirmed S Mode7Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 7 was selected and acknowledged FALSE Mode 7 was not selected or the selection was not confirmed TRUE Mode 7 was selected and confirmed S AnyModeSel SAFEBOOL TRUE or FALSE FALSE Indicates that one of the modes was selected and acknowledged FALSE None of the modes is selected TRUE One of the eight modes was selected and con firmed Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode Note X NX series Safety Control Unit Instructions Reference Manual Z931 WORD Depends on state code 16520000 Refer to Safety FB Common Output Variables on page 4 4 in S ModeX and S_ModeXSel indicates a number between 0 and 7 Jopalagepow 4S 4 Safety Function Blocks Function The FB handles a mode selection switch with up to eight positions You can change the mode to change the operation mode of the machine automatic mode manual mode semi automatic mode etc It is assumed that the machine is in safe mode when the Controller is started The inputs to the FB e g a machine start button change the mode to the mode that is set on the mode selection switch when the machine is started The default state after the FB is activated is the ModeChanged state This is the safe state for the FB in which all S_ModeXSe
73. with DWORD data 1 For example if the value of In is INT 16390 and the value of n2 is INT 2 the multiplication result will be 32780 If an INT variable is set for the output the value of the multiplication result will be the value that can be expressed with lower 16 bits of the product 32 780 i e 32 756 If a DINT variable is set for the output the addition result is DINT 32780 2 If the result exceeds the valid range of DINT data the result will be the value that can be expressed with the lower 32 bits NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions 3 For example if the value of n7 is T 24d20h31m23s649ms and the value of n2 is INT 2 the value of the mul tiplication result is T 49d17h2m47s298ms However the maximum value of TIME is the same as for DWORD 4294967295 so the multiplication result will be the value that can be expressed with 32 bits i e T 2ms Additional Information You cannot include more than one duration in the values to multiply To multiply a duration set a duration for Inf and Out and set integers for In2 to InN Precautions for Correct Use When multiplying integers the data types of n1 to InN and Out can be different If they are different calculations are performed with the data type that includes the range of all of the data types For example if n1 is INT data and n2 is DINT data calculations are performed with DINT data There f
74. 0000 IC010 8010 8000 8002 8003 C010 8010 800218003 8010 8000 4 102 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected The following conditions force a transition to an error state An invalid process always TRUE Reset signal An invalid always TRUE ProcessControl signal Programming error that results in incorrect interconnections between ProcessControl and Reset Operation for Errors f an error occurs the S OutControl output changes to FALSE and the safe state is maintained Toleave the Reset Init or Lock error states you must set the Reset input to FALSE To leave the Control Error state you must set the ProcessControl input to FALSE After S SafeControl changes to TRUE you can change the Reset input to TRUE to reset the optional startup inhibit Or after the FB is started you can change the Reset input to TRUE to reset the optional startup inhibit e FB specific Error Codes DiagCode hexadecimal C001 Status name Reset Error 1 Status description and output results When the Init state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_OutControl FALSE Error TRUE C002 Reset Error 2 When the Lock state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S OutControl FALSE Error TRUE C010
75. 121 SF_TwoHandControlTypelll liliis eee 4 126 NX series Safety Control Unit Instructions Reference Manual Z931 4 1 4 Safety Function Blocks General Rules for Safety Func tion Blocks This section gives the general rules for safety function blocks Safety function block is abbreviated as safety FB and function block is abbreviated as FB Rules That Are Specific to Safety FBs Item Rule Default signal The default for all SAFEBOOL signals is FALSE i e the safe state Signal levels The values of SAFEBOOL variables have the following meanings FALSE Indicates the safe state for a system output TRUE Indicates that operation is correct in terms of system safety e g that correct opera tion is possible These definitions reflect the functionality in an IEC 61131 standard For example if an error occurs all outputs change to FALSE as defined in the default signal rule Outputs All outputs are refreshed each safety task period Omitting I O parameters You can omit parameters Defaults are applied for any omitted parameters However these defaults will not lead to a non safe state for the system under any circum stances Defaults are defined for attributes i e for variables or constants and for FBs Start processing Outputs are initially set to the default values Outputs are enabled after the first FB call Error handling and diagno All safety FBs
76. 2 Standard Functions BOOL TO TIME This function converts a BOOL variable to a TIME variable Instruction FB FUN Graphic expression BOOL_TO_TIME PEE BOOL to BOOL TO TIME Variables Default Data to con Input Data to con TRUE or FALSE vert vert Out Conversion Output Duration T Oms or T 1ms T 0ms result If you omit an input or output parameter a building error will occur FALSE Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts BOOL data n to TIME data Out If the value of n is FALSE the value of Out is 0 ms T 0ms If the value of In is TRUE the value of Out is 1 ms T 1ms Additional Information To check for TIME data refer to TIME TO BOOL Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 14 NX ser
77. 22 is the second switch to start muting Timer for DiscTime21 22 stopped MutingEnable AND MS 21 AND R TRIG at MS 22 AND NOT MS 11 AND NOT MS 12 Muting Condition 12 8422 to 8121 when MS 21 is the second switch to start muting Timer for DiscTime21 22 stopped MutingEnable AND R_TRIG at MS 21 AND MS 22 AND NOT MS 11 AND NOT MS 12 Muting Condition 13 8000 to 8121 when both switches simultaneously start muting Timer for MaxMuting Time started MutingEnable AND R_TRIG at MS 21 AND R TRIG at MS 22 AND NOT MS 11 AND NOT MS 12 Muting Condition 14 8121 to 8112 when all switches are active MS 11 AND MS 12 AND MS 21 AND MS 22 Muting Condition 44 8121 to 8114 when MS 11 is the first switch to stop muting Timer for DiscTime11 12 started MS 21 AND MS 22 ANDR TRIG at MS 11 AND NOT MS 12 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Muting Condition 44 8121 to 8414 when MS_12 is the first switch to stop muting Timer for DiscTime11_12 started MS_21 AND MS_22 AND NOT MS_11 AND R_TRIG at MS_12 Muting Condition 45 8114 to 8112 when MS_12 is the second switch to stop muting Timer for DiscTime11_12 stopped MS_21 AND MS_22 AND MS_11 AND R_TRIG at MS_12 Muting Condition 45 8414 to 8112 when MS_11 is the second switch to stop muting Timer for DiscTime11_12 stopped MS_21 AND MS_22 AND R_TRIG at MS_11 AND MS_12 Muting Condition 15 8112 to 8000 when one of the muting stop sw
78. 32767 0 Counter preset value Output Variables Name Datatype Validrangs Default Variable Description Q Counter output SAFEBOOL TRUE or FALSE TRUE CV is greater than or equal to PV FALSE CV is less than PV CV Counter value SAFEINT 0 to 32767 0 Counter present value Function This FB creates an up counter The preset value and counter value must have a SAFEINT data type When reset signal RESET changes to TRUE counter value CV changes to 0 and counter output Q changes to FALSE When counter input signal CU changes to TRUE CV is incremented When the value of CV reaches the value of PV or higher the value of Q changes to TRUE Even after the value of CV exceeds the value of PV CV is incremented to up to 32 767 when CU changes to TRUE CUis ignored while RESET is TRUE CV is not incremented NX series Safety Control Unit Instructions Reference Manual Z931 3 5 3 Safety Standard Function Blocks The following figure shows a programming example and timing chart for a PV of INT 5 SF_CTU_instance SF CTU CU RESET TRUE CU A FALSE Reset abc TRUE FALSE PV INT 5 CV ghi i 0 4 TRUE i Q def FALSE When Reset changes to TRUE When CV reaches PV CV is setto 0 and Q changes to Q changes to TRUE FALSE CV is incremented as soon as Reset changes to FALSE Additional Information Use the SF CTD instruction to create a counter that decrements the co
79. 8 Data Type Conversion Instructions l l RH HH nn 2 9 BOOLSTOSIN Ti a ih atte DN dta eap ui 2 12 BOO IO 7 DIN Wisk ae cee tne eu he aaa ae ee 2 13 BOOL TO TIME rrr basen ee ale eee ei a ee 2 14 BOOL2TO WORD seagate eet cadet tit 2 15 BY ATE STOR INT ettet ACE MEE E meas 2 16 BYTE TO DI 2 17 WORD TON Tc o neta iae idolo 2 18 WORD TO DIN T IU RI 2 20 DWORD TO DINT iii a dees 2 21 BYTE TO TIME 00 n ete RENI echt aad alia t id st 2 23 WORD TOSFIME a Steet teeta scree bte cm 2 24 DWORD TO TIME ui A eae ehe de Bathe need deeded 2 25 BYTE TO WORD tex i Ede i be e erat oue eua 2 26 WORD TOZBYTE ce e eee 2 27 WORD TO DWORD eet A ieee ERE e RU 2 28 DINT TOs BOQ bs 4 e ee pret epe ees 2 29 INT TOSBOOL oi EA T E AE to did 2 30 DINT TO BYTE cui E 2 31 DINTA TO DWORD 2 t a Rud 2 32 DNT TO WORD a 2 34 INT TO BYTE A A A A eee eo A ee ee 2 35 INT TO DWORD 000 e t eet Ri Ee det e UH as 2 36 IBET SEO WORDS uem MEE Ls 2 38 DINT TO INT iia H 2 40 INT PO S DIN Ti a dro 2 41 DINTETOTIME nione edic 2 42 INT TOC TIME uie tee A nerd aed dede e RE C aeu eU e EFE Rea 2 43 TIME TO SBOQONL iot t len ee Oe EH Eee t des 2 44 TIMES TOP BYTE za tere Mx RO ee m Maas 2 45 TIM TO DWORD raae 22 tenia Mn nett bet dolida 2 46 TIME TO WORD vers fers i ite imber teer bet oa ren UE e to ura 2 47 TIME OS DN RE OU RAM 2 48 A O ON 2 49 WORDUTQ BOO Le 5 terns tid tated wee oe men Red petam 2 50 Boolean Operatio
80. 99 E E RS SO 2 68 SESRS ecce edet MuR 3 12 SESRSIRIG 23 dace etes 3 11 M SF Satety Request caen tiet 4 105 SFiS Rois 3 13 Mode Selector c cecccccceeseseseseesesesesessssesesessevesessseenss 4 61 SF TestableSafetySensor sss 4 111 MIU E 2 60 SF TOF e E E eene 3 14 Multiplexer 2 tee pe a dee ead 2 74 SF TON S iani a aa a E a 3 16 Multiplication caia aa 2 60 SET LCD C 3 18 MOX EN E RE 2 74 SF TwoHandControlTypell eee 4 121 SF TwoHandControlTypelll esssse 4 126 N SUB ia Aut uM 2 58 Subir accio dert doeet ne teres 2 58 MET 2 67 oS 2 54 T Not Equal ccc ihre rote tef etr teens 2 67 Testable Safety Sensors sese 4 111 O Timer PUSE coi delta 3 18 TIME TO BOOL 1 2 2 2 riter p feed 2 44 Off Delay TimMer tec ei uet eed 3 144 TIME TO BYTE ssssseeeeenenemennnnnmnnnnnnnnnnnnnes 2 45 On Delay TOP acaecido nales 3 46 TIME TO DINT cocicconancicononnocionoonnconanonnnannnnnnn coran 2 48 olg 2 52 TIME TO DWORD eenenenenneeneeneenenenenne 2 46 DUE COMA adora cete dod de 4 99 TIME TO INT sssseeneennnnnnnnne 2 49 TIMETO WORD sanini edite iere tte cde 2 47 P Two Hand Control Type ll ooooonccnnnncconnnccnnnocncnnnnnnnnnoo 4 121 Two Hand Control Type lll 4 126 Parallel Muting ooooniocccnnnnnnnccccnnncononccononnnnnccnncnnnnonos 4 70 Parallel Muting with 2 Sensors esssss 4 81 U R U
81. Blocks This safety FB controls entry to a hazardous area with a four state interlock guard with a guard lock Instruction SF_GuardLocking Variables i Input Variables Name Safety Guard Interlocking with Locking FB FUN FB BOOL SAFEBOOL SAFEBOOL SAFEBOOL BOOL SAFEBOOL SAFEBOOL BOOL Graphic expression SF_GuardLocking Activate Ready BOOL S_GuardMonitoring S_GuardLocked SAFEBOOL S_SafetyActive S_UnlockGuard SAFEBOOL S_GuardLock Error BOOL UnlockRequest DiagCode WORD S_StartReset S_AutoReset Reset Bupipo pueno 4S Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S_GuardMonitoring SAFEBOOL TRUE or FALSE FALSE A variable It monitors the guard interlock FALSE The guard is open TRUE The guard is closed S_SafetyActive SAFEBOOL TRUE or FALSE FALSE A variable It monitors the velocity or the state of the hazardous area EDM based on the safe time OFF delay etc FALSE The mechanical device is in a non safe state TRUE The mechanical device is in a safe state S_GuardLock SAFEBOOL TRUE or FALSE FALSE A variable It gives the status of the mechanical guard lock FALSE The guard is not locked TRUE The guard is locked UnlockRequest BOOL TRUE or FALSE FALSE A variable It indicates operator intervention i e a request to unlock the guard FAL
82. Data to con INTZ 32768 to 32767 INT 0 vert vert Out Conversion Output Conversion DINT 32768 to 32767 DINTZO result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 5 O 3 z z m d E m o In OK OK Out OK OK Function This function converts INT data n to DINT data Out Example When Value of n Is INT 32768 to INT 32767 The value of Out will be DINT 32768 to DINT 32767 Additional Information To convert DINT data to INT data refer to DINT TO INT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 41 suononijsu uois19AUO d L eyeq 1NId OL LNI 2 Standard Functions DINT_TO_TIME This function converts a DINT variable to a TIME variable Instruction FB FUN Graphic expression DINT_TO_TIME oe
83. E Indicates that mode O was selected and acknowledged FALSE Mode 0 was not selected or the selection was not confirmed TRUE Mode 0 was selected and confirmed S Mode1Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 1 was selected and acknowledged FALSE Mode 1 was not selected or the selection was not confirmed TRUE Mode 1 was selected and confirmed S Mode2Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 2 was selected and acknowledged FALSE Mode 2 was not selected or the selection was not confirmed TRUE Mode 2 was selected and confirmed S Mode3Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 3 was selected and acknowledged FALSE Mode 3 was not selected or the selection was not confirmed TRUE Mode 3 was selected and confirmed S Mode4Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 4 was selected and acknowledged FALSE Mode 4 was not selected or the selection was not confirmed TRUE Mode 4 was selected and confirmed S Mode5Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 5 was selected and acknowledged FALSE Mode 5 was not selected or the selection was not confirmed TRUE Mode 5 was selected and confirmed S Mode6Sel SAFEBOOL TRUE or FALSE FALSE Indicates that mode 6 was selected and acknowledged FALSE Mode 6 was not selected or the selection was not confirmed TRUE Mode 6
84. E data Out Additional Information To convert BYTE data to WORD data refer to BYTE TO WORD Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal fthe input value is not between WORD 16 0000 and WORD 16 00FF a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 27 suononijsu UOISIBAUOD d L eyeq 3118 OL GYOM 2 Standard Functions WORD TO DWORD This function converts a WORD variable to a DWORD variable Instruction Name FB FUN Graphic expression WORD TO DWORD Convert WORD FUN Variables Name WO Description Validrange Default Data to con Input Data to con WORD 16 0000 to FFFF WORD 16 0000 vert vert Out Conversion Output Conversion DWORD 16 00000000 DWORD 16 00000000 result result to 0000FFFF If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3
85. FALSE A variable The control signal from the previous safety FB The sig nal from a typical FB from the library SF_OutControl SF TwoHandControlTypell etc is used FALSE Disables the safety output S EDM Out TRUE Enables the safety output S EDM Out S EDM1 SAFEBOOL TRUE or FALSE FALSE A variable The feedback signal from the first connected actuator FALSE The first connected actuator is in switched status TRUE The first connected actuator is in its default status S EDM2 SAFEBOOL TRUE or FALSE FALSE A variable The feedback signal from the second connected actuator If there is only one feedback signal used in the applica tion connect it to both S EDM1 and S EDM2 FALSE The second connected actuator is in switched status TRUE The second connected actuator is in its default status MonitoringTime TIME Depends on data T 0ms type A constant It gives the maximum response time for the connected monitored actuator S_StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE NX series Safety Control Unit Instructions Reference Manual Z931 Refer to Safety FB Common Input Variables on page 4 2 4 Safety Function Blocks i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variab
86. FALSE Default FALSE Description A constant or a variable It is input 4 from the mode selection switch FALSE No request was made by the operator to select mode 4 TRUE A request was made by the operator to select mode 4 S Mode5 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 5 from the mode selection Switch FALSE No request was made by the operator to select mode 5 TRUE A request was made by the operator to select mode 5 S Mode6 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 6 from the mode selection Switch FALSE No request was made by the operator to select mode 6 TRUE A request was made by the operator to select mode 6 S Mode SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 7 from the mode selection Switch FALSE No request was made by the operator to select mode T TRUE A request was made by the operator to select mode 7 S Unlock SAFEBOOL TRUE or FALSE FALSE A constant or a variable It locks or unlocks the selected mode FALSE The actual S ModeXSel output is locked so the S ModeXSel output will not change even if the S ModeX input has changed when S SetMode changes to TRUE TRUE The mode can be changed because the selected S ModeXSel output is not locked S SetMode SAFEBOOL TRUE or FALSE FALSE A constant or a variable If AutoSetMode is FALSE this variable ex
87. I Input Variables m un 5 Variable Data type Valid range Default Description lt Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 oy S ChannelNC SAFEBOOL TRUE or FALSE FALSE It functions as the input for a N C connection T FALSE The N C contacts are open TRUE The N C contacts are closed N C Normally closed S ChannelNO SAFEBOOL TRUE or FALSE TRUE It functions as the input for a N O connection FALSE The N O contacts are open TRUE The N O contacts are closed N O Normally open Discrepancy TIME Depends on data T 0ms It sets the maximum monitoring time for discrepancy Time type between two inputs i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_AntivalentOut SAFEBOOL TRUE or FALSE FALSE The safety output FALSE At least one of the signals is FALSE or the state changed outside the monitoring time TRUE The two input signals are active and the state changed within the monitoring time Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on 16 0000 Refer to Safety FB Common Output Variables on page 4 4 state code NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function This FB monitors the time that two SAFEBOO
88. K OK OK In2 OK OK OK OK OK OK Out OK OK OK OK OK OK Function This function subtracts subtrahend n2 from minuend n and outputs the result to output value Out An overflow occurs if the difference between n1 and In2 exceeds the valid range of the data type of the subtraction result If an overflow occurs the data types of n and n2 the data type of the subtraction result and the value of the subtraction result will be as shown in the following table I O data types Value of subtraction results Integers Of the difference between n1 and n2 the subtraction result will be the value that can be expressed by the number of bits in the data type of the subtraction result 12 Durations Of the difference between n1 and n2 the subtraction result will be the value that can be expressed by DWORD data 1 For example if the value of n1 is INT 5 and the value of In2 is INT 32767 the subtraction result will be 32772 If an INT variable is set for the output the value of the subtraction result will be the value that can be expressed with lower 16 bits of the difference 32772 i e 32764 If a DINT variable is set for the output the subtraction results is DINT 32772 2 If the result exceeds the valid range of DINT data the result will be the value that can be expressed with the lower 32 bits 2 58 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions 8 For example if the value
89. L TRUE or FALSE FALSE A variable It is the status of muting sensor 22 FALSE Muting sensor 22 is not operating TRUE A workpiece activated muting sensor 22 S_MutingLamp SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is the muting lamp status input e g filament broken status FALSE Muting lamp failure TRUE Muting lamp is normal NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Variable Data type Valid range Default Description DiscTime11_12 TIME TROs to T 4s T Os A constant It sets the maximum discrepancy time between MutingSwitch11 and MutingSwitch12 DiscTime21_22 TIME T 20s to T 4s T Os A constant It sets the maximum discrepancy time between MutingSwitch21 and MutingSwitch22 MaxMutingTime TIME T 0s to T 10min T 0s A constant It sets the maximum time until completion of the muting sequence The timer starts when the muting sensor first operates MutingEnable BOOL TRUE or FALSE FALSE A constant or a variable It is a command from the control system to enable starting muting as required in the machine cycle You can change this signal to OFF after muting starts FALSE Disables muting TRUE Enables starting muting S_StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2
90. L TO DINT Variables Default Name vO Description Validrange Data to con Input Data to con TRUE or FALSE vert vert Out Conversion Output Conversion DINTZO or DINT 1 DINT 0 result result If you omit an input or output parameter a building error will occur FALSE Boolean Bit strings Integers Durations Ww 7 w o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m w i E E 9 z 9 2 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts BOOL data n to DINT data Out If the value of In is FALSE the value of Out is DINTZO If the value of n is TRUE the value of Out is DINT 1 Additional Information To check for DINT data refer to DINT TO BOOL Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 13 suononijsu uois19AUO d L eyeq LNIG OL 1008
91. L inputs are the same and outputs the result on the SAFEBOOL output when they are different S ChannelNC and S ChannelNO are dependent on each other The evaluation result for both chan nels is output When the input for one channel changes so that the two channel inputs are no longer different the FB starts monitoring the discrepancy time An error occurs if a change does not occur that makes them different again within the monitoring time If S AntivalentOut is TRUE and the signal for one channel changes the output immediately changes to FALSE If an error occurs make the inputs for both channels inactive make S ChannelNC FALSE and make S ChannelNO TRUE to reset the FB Set DiscrepancyTime to a value that is longer than the safety task period Refer to the NX series Safety Control Unit User s Manual Cat No Z930 for application methods for DiscrepancyTime LA Precautions for Correct Use This FB does not have a restart interlock You must connect it to a FB that has a restart inter lock NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks State Transition Diagram NOT Activate Ready FALSE Ready TRUE NOTS_ChannelNC AND S ChannelNO NOTS_E annelNC NOTS_ChannelNC S_Chann lNC AND S ChannelNO AND NOTS_Ch annelNO S ChannelNO AND NOT S_ChannelNC NOTS Ch nnelNC AND S CliannelNO S ChannelNO DiscrepancyTime Elapsed Error 1 S ChannelNC AND Wait for NO C004
92. LSE Variable Description TRUE Timer reset specification FALSE Timer start specification PT Set time TIME Depends on data 0 Time from when timer starts until Q type changes to FALSE i Output Variables Variable Name Data type Valid range Default Description Q Timer output SAFEBOOL TRUE or FALSE FALSE TRUE N is TRUE and ET is lower than PT after the timer starts FALSE ET reached PT ET Elapsed time TIME Depends on data 0 Elapsed time since timer started type 3 14 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks Function This FB outputs FALSE when the set time elapses after the timer starts The time is set in millisec onds The timer starts when timer input N changes to FALSE Elapsed time ET is incremented as time elapses When ET reaches set time PT timer output Q changes to FALSE ET is not incremented after that The timer is reset when N changes to TRUE ET changes to 0 and Q changes to TRUE If the timer is started and then N changes to FALSE before ET reaches PT the timer is reset The following figure shows a programming example and timing chart for a PT of T 10ms Variable abc will change to FALSE 10 ms after variable A changes to FALSE SF TOF instance SF TOF 3 PT ETF def JOL dS PT T 10ms In A Q abc Additional Information Use the SF TP instruction for a timer that changes the
93. LSE 8414 Muting Backward Step 2 A backward muting sequence is in operation MutingSwitch12 oper ates as the first muting stop switch Monitoring for DiscTime11_12 is started Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8112 Muting Backward Active 2 A backward muting sequence is still in operation Both MutingSwitch11 and MutingSwitch12 are active so monitoring for DiscTime11_12 was stopped Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 SF_MutingPar_2Sensor 4 Safety Function Blocks Muting is used to intentionally disable a safety function This safety FB performs parallel muting with two muting sensors Instruction SF_MutingPar_2S ensor Name Parallel Muting with 2 Sensors FB FUN FB BOOL SAFEBOOL SAFEBOOL SAFEBOOL SAFEBOOL TIME TIME BOOL SAFEBOOL BOOL Graphic expression SF_MutingPar_2Sensor Activate BOOL S AOPD In SAFEBOOL S MutingSwitch11 SAFEBOOL S MutingSwitch12 BOOL S MutingLamp WORD DiscTimeEntry MaxMutingTime MutingEnable S StratReset Reset 1 T Variables z c s y I Input Variables j Variable Data type Valid range Default Description 3 Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S_AOPD_In SAFEBOOL TRUE or FALSE FALSE A variable This is the OSSD safety o
94. M Error 11 The EDM1 signal is not valid during the initial status of the actuator If S OutControl is enabled when output is not possible the EDMf1 signal changes to FALSE Ready TRUE S_EDM_Out FALSE Error TRUE C020 EDM Error 12 The EDM2 signal is not valid during the initial status of the actuator If S OutControl is enabled when output is not possible the EDM2 signal changes to FALSE Ready TRUE S_EDM_Out FALSE Error TRUE C030 EDM Error 13 The EDM1 and EDM2 signals are not valid during the initial status of the actu ator If S_OutControl is enabled when output is not possible the EDM1 and EDM2 signals change to FALSE Ready TRUE S EDM Out FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 DiagCode hexa decimal C040 Status name EDM Error 21 4 Safety Function Blocks Status description and output results The EDM1 signal is not valid during the initial status of the actuator The EDM 1 signal changed to FALSE when output was not possible and the mon itoring time ended Ready TRUE S_EDM_Out FALSE Error TRUE C050 EDM Error 22 The EDM2 signal is not valid during the initial status of the actuator The EDM2 signal changed to FALSE when output was not possible and the mon itoring time ended Ready TRUE S_EDM_Out FALSE Error TRUE C060 EDM Error 23 The EDM1 and EDM2 signals are not valid during the
95. Muting sequence An error was detected during muting sequence state 8000 8011 or 8311 Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE Y Sequence status COx4 Error occurred in state 8000 C1x4 Error occurred in state 8011 C2x4 Error occurred in state 8311 CFx4 MutingEnable was not detected x Muting sensor status when the error occurred 4 bits LSB MS_11 Next bit after LSB MS_12 CY04 Both switches are FALSE CY 14 S MutingSwitch11 TRUE CY24 S MutingSwitch12 TRUE CY34 Both switches are TRUE C005 Parameter Error The value of DiscTimeEntry or MaxMutingTime is out of range Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE C006 Error Timer MaxMuting Timing error The muting operation time while S MutingActive TRUE exceeded MaxMutingTime Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE C007 NX series Safety Control Unit Instructions Reference Manual Z931 Error Timer Entry Timing error Discrepancy time in MutingSwitch11 and MutingSwitch12 changing to TRUE exceeded DiscTimeEntry Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE JS Sunny Josuegz Jed 4 Safety Function Blocks e FB specific State Codes No Error DiagCode hexadecimal 0000 Status name Idle Status description and output results The FB is disabled default Ready FALSE S_AOPD_
96. NOT Activate Ready FALSE Eror 2 Ready TRUE R_TRIG at Reset Open circuit C002 Error 2 C004 R_TRIG at Reset AutoSetMode OR Error R_TRIGatS SetMode S ModeX Short circuit AND S Unlock AN C001 one S ModeX TRUE Changed S_ModeXSel FALSE S_AnyModeSel FALSE S_ModeXSel TRUE S_AnyModeSel TRUE Jopalagepow 4S Error conditions Error 1 More than one S_ModeX TRUE at the same time Error 2 All S ModeX FALSE for longer S_Unlock than ModeMonitorTime Mode Locked 8004 Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 65 4 Safety Function Blocks i Timing Charts S_Mode2 S_Mode3 S_SetMode S Mode2Sel S Mode3Sel DiagCode S Mode2 Other S ModeX Error S ModeXSel S AnyModeSel ModeMonitorTime DiagCode C002 4 66 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks S_Mode2 Error Reset S_SetMode S Mode2Sel CO O OS S AnyModeSel DiagCode Jopalagepow 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 67 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected The FB detects the absence of a mode selection as an error This invalid state is detected after ModeMonitorTime
97. OMRON Machine Automation Controller NX series Safety Control Unit Instructions Reference Manual NX SLLILILILI always in control OMRON 2013 All rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permission of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Neverthe less OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication Trademarks Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products Windows Windows XP Windows Vista Windows 7 and Windows 8 are registered trademarks of Microsoft Corporation in the USA and other countries EtherCATe is registered trademark and patented technology licensed by Beckhoff Automation GmbH Germany Safety over EtherCATe is registered trademark and patented technology licensed by Beckhoff Automation GmbH German
98. OO MutingSwitcht2 lA MutingSwiteh24 ff OOO MutingSwiteh22 00 S ooo Lo S AOPD Out S M ngAcive lO Error DiagCode 8000 8000 8011 8012 8012 8012 8014 8021 8021 8021 8021 8000 8000 i Instruction Execution Errors e Error Detected The FB detects the following errors DiscTime11_12 or DiscTime21_22 is set to less than TZOs or more than T 4s MaxMutingTime is set to less than T 0s or more than T 10min The discrepancy time for a sensor pair MutingSwitch11 and MutingSwitch1 2 or MutingSwitch21 and MutingSwitch22 exceeded the set value Muting S_MutingActive TRUE exceeded MaxMutingTime maximum muting time The muting sensors MutingSwitch11 MutingSwitch12 MutingSwitch21 and MutingSwitch22 operated in an incorrect order A muting sequence started without being enabled by MutingEnable A muting lamp failure was indicated S_MutingLamp FALSE An undetected change to TRUE in the Reset input was detected in state 8001 or 8003 Operation for Errors When an error occurs the S AOPD Out and S MutingActive outputs are set to FALSE The DiagCode output gives the relevant error code and the Error output is set to TRUE Operation is not restarted until the error is reset and the operator acknowledges the safe state with Reset FB specific Error Codes DiagCode hexadecimal Status name C001 Reset Error 1 Status description and output results When the Init state w
99. OPD_Out FALSE S_MutingActive FALSE Error FALSE 8003 Wait for Reset A safety request or error was detected and cleared The operator must respond with Reset Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error FALSE 8005 Safe The safety function is operating Ready TRUE S AOPD Out FALSE S MutingActive TRUE Error FALSE 8011 Muting Forward Start A forward muting sequence is being started and there is no safety request Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 8012 Muting Forward Active A forward muting sequence is in operation Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8112 Muting Backward A backward muting sequence is in operation Active Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8122 Muting Backward Start A backward muting sequence is being started and there is no safety request Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 4 98 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF_OutControl This safety FB controls a safety output with a control signal and safety signal from a function applica tion Instruction Name FB FUN Graphic expression SF_OutControl Out Control FB SF_OutControl BOOL Activate Ready BOOL SAFEBOOL S_SafeControl S_OutControl SAFEBOOL BOOL ProcessControl BOOL BOOL StaticControl i WORD SAFEBOOL S_StartReset SAFEBOOL S_Aut
100. Out FALSE S_MutingActive FALSE Error FALSE 8000 AOPD Free Muting is disabled but the control input from AOPD is active If the muting timer is operating it stops Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 8001 Init The FB was started Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8002 Safety Demand AOPD Muting is disabled The control input from AOPD is disabled Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8003 Wait for Reset A safety request or error was detected and cleared The operator must respond with Reset Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8005 Safe The safety function is operating Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE 8011 Muting Start 1 A muting sequence is being started after MutingSwitch11 changed to TRUE Monitoring is active for DiscTimeEntry Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 8311 Muting Start 2 A muting sequence is being started after MutingSwitch12 changed to TRUE Monitoring is active for DiscTimeEntry Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8012
101. RUE S AOPD Out TRUE S MutingActive TRUE Error FALSE Jeq6uynw 4S 4 Safety Function Blocks DiagCode hexadecimal 8122 Status name Muting Backward Start 1 Status description and output results A backward muting sequence is being started after MutingSwitch21 changed to TRUE Monitoring is active for DiscTime21_22 Monitor ing is active for MaxMutingTime Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 8422 Muting Backward Start 2 A backward muting sequence is being started after MutingSwitch22 changed to TRUE Monitoring is active for DiscTime21_ 22 Monitor ing is active for MaxMutingTime Ready TRUE S_AOPD_Out TRUE S_MutingActive FALSE Error FALSE 8121 Muting Backward Active 1 A backward muting sequence is in operation for one of the following Achange to TRUE was detected in the second muting switch of MutingSwitch21 and MutingSwitch22 Both MutingSwitch21 and MutingSwitch22 were started in the same cycle Monitoring for DiscTime21_22 was stopped Monitoring for MaxMu ting Time is started after a transition directly from state 8000 Ready TRUE S AOPD Out TRUE S MutingActive TRUE Error FALSE 8114 Muting Backward Step 1 A backward muting sequence is in operation MutingSwitch11 oper ates as the first muting stop switch Monitoring for DiscTime11_12 is started Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FA
102. RUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S TwoHandOut SAFEBOOL TRUE or FALSE FALSE The safety output signal FALSE A button is not being operated or correct two hand operation was not performed TRUE The S_Button1 and S_Button2 inputs are TRUE and there is no error Correct two hand operation is being performed Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1620000 Refer to Safety FB Common Output Variables on page code 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 4 121 194 jo4jUOQpUeHOML 4S 4 Safety Function Blocks Function This FB provides a type ll two hand control function as defined in ISO 13851 EN 574 If S_Button1 and S Button2 are set to TRUE in the correct order the S TwoHandOut output is also set to TRUE This FB also controls releasing of both buttons before it sets the S TwoHandOut output to TRUE again fi State Transition Diagram Ready TRUE B1 OR B2 NOT B1 OR B2 Error C001 B1 Q co02 B2 C003 B18B2 Buttons Released NOT B1 OR B2 2 Button 2 Actuated 8006 Actuated B1 AND B2 S_TwoHandOut FALSE S_TwoHandOut TRUE B1 S_Button1 B2 S_Button2 Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0
103. RUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on 160000 Refer to Safety FB Common Output Variables on page 4 4 state code 4 42 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function This FB monitors electro sensitive protective equipment ESPE The function is the same as that of the SF_EmergensyStop instruction As soon as the S ESPE n input is set to FALSE the S_ESPE_Out output is set to FALSE If the S ESPE n input is set to TRUE and the function is reset the S ESPE Out output signal is set to TRUE Enabling the reset is determined by the defined S StartReset S AutoReset and Reset inputs If S AutoReset is TRUE the confirmation operation is performed automatically If S AutoReset is FALSE a change to TRUE in the Reset input must be made for enable confirma tion If S StartResetis TRUE the confirmation operation is performed automatically when the Safety CPU Unit first starts If S StartReset is FALSE a change to TRUE in the Reset input must be made for enable confirma tion Activate the S StartReset and S AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit ESPE must be selected for the category that is required according to product standards IEC EN 61496 1 IEC EN 61496 2 IEC EN 61496 3 and EN ISO 13849 1 3dS3 38 NX series
104. S Button and S Button2 were TRUE when the FB was activated Ready TRUE Error TRUE S TwoHandOut FALSE C004 Error 2 B1 After 500 ms in state 8005 S_Button1 was FALSE and S_Button2 was TRUE Ready TRUE Error TRUE S TwoHandOut FALSE C005 Error 2 B2 After 500 ms in state 8005 S_Button1 was TRUE and S Button2 was FALSE Ready TRUE Error TRUE S TwoHandOut FALSE C006 Error 2 B1 amp B2 After 500 ms in state 8005 or 8006 S Button1 was TRUE and S Button2 was TRUE This state is possible only when the S Button and S Button2 input status change from different status to the same status both TRUE when the timer expires 500 ms in the same cycle Ready TRUE Error TRUE S TwoHandOut FALSE I119dA ouo pueHom 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 129 4 Safety Function Blocks e FB specific State Codes No Error DiagCode hexadecimal 0000 Status name Idle Status description and output results The FB is disabled default Ready FALSE Error FALSE S TwoHandOut FALSE 8000 Buttons Actuated Both buttons were operated correctly The safety output is active Ready TRUE Error FALSE S TwoHandOut TRUE 8001 Init The FB is active but it is in the Init state Ready TRUE Error FALSE S TwoHandOut FALSE 8004 Buttons Released Neither of the buttons is being operated Ready TRUE Error FALSE S TwoHa
105. SE S TestOut TRUE TestPossible FALSE TestExecuted TRUE Error FALSE 8013 4 120 Wait for Reset 2 The FB is waiting for Reset to change to TRUE after the EPSE Interrupted 2 state Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF_TwoHandControlTypell This safety FB provides a type II two hand control function as defined in ISO 13851 EN 574 Instruction SF_TwoHandContr olTypell Variables Name trol Type Il Two Hand Con FB FUN FB BOOL SAFEBOOL SAFEBOOL Graphic expression SF_TwoHandControlTypell Activate BOOL S Button1 SAFEBOOL S Button2 BOOL WORD i Input Variables Variable Activate Data type BOOL Valid range TRUE or FALSE Default FALSE Description Refer to Safety FB Common Input Variables on page 4 2 S Button1 SAFEBOOL TRUE or FALSE FALSE A variable It is the button 1 input category 3 or 4 for two antivalent contacts FALSE Button 1 is OFF TRUE Button 1 is ON S Button2 SAFEBOOL TRUE or FALSE FALSE A variable It is the button 2 input category 3 or 4 for two antivalent contacts FALSE Button 2 is OFF TRUE Button 2 is ON i Output Variables Variable Data type Valid range Default Description Ready BOOL T
106. SE There is no request TRUE There is a request S_StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S_AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S GuardLocked SAFEBOOL TRUE or FALSE FALSE Connect this output to actuator that is the hazard source inside the guard The safety output changes to FALSE when there is a request to unlock the guard FALSE A non safe state exists TRUE A safe state exists S UnlockGuard SAFEBOOL TRUE or FALSE FALSE The guard unlock signal FALSE Closes the guard TRUE Releases the guard Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1620000 Refer to Safety FB Common Output Variables on page code 4 4 Function This FB controls a guard lock It monitors the guard and lock position You can use this FB with a mechanical lock switch The operator requests access to a hazardous area The guard can be un
107. SE TRUE TRUE TRUE FALSE Additional Information With AND and OR you can perform an operation for two or more variables n1 to InN at the same time With XOR however you can perform an operation for only two variables n7 and n2 at the same time A building error will occur if there are three or more input terminals for XOR Precautions for Correct Use You must use Boolean variables for n1 to InN and for Out The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur Setting a Safety Data Type Variable for the Output Terminal AND Set a safety data type variable for at least one of the input terminals OR XOR Set safety data type variables for all of the input terminals Setting a Standard Data Type Variable for the Output Terminal AND OR XOR Use either safety data type variable or standard data type variable for the input ter minals NX series Safety Control Unit Instructions Reference Manual Z931 2 53 2 Standard Functions NOT This function reverses the value of a Boolean bit Instruction Name FB FUN Graphic expression NOT Bit Reversal Variables Default Name WO Description Validrange Data to pro Input Data to pro TRUE or FALSE cess cess Out Processing Output Processing TRUE or FALSE FALSE result result If you omit an input or output parameter a building error will occur An
108. SF_MutingSeq Sequential Muting Performs sequential muting with four P 4 90 muting sensors SF_OutControl Out Control Controls a safety output with a control P 4 99 signal and safety signal from a func tion application SF_SafetyRequest Safety Request Makes requests for the safe state and P 4 105 monitors the safe state for an actuator e g a drive or valve that has a safety function SF_TestableSafetySensor Testable Safety Sensors Tests functionality with the external P 4 111 test function of electro sensitive pro tective equipment ESPE SF TwoHandControlTypell Two Hand Control Type I Provides a type II two hand control P 4 121 function as defined in ISO 13851 EN 574 SF TwoHandControlTypelll Two Hand Control Type III Provides a type Ill two hand control P 4 126 NX series Safety Control Unit Instructions Reference Manual Z931 function as defined in ISO 13851 EN 574 SF_Antivalent 4 Safety Function Blocks This safety FB monitors the discrepancy time for two antivalent SAFEBOOL inputs Note Antivalent refers to the state where two inputs are simultaneously in the opposite status during normal operation This kind of inputs is also called complementary or non equivalent Instruction Name FB FUN Graphic expression SF_Antivalent Antivalent FB SF Antivalent BOOL Activate BOOL SAFEBOOL S_ChannelNC SAFEBOOL SAFEBOOL S ChannelNO BOOL TIME DiscrepancyTime WORD Variables
109. Safety Control Unit Instructions Reference Manual Z931 4 43 4 Safety Function Blocks State Transition Diagram NOT Activate Activate Ready FALSE Ready TRUE S ESPE In AND S StartReset S StartReset AND NOT S ESPE In NOT S StartReset Reset Error 1 Reset Error 2 C001 C002 Wait for S ESPE In 1 Wait for 8002 S ESPE In2 NOT Reset NOT Reset Reset AND NOT NOTS_ESPE_In R JRIG at Reset S ESPEI In NOT S ESPE In S ESPE In AND Res t AND NOT NOT S AltoReset R RIG at Reset Wait for Reset 1 Wait for Reset 2 8003 8005 R_TRIG at Reset OR 7 id eset S ESPE Out FALSE S ESPE Out TRUE Safety Output Enabled 8000 Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 4 44 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts Inputs Start sequence E Normal operation with Reset Activate S ESPE In Outputsi i Ready S_ESPE_Out S_StartReset FALSE and S_AutoReset FALSE Start reset normal operation safety request and restart 3dS3 dS Inputs Start sequence with S StartReset Activate i S ESPE In i Reset Outputs i Ready i S ESPE Out DiagCode 9000 8000 8000 S StartReset TRUE and S AutoReset FALSE Start normal operation safety request and
110. SafetyRequest FALSE Error TRUE 8002 Operation Mode An operation mode exists for which safe mode cannot be confirmed Ready TRUE S_SafetyActive FALSE S SafetyRequest TRUE Error FALSE 8012 Wait for Confirmation An operation mode exists for which safe mode was confirmed OpMode Ready TRUE S_SafetyActive FALSE S SafetyRequest TRUE Error FALSE 8003 Wait for Confirmation The FB is waiting for acknowledgment from the drive device i e the system interface Ready TRUE S_SafetyActive FALSE S_SafetyRequest FALSE Error TRUE 8005 Wait for OpMode An error was reset but S_OpMode must be set to TRUE before the FB is initialized Ready TRUE S_SafetyActive FALSE S_SafetyRequest FALSE Error TRUE 4 110 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF TestableSafetySensor This safety FB tests functionality with the external test function of electro sensitive protective equipment ESPE For example it detects the loss of sensing unit detection ability response times that exceed specified values and always ON signals from a single channel sensor system It can be used with a safety sensor that supports external testing ESPE electro sensitive protective equipment such as a light beam Instruction SF TestableSafety Sensor Variables I Input Variables Variable Activate Sensors Data type BOOL Name Testable Safety FB FUN FB Valid r
111. T Set time TIME Depends on data 0 Time that Q remains at TRUE type i Output Variables Variable Name Data type Valid range Default Description Q Timer output SAFEBOOL TRUE or FALSE FALSE TRUE N is TRUE and ET is lower than PT after the timer starts FALSE ET reached PT ET Elapsed time TIME Depends on data 0 Elapsed time since timer started type 3 18 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks Function This FB outputs TRUE during the set time after the timer starts The time is set in milliseconds The timer starts when timer input N changes to TRUE and timer output Q changes to TRUE Elapsed time ET is incremented as time elapses When ET reaches set time PT timer output Q changes to FALSE ET is not incremented after that The timer is reset when N changes to FALSE ET changes to 0 The timer is not reset even if N changes to FALSE after the timer starts but before ET reaches PT The following figure shows a programming example and timing chart for a PT of T 10ms Variable abc changes to TRUE as soon as variable A changes to TRUE Variable abc changes to FALSE 10 ms later SF_TP_instance ER TP IN 3 PT ETF def dl dS PT T 10ms Q abc I I I I 1 ET def Additional Information Use the SF TON instruction for a timer that starts when N changes to TRUE and then changes the timer output to TRUE when the elapse
112. UE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF_SafetyRequest This safety FB makes requests for the safe state and monitors the safety state for an actuator e g a drive or valve that has a safety function Instruction Name FB FUN Graphicexpression SF_SafetyRequest Safety FB SF_SafetyRequest i BOOL Activate Ready BOOL SAFEBOOL S_OpMode S_SafetyActive SAFEBOOL SAFEBOOL S_Acknowledge S_SafetyRequest SAFEBOOL TIME MonitoringTime BOOL BOOL Reset WORD Variables Input Variables jsanbay jejes 4S Variable Data type Valid range Default Description Activate BOOL TRUE orFALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S OpMode SAFEBOOL TRUE or FALSE FALSE A variable It is a request for the operation mode of the connected actuator FALSE Requests safe mode TRUE Requests an operation mode i e non safe state S Acknowledge SAFEBOOL TRUE or FALSE FALSE A variable It is the response from the connected actuator to confirm whether the actuator is in safe mode FALSE Operation mode i e non safe state TRUE Safe mode MonitoringTime TIME Depends on data T 0s A constant It inputs the monitoring time from the safe type mode request i e from when S OpMode changed to FALSE until the actuator response i e when S Acknowledge changes to TRUE Reset BOOL TRUE or FALSE FALSE R
113. Unit NX series Safety Control Unit Instructions Reference Manual Z931 yoywmgea qeuy 4S 4 Safety Function Blocks i State Transition Diagram NOT Activate Activate Ready FALSE Ready TRUE Basic Operation Mode 8004 d GafltyAclive S SafetyActive NOT S_SafetyActive Enable switch in position 1 Position 1 8006 NOT S_ SafetyActive NOT S_ SafetyActive a z lt 3 o o ina Reset AND NOT R_TRIG at Reset AND NOT S_AutoReset Position 1 NOT S EnableSwitchCh1 AND S_EnableSwitchCh2 Enable switch in position 1 Position 2 S EnableSwitchCh1 AND S EnableSwitchCh2 Enable switch in position 2 Position 3 NOT S EnableSwitchCh1 OR S EnableSwitchCh2 OR S EnableSwitchCh1 AND NOT S EnableSwitchCh2 S EnableSwitchout FALSE S EnableSwitchout TRUE Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts S_AutoReset FALSE Activate S_SafetyActive S EnableSwitchCh1 S EnableSwitchCh2 Reset S AutoReset Ready S EnableSwitchOut Error DiagCode 0000 8004 8006 8000 8006 8004 C010 C001 C020 8006 8000 8007 S AutoReset TRUE Activate S SafetyActive S EnableSwitchCh1 S EnableSwitchCh2 yoyw
114. Unit and select Display Production Information from the menu The Production Information Dialog Box is displayed r rf Serial No 00000001 Model Information Slot 000 NX ECC201 LOT No Hardware Version Software Version VO A2 Slot 001 NX ID3417 Ver 1 0 LOT No 37053 Hardware Version Slot 002 NX ID3417 Ver 1 0 LOT No 37053 Hardware Version Slot 003 NX OD3153 LOT No Model Information Serial No Slot 001 NX ID3417 Slot 002 NX ID3417 Slot 003 NX OD3153 Slot 004 NX 0D3153 00000000 00000000 00000000 00000000 Ver 1 0 Ver 1 0 Ver 1 0 Ver 1 0 00000000 00000000 Show Detail Output file Close Ver 1 0 37053 00000000 Hardware Version Slot 004 NX OD3153 LOT No Hardware Version Output file Ver 1 0 37053 00000000 Simple Display Show Outline Close Detailed Display In this example Ver 1 0 is displayed next to the Unit model The following items are displayed Slot number Unit model number Unit version Serial number Lot number NX series Safety Control Unit Instructions Reference Manual Z931 Unit Versions Hardware version Software version The software version is displayed only for Units that contain software Unit Versions and Sysmac Studio Versions The functions that are supported depend on the unit version of the Unit The version of Sysmac Studio that supports the functions that were added for an upgrade is also required to use those f
115. Unlock S_AnyModeSel SAFEBOOL SAFEBOOL S_SetMode BOOL BOOL AutoSetMode i WORD TIME ModeMonitorTime BOOL Reset hi amp o Co o Variables i I Input Variables Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S_Mode0 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 0 from the mode selection switch FALSE No request was made by the operator to select mode 0 TRUE A request was made by the operator to select mode 0 S_Mode1 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 1 from the mode selection switch FALSE No request was made by the operator to select mode 1 TRUE A request was made by the operator to select mode 1 S_Mode2 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 2 from the mode selection Switch FALSE No request was made by the operator to select mode 2 TRUE A request was made by the operator to select mode 2 S Mode3 SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is input 3 from the mode selection switch FALSE No request was made by the operator to select mode 3 TRUE A request was made by the operator to select mode 3 NX series Safety Control Unit Instructions Reference Manual Z931 4 61 4 Safety Function Blocks Variable S_Mode4 Data type SAFEBOOL Valid range TRUE or
116. WORD e 2 32 Convert DINT to INT naian a n 2 40 Convert DINT to TIME occccncnncccucooononononononcncncnccnininnnns 2 42 Convert DINT to WORD eeseee 2 34 Convert DWORD to DINT eeee 2 21 Convert DWORD to TIME eee 2 25 Convert INT to BOOL eee 2 30 Convert INT to BYTE sess 2 35 Convert INT to DINT esses 2 41 Convert INT to DWORD esee 2 36 Convert INT to TIME seeesseeee 2 43 Convert INT to WORD eesesseseeee 2 38 Convert TIME to BOOL me 2 44 Convert TIME to BYTE ircre iiaii 2 45 Convert TIME to DINT ooocccccnnniccocooooononononononononcncnnnnn 2 48 Convert TIME to DWORD esee 2 46 Convert TIME to INT seesseseee 2 49 Convert TIME to WORD seseeee 2 47 Convert WORD to BOOL 2 50 Convert WORD to BYTE 2 27 Convert WORD to DINT eeeeeem 2 20 Convert WORD to DWORD ee 2 28 l 2 Convert WORD to INT ee 2 18 Convert WORD to TIME eeir 2 24 D DINT TO9BOOL tren ine tto rnc 2 29 DINT TO BYTE ite ee Ere 2 31 DINT TO DWORD rincon ceo eeii apaiia 2 32 DINT TO INT iiie cinere ch ieri 2 40 DIN TA TO HME certs cnet tics iba 2 42 DINT TO WORD
117. Wait for NC NOTS ChannelNO 8004 Error 2 C002 juejeAnuv 4S Discrepancy Discrepancy s ChanelNC Time Elapsed Time Elapsed NOTS_ChannelNC ANDS_ChannelNO S_AntivalentOut FALSE NOTS_GhannelNO S_AntivalentOut TRUE NOTS_EhannelNC QR S_ChannelNO Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 11 4 Safety Function Blocks i Timing Charts PY Start Normal operation Inputs Activate p S_ChannelNC S ChannelNO Discrepancy Timer Outputs Ready E S ActivalentOut m mE Error DiagCode 0000 8001 8004 8000 8000 8005 8001 8001 8014 8000 8000 8005 8001 8001 MA Discrepancy time elapsing Normal operation Inputs Activate S ChannelNC S ChannelNO Discrepancy Timer Star mE Discrepancy H i Sta A E e a Ready S_AntivalentOut Error DiagCode 8001 8004 8004 C001 C001 C001 C001 C001 C001 8001 8001 8000 8005 8001 4 12 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected The FB monitors the discrepancy time between S ChannelNC and S ChannelNO Operation for Errors If an error is detected S AntivalentOut changes to FALSE and Error changes to TRUE Diag Code shows the error state f an error occurs
118. Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m a 2 m o In OK OK Out OK OK Function This function converts WORD data n to DINT data Out Example for the Range of WORD Data WORD 16 0000 to WORD 16 FFFF The value of Out is DINT 0 to DINT 65535 Additional Information To convert DINT data to WORD data refer to DINT TO WORD Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 20 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions DWORD_TO_DINT This function converts a DWORD variable to a DINT variable Instruction FB FUN Graphic expression DWORD TO DINT Cae MORD DWORD DWORD TO DINT Variables Default DWORD 16 00000000 Name WO Description Validrange Data to con Input Data to con DWORD 16 00000000 vert vert to FFFFFFFF Out Conversion Output Conversion DINT 2147483648 to DINTZO result result 2147483647 If y
119. _AutoReset Activate i S EStopln Outputsi Ready i S_EStopOut DiagCodei 0000 S StartReset FALSE and S AutoReset TRUE Start normal operation safety request and restart dojsAoueBueur4 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 27 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected This FB detects an undetected change to TRUE in the Reset input as an error e Operation for Errors S EStopOut is set to FALSE If there is an undetected change to TRUE in the Reset input the DiagCode output gives the relevant error code and the Error output is set to TRUE To reset the error you must set Reset to FALSE o FB specific Error Codes DiagCode hexadecimal C001 Status name Reset Error 1 Status description and output results When the Wait for Reset 1 state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_EStopOut FALSE Error TRUE C002 Reset Error 2 When the Wait for Reset 2 state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_EStopOut FALSE Error TRUE e FB specific State Codes No Error DiagCode hexadecimal 0000 Status name Idle Status description and output results The FB is disabled default Ready FALSE S_EStopOut FALSE Error FALSE 8001 Init The FB detected an activ
120. a safety data type variable or a standard data type variable for the input terminal If the input value is not INT 0 to INT 32767 a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 43 suononijsu uois19AUO d L eyeq 3INLL OL LNI 2 Standard Functions TIME TO BOOL This function converts a TIME variable to a BOOL variable Instruction ECCE Graphic expression TIME TO BOOL EL TIME to Variables Name WO Description Validrange Defauit Data to con Input Duration T Oms to vert T 49d17h2m47s295ms Out Conversion Output Conversion TRUE or FALSE FALSE result result If you omit an input or output parameter a building error will occur T Oms Boolean Bit strings Integers Durations Ww o wo g n 5 n o 0 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m py w E a g z ie J 2 5 O 3 z z S l o In OK OK Out OK OK Function This function converts TIME data n to BOOL data Out If the value of n is O ms T 0ms the value of Out is FALSE If the value of n is 1 ms T 1ms to 49 days 17 h 2 min 47 s 295 ms T 49d17h2m47s295ms i e not T 0ms the value of Out is TRUE Additional Information To convert BOOL data to TIME data refer to BOOL TO TIME Precautions for Correct Use The input condit
121. addition result Out will be DINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set safety data type variables for all of the input terminals If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononJajsu yew aav NX series Safety Control Unit Instructions Reference Manual Z931 2 57 2 Standard Functions SUB This function subtracts integers or durations Instruction Name FB FUN Graphic expression SUB Subtraction SUB Variables Name 1 10 Description Valid range Default In1 Minuend Input Minuend Depends on data type In2 Subtrahend Input Subtrahend Depends on data type Out Output value Output Output value Depends on data type If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations w W o n g z o o o J 2 O gt lt gt 3 gt z gt gt z O T T E T o T T T m T r m m m 9 m m m m m D Uu 2 S g z 9 6 5 o z 3 z i S i o In1 OK OK OK O
122. ady TRUE Error TRUE S AnyModeSel FALSE All S_ModeXSel FALSE C004 Reset Error 2 When the Error Open circuit state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE Error TRUE S AnyModeSel FALSE All S_ModeXSel FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE Error FALSE S AnyModeSel FALSE All S ModeXSel FALSE 8005 ModeChanged The state after the FB is activated after the S ModeX inputs changed but the mode is not locked or after an error state was reset Ready TRUE Error FALSE S AnyModeSel FALSE All S_ModeXSel FALSE 8000 ModeSelected A valid mode is selected but not yet locked Ready TRUE Error FALSE S_AnyModeSel TRUE All S ModeXSel Selected X is TRUE and others are FALSE 8004 ModeLocked A valid mode is selected and locked Ready TRUE Error FALSE S_AnyModeSel TRUE All S ModeXSel Selected X is TRUE and others are FALSE Jopajagepow 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 69 4 Safety Function Blocks SF_MutingPar Muting is used to intentionally disable a safety function This safety FB performs parallel muting with four muting sensors Ins
123. agram 4 Safety Function Blocks NOT Activate Q Activate Time parameters out of range NOT Reset Parameter Error C005 Reset AND NOT R_TRIG at Reset Time parameters AND NOT S_StartReset within range AND R_TRIG at Reset R_TRIG at Reset R_TRIG at Reset OR S StartReset Mating sequence condition 1 mm M ting condition 11 condition 3 Muting Forward Start 1 2 Muting condition 5 Muting condition 13 NOT Reset S AOPD In Error Muting lamp C003 Nor S MutingLamp S AOPD In not in st ates 8012 802 Nor 8112 8121 Muting Backward Start 1 2 MS_11 gt MutingSwitch11 MS_12 gt MutingSwitch12 MS_21 gt MutingSwitch21 MS_22 gt MutingSwitch22 Ready FALSE Ready TRUE Reset Error 2 C002 Reset AND NOT R_TRIG at Reset NOT MS_11 OR MS 12 ORMS 21 ORMS 22 NOT MS_11 OR MS 12ORMS 21 ORMS 22 Error Muting sequence CYx4 Jeq6unw 4S S_AOPD_Out FALSE S_AOPD_Out TRUE Muting sequence Timer expired 8011 8311 Muting condition 2 my 8014 8314 5 Muting Muting condition 3s Forward Active 1 8012 6 Muting ondition 24 Muting condition 4 8122 8422 Muting Backward Muting condition 12 condition 44 condition 45 Muting Backward Active 2 8112 Muting Forward Active 2 8021 Muting Backward Active 1 8121 condition 14 Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE However
124. ange TRUE or FALSE BOOL SAFEBOOL BOOL TIME BOOL SAFEBOOL SAFEBOOL BOOL Default FALSE Graphic expression SF TestableSafetySensor Activate BOOL S OSSD In SAFEBOOL StartTest SAFEBOOL TestTime TestPossible BOOL NoExternalTest TestExecuted BOOL S StartReset BOOL S AutoReset WORD Reset Josues Ajejese qeise 4S Description Refer to Safety FB Common Input Variables on page 4 2 S OSSD In SAFEBOOL TRUE or FALSE FALSE A variable It is the status of the sensor output Example Light curtain FALSE The safety sensor is in test status or there is a request for a safety related response TRUE The sensor is in normal operating condition StartTest BOOL TRUE or FALSE FALSE A variable It is the sensor test start input S TestOut is set and the internal time monitor in the FB is started FALSE There is no test request TRUE There is a test request TestTime TIME 0 to 150 ms T 10ms A constant It inputs the test monitoring time for the safety sensor NoExternalTest BOOL TRUE or FALSE FALSE A constant It indicates if a manual external test is sup ported for the sensor FALSE A manual external test is supported If an error occurs in the automatic sensor test an external manual sensor test is required An automatic test will be possible again only after a manual sensor test sequence is com pleted TRUE A manual external test is not supported
125. anty Omron s exclusive warranty is that the Products will be free from defects in materials and workman ship for a period of twelve months from the date of sale by Omron or such other period expressed in writing by Omron Omron disclaims all other warranties express or implied Limitations OMRON MAKES NO WARRANTY OR REPRESENTATION EXPRESS OR IMPLIED ABOUT NON INFRINGEMENT MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE PRODUCTS BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE Omron further disclaims all warranties and responsibility of any type for claims or expenses based on infringement by the Products or otherwise of any intellectual property right Buyer Remedy Omron s sole obligation hereunder shall be at Omron s election to i replace in the form originally shipped with Buyer responsible for labor charges for removal or replacement thereof the non com plying Product ii repair the non complying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be responsible for warranty repair indemnity or any other claims or expenses regarding the Products unless Omron s analysis confirms that the Products were properly handled stored installed and maintained and not subject to contamination abuse misuse or inappropriate modification Return of any Prod
126. art numbers when published ratings or features are changed or when significant construction changes are made However some specifications of the Product may be changed without any notice When in doubt special part numbers may be assigned to fix or establish key specifications for your application Please consult with your Omron s representative at any time to confirm actual specifications of purchased Product i Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate how ever no responsibility is assumed for clerical typographical or proofreading errors or omissions NX series Safety Control Unit Instructions Reference Manual Z931 11 Terms and Conditions Agreement 12 NX series Safety Control Unit Instructions Reference Manual Z931 Safety Precautions Refer to the following manual for safety precautions e NX series Safety Control Unit User s Manual Cat No 2930 NX series Safety Control Unit Instructions Reference Manual Z931 Safety Precautions 13 Precautions for Safe Use Precautions for Safe Use Refer to the following manual for precautions for the safe use of the Safety Control Unit e NX series Safety Control Unit User s Manual Cat No 2930 14 NX series Safety Control Unit Instructions Reference Manual Z931 Precautions for Correct Use Precautions for Correct Use Refer to the following manual for precautions for the correct use of t
127. as enabled and then disabled again After the safety output was disabled S Button and S Button2 did not both change to FALSE In this state S Button is TRUE and S Button2 is TRUE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE 8019 Locked On The button operation was not correct The FB is waiting for both buttons to be released Ready TRUE Error FALSE S TwoHandOut FALSE jedAjj onuonpuedHoM 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 125 4 Safety Function Blocks SF_TwoHandControlTypelll This safety FB provides a type III two hand control function as defined in ISO 13851 EN 574 Instruction SF_TwoHandContr olTypelll Variables Name trol Type III Two Hand Con FB FUN FB BOOL SAFEBOOL SAFEBOOL Graphic expression SF TwoHandControlTypelll Activate BOOL S Button1 SAFEBOOL S Button2 BOOL WORD i Input Variables Variable Activate Data type BOOL Valid range TRUE or FALSE Default FALSE Description Refer to Safety FB Common Input Variables on page 4 2 S Button1 SAFEBOOL TRUE or FALSE FALSE A variable It is the button 1 input category 3 or 4 for two antivalent contacts FALSE Button 1 is OFF TRUE Button 1 is ON S Button2 SAFEBOOL TRUE or FALSE FALSE A variable It is the button 2 input category 3 or 4 for two anti
128. as entered an undetected change to TRUE in the Reset input was detected Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results C002 Reset Error 2 When the Wait for Reset state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE C003 Error Muting lamp An error was detected in the muting lamp Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE CYx4 Error Muting sequence A muting sequence error was detected in state 8000 8011 8311 8012 8021 8014 8314 8122 8422 8121 8112 8114 or 8414 Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE Y Sequence state forward direction 6 states backward direc tion 6 states COx4 Error occurred in state 8000 C1x4 Error occurred in forward direction in state 8011 Jeq6uynw 4S C2x4 Error occurred in forward direction in state 8311 C3x4 Error occurred in forward direction in state 8012 C4x4 Error occurred in forward direction in state 8014 C5x4 Error occurred in forward direction in state 8314 C6x4 Error occurred in forward direction in state 8021 C7x4 Error occurred in backward direction in state 8122 C8x4 Error occurred in backward
129. as the notations and sizes of the data types are the same You cannot compare data with data types that have different notations or sizes such as WORD and INT You can compare integer data such as INT data with SAFEINT data and DINT data with SAFEDINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you seta safety data type variable for the output terminal set a safety data type variable for the two input terminals as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 67 suononJgjsu uosueduio y AN 2 Standard Functions LT LE GT and GE These instructions compare the sizes of two values LT Performs a less than comparison between two values LE Performs a less than or equal comparison between two values GT Performs a greater than comparison between two values GE Performs a greater than or equal comparison between two values Instruction Name FB FUN Graphic expression LT Less Than FUN LT LE Less Than Or FUN LE GT Greater Than FUN i GE Greater Than Or FUN GE Variables Default Name vo Description Valid range In1 or In2 Comparison Input Value to com Depends on data type
130. ask period Additional Information The SF_R_TRIG instruction assigns TRUE to output signal Q for only one task period when the power supply is turned ON RUN NX series Safety Control Unit Instructions Reference Manual Z931 3 11 3 Safety Standard Function Blocks SF RS TE This FB retains the value of a SAFEBOOL variable It gives priority to the Reset input if both the Set input and Reset input are TRUE Instruction Name FB FUN Graphic expression SF_RS Reset Priority Keep FB Variables i Input Variables Variable ELLA Data type Valid range Default Description SET SAFEBOOL TRUE or FALSE FALSE Set input RESET1 Reset BOOL TRUE or FALSE FALSE Reset input Given priority Jj Output Variables Variable Name Datatype Valid range Default Description Q1 SAFEBOOL TRUE or FALSE FALSE Keep output Function This instruction forms a self holding output that gives priority to resetting The following table shows the relationship between the inputs and outputs Value of SET Value of RESET1 Value of Q1 TRUE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE Not changed The following figure shows a programming example and timing chart Set A TRUE SF RS instance FALSE _ SF_RS TRUE Reset1 B pu e L RESET1 TRUE Q1 abc FALSE 3 12 NX series Safety Control Unit Instructions Reference Manual Z931 SF_SR This FB retains the value of a SAFEBOOL variabl
131. at supply those signals It interprets them as illegal muting sequences Unintentional muting must not be allowed under these conditions Give attention to this during risk assess ment Function Muting is used to intentionally disable a safety function Muting is used for example to pass a work piece through a hazardous area without stopping the machine Muting is activated by muting sen sors Two or four muting sensors are used To correctly incorporate the safety function into a manufacturing process you must ensure that people will not enter the hazardous area while the light curtain is being muted Proximity sensors photoelectric barriers limit switches and other devices that do not have failsafe mechanisms are used for muting sensors Muting operation must be indi cated by indicator lights NX series Safety Control Unit Instructions Reference Manual Z931 There are two types of muting parallel and sequential This FB performs sequential muting with four muting sensors Passing into a hazardous area in the forward direction is described below Refer to SF MutingSeq Instruction Application Example for Forward Entry with Four Sensors on page 4 92 The FB can be used for either forward or backward passage To prevent manual operation muting must also be enabled by process control with the MutingEnable signal to perform muting If the MutingEnable signal is inactive it must be set to TRUE 4 Safety Function Blocks The inpu
132. ate signal and the FB is active See if the S StartReset input is required Ready TRUE S_EStopOut FALSE Error FALSE 8002 Wait for S_EStopin 1 The FB is waiting for S_EStop n to change to TRUE Make sure that Reset is FALSE Ready TRUE S_EStopOut FALSE Error FALSE 8003 Wait for Reset 1 S EStopln is TRUE The FB is waiting for Reset to change to TRUE Ready TRUE S_EStopOut FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 DiagCode hexadecimal 8004 Status name Wait for S EStopln 2 4 Safety Function Blocks Status description and output results A safety request was detected Make sure that Reset is FALSE The FB is waiting for S EStopln to change to TRUE Ready TRUE S_EStopOut FALSE Error FALSE 8005 Wait for Reset 2 S_EStopin is TRUE Check S_AutoReset Or the FB is waiting for Reset to change to TRUE Ready TRUE S_EStopOut FALSE Error FALSE 8000 Safety Output Enabled S_EStopin is TRUE and S EStopOut is TRUE function mode Ready TRUE S_EStopOut TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 29 dojs cueBlawy 4S 4 Safety Function Blocks SF_EnableSwitch This safety FB supports stopping a safety protection function that uses an enable switch Instruction SF_EnableSwitch Variables Name Enable Switch FB FUN FB
133. ations of use which apply to the Product This information by itself is not sufficient for a com plete determination of the suitability of the Product in combination with the end product machine sys tem or other application or use Buyer shall be solely responsible for determining appropriateness of the particular Product with respect to Buyer s application product or system Buyer shall take applica tion responsibility in all cases NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCT S IS PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM i Programmable Products Omron Companies shall not be responsible for the user s programming of a programmable Product or any consequence thereof Disclaimers i Performance Data Data presented in Omron Company websites catalogs and other materials is provided as a guide for the user in determining suitability and does not constitute a warranty It may represent the result of Omron s test conditions and the user must correlate it to actual application requirements Actual perfor mance is subject to the Omron s Warranty and Limitations of Liability ji Change in Specifications Product specifications and accessories may be changed at any time based on improvements and other reasons It is our practice to change p
134. atus description and output results The FB is disabled default Ready FALSE S ESPE Out FALSE Error FALSE 8001 Init The FB is active The FB is already started See if S StartReset is required Ready TRUE S_ESPE_Out FALSE Error FALSE 8002 Wait for S_ESPE_In 1 The FB is active Make sure that Reset is FALSE The FB is wait ing for S ESPE Into change to TRUE Ready TRUE S_ESPE_Out FALSE Error FALSE 8003 Wait for Reset 1 The FB is active S ESPE_Inis TRUE The FB is waiting for Reset to change to TRUE Ready TRUE S_ESPE_Out FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 47 4 Safety Function Blocks DiagCode hexadecimal 8004 Status name Wait for S_ESPE_In 2 Status description and output results The FB is active A safety request was detected Make sure that Reset is FALSE The FB is waiting for S ESPE n to change to TRUE Ready TRUE S ESPE Out FALSE Error FALSE 8005 Wait for Reset 2 The FB is active 5 ESPE In is TRUE Check S AutoReset Or the FB is waiting for Reset to change to TRUE Ready TRUE S_ESPE_Out FALSE Error FALSE 8000 Safety Output Enabled The FB is active S ESPE Inis TRUE and S ESPE Outis TRUE function mode Ready TRUE S ESPE Out TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 SF_GuardLocking 4 Safety Function
135. ble or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 15 suononijsu uois19AUO d L eyeq QHOM OL 1008 2 Standard Functions BYTE_TO_INT This function converts a BYTE variable to an INT variable Instruction FB FUN Graphic expression BYTE_TO_INT Tare ES BYTE to BYTE TO INT Variables Default Valid range In Data to con Input Data to con BYTE 16 00 to FF BYTE 16 00 vert vert Out Conversion Output Conversion INT 0 to 255 INTZO result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 0 o g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m T r m m m m m m m m w i 2 3 g 9 z 9 z 5 o 3 z z o m 3 9 d m o In OK OK Out OK OK Function This function converts BYTE data n to INT data Out Additional Information To convert INT data to BYTE data refer to INT TO BYTE Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set eit
136. ccecececeeeee cece cece eee eee ecaeee see eecaaeeseeeeceaeeeeseeenaeeeeeeseeeeeeees 17 Conformance to KC Stajda ASh a a a a a a a aia aaa eaa Sa aaaea aa aea E 18 Software Licenses and Copyrights iinis ayaan e e e a errem a nennen nennen 18 UIE VERSIONS E TTE EEA EAT 19 Unit Versions uno dic 19 Unit Versions and Sysmac Studio Versions ooocoocccccnnnococccccnnnnonncnnnnnnnnnncnnnnnnnnncnnnnnnnnn nn nr nennen nnne narran 21 Unit Version Notation AEE EE E E T A EE 21 Related AAA O aaa e FEE Ea 22 aeaee ht e eee ER re 23 Revision FIStO Vii as 24 Sections in this Manuali aui euo A cC duco ce aS DU VA Y xx SETTE DES UE REM SEE 25 Section 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions 1 1 Types of Instructions eene ee llo REP en RE 1 2 1 2 Interpreting Instruction Descriptions eeeeeeeeeeseeeeeseeeseeeeeee enne nennen nnne nnn nnns 1 3 T2 IU EE 1 3 1 2 2 Safety Data Types and Standard Data Types oooooocccccncccocccocononcnocononanoncnnccnannnncnnnnnnn cnn nnnnnnnnnnn 1 4 1 2 3 Valid Ranges and Default Values of Variables sse eene 1 4 1 2 4 AN SI 1 5 2 NX series Safety Control Unit Instructions Reference Manual Z931 CONTENTS Section 2 Standard Functions Table of Standard Functions 2 ee dc eed m te diee ideale etc 2 2 Execution Control Instructions oooccorococeoo een 2 5 JUMP and EABEE 2 leni teret teta mtt 2 6 RETURN DE 2
137. curs the S AOPD Out and S MutingActive outputs are set to FALSE The DiagCode output gives the relevant error code and the Error output is set to TRUE Operation is not restarted until the error is reset and the operator acknowledges the safe state with Reset FB specific Error Codes DiagCode hexadecimal C001 Status name Reset Error 1 Status description and output results When the Init state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE C002 Reset Error 2 When the Wait for Reset state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE C003 Error Muting lamp An error was detected in the muting lamp Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results CYx4 Error Muting sequence A muting sequence error was detected in state 8000 8011 8012 8112 or 8122 Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE Y Sequence state forward direction 2 states backward direc tion 2 states COx4 Error occurred in state 8000 C1x4 Error occurred in forward direction in state 8011 C2x4 Er
138. d time reaches the set time Use the SF TOF instruction for a timer that starts when N changes to FALSE and then changes the timer output to FALSE when the elapsed time reaches the set time NX series Safety Control Unit Instructions Reference Manual Z931 3 19 3 Safety Standard Function Blocks NX series Safety Control Unit Instructions Reference Manual Z931 Safety Function Blocks zu This section gives the specifications of the safety function blocks that you can use for NX series Safety Control Units General Rules for Safety Function Blocks Lese 4 2 Safety Function Block Instructions leeren 4 8 SE Antivalent LI E ACE A ate ey 4 9 SE EDM eb eee ra eaaa do guinis ertet QA P Ete Date oe 4 15 SE EmergericyStop ecce E EY DEREN ED EE EET gd 4 23 SF_EnableSwitch 2 essa nisu eer br Rr eie dr aie See n 4 30 SE Equivalent i a daa dar rap 4 36 SE JESPE vicio a Eu eee la ett lea 4 42 SE Guardbockirig 2 pere Pata a rai Rer a 4 49 SF GuardMonitoring 00 0c ses 4 55 SFE ModeSelectotr s us helm p ROGER brit s e 4 61 SE M ltlngP ar mc e det xe dte ex De Ets 4 70 SF MutingPar 2Sensor ooooccccocc lees 4 81 SE M ltingSeq xix ete at dd 4 90 SE QutControl erario e Tre P ER 4 99 SE SafetyRequest ou sdu rad y ret gii sg PAPA Ponds neta rens 4 105 SF TestableSafetySensor 00 0 c cece tenes 4 111 SF_TwoHandControlTypell 0020 000 e eee eee 4
139. e 3 Safety Standard Function Blocks It gives priority to the Set input if both the Set input and Reset input are TRUE Instruction Name FB FUN Graphic expression SF_SR Set Priority Keep FB Variables 3 2 i Input Variables M po Variable Name Datatype Valid range Default Description SET1 Set SAFEBOOL TRUE or FALSE FALSE Set input Given priority RESET Reset BOOL TRUE or FALSE FALSE Reset input I Output Variables Variable Function Name Datatype Validrange Default Keep SAFEBOOL TRUE or FALSE FALSE Keep output Description This instruction forms a self holding output that gives priority to setting The following table shows the relationship between the inputs and outputs Value of SET1 Value of RESET Value of Q1 TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE Not changed The following figure shows a programming example and timing chart SF SR instance SF SR RESET NX series Safety Control Unit Instructions Reference Manual Z931 Set1 A Reset B Q1 abc TRUE FALSE DD E TRUE FALSE EE TRUE FALSE mE 3 Safety Standard Function Blocks SF TOF This FB outputs FALSE when the set time elapses after the timer starts Instruction Name FB FUN Graphic expression SF TOF Off Delay Timer FB SF TOF IN Q PT ET Variables i Input Variables C Neme Datatype Vaidrange Default Timer input TRUE or FA
140. e 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_EStopOut SAFEBOOL TRUE or FALSE FALSE The safety function enable signal FALSE Disables the safety output The safety function is operating Example An emergency stop button was pressed there was a reset request or a valid internal error occurred TRUE Enables the safety output The safety function is not operating Example An emergency stop button was not pressed or no valid internal error occurred Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on 1620000 Refer to Safety FB Common Output Variables on page 4 4 state code NX series Safety Control Unit Instructions Reference Manual Z931 dojs cuebBlawy 4S 4 Safety Function Blocks H Precautions for Correct Use You must satisfy the following requirements which are defined in ISO 13850 EN 418 After activation of an actuator an emergency stop device must operate to avoid or reduce any hazard by the best possible means The emergency stop command must disable all other commands Areset operation for any control device must be possible as the result of a manual operation on the control device itself The mach
141. e input terminal If the input value is not WORD 0 or WORD a cast error will occur and the program will stop 2 50 NX series Safety Control Unit Instructions Reference Manual Z931 Boolean Operation Instructions Type Instruction Name Description Page Boolean operations AND Logical AND Performs a logical AND on P 2 52 multiple Boolean variables OR Logical OR Performs a logical OR on P 2 52 multiple Boolean variables XOR Exclusive Performs an exclusive logi P 2 52 logical OR cal OR on multiple Boolean variables NOT Bit Reversal Reverses the value of a P 2 54 Boolean variable NX series Safety Control Unit Instructions Reference Manual Z931 2 51 2 Standard Functions AND OR and XOR These instructions perform Boolean operations AND Logical AND OR Logical OR XOR Exclusive logical OR Instruction Name FB FUN Graphic expression AND Logical AND FUN AND OR Logical OR FUN XOR Exclusive logical FUN XOR OR Variables Default Nam Wo Description Valid range In1 to InN Data to pro Input Data to pro TRUE or FALSE FALSE cess cess Out Processing Output Processing TRUE or FALSE result result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations w 7 W
142. ectro Sensitive FB SF ESPE Protective Equip BOOL Activate 7 BOOL ment ESPE SAFEBOOL S_ESPE_In SAFEBOOL SAFEBOOL S_StartReset BOOL SAFEBOOL S_AutoReset WORD BOOL Reset Variables I Input Variables Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S ESPE In SAFEBOOL TRUE or FALSE FALSE A variable This is a safety request input FALSE There is a request for a safety function TRUE There is no request for a safety function If the ESPE is used as a stopping device the safety con trol system must detect a short shutoff 80 ms min according to IEC 61496 1 with a sensor S StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S ESPE Out SAFEBOOL TRUE or FALSE FALSE The safety function enable signal FALSE Disables the safety output There is a request for a safety related response example a reset request or an internal error TRUE Enables the safety output There is no request for a safety related response Error BOOL T
143. ecutes the selected mode change TRUE The selected mode is set when this variable changes to TRUE FALSE If AutoSetMode is TRUE a constant FALSE is set When the operator changes the mode selection switch S AnyModeSel and S ModeXSel change to FALSE The mode change is executed when S ModeXSel changes to TRUE as the result of S SetMode changing to TRUE AutoSet Mode BOOL TRUE or FALSE FALSE A constant It sets mode confirmation FALSE To change the mode the operator must confirm the change with the S SetMode input TRUE Even if the operator does not confirm the change with the S SetMode the S ModeXSel output will change automati cally when the S ModeX input changes However the opera tion is the same as for FALSE if the mode is locked with S Unlock ModeMoni torTime TIME Depends on data type T Oms A constant It is the maximum allowable time to change the selection input Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Note X in S_ModeX and S_ModeXSe indicates a number between 0 and 7 NX series Safety Control Unit Instructions Reference Manual Z931 i Output Variables Variable Ready Data type BOOL Valid range TRUE or FALSE Default FALSE 4 Safety Function Blocks Description Refer to Safety FB Common Output Variables on page 4 4 S ModeOSel SAFEBOOL TRUE or FALSE FALS
144. efer to Safety FB Common Input Variables on page 4 2 i Output Variables Variable Datatype Validrange Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_SafetyActive SAFEBOOL TRUE or FALSE FALSE The actuator operation mode FALSE Non safe state TRUE Safe mode S SafetyRequest SAFEBOOL TRUE or FALSE FALSE The operation mode request to the actuator FALSE Requests safe mode TRUE Requests an operation mode i e non safe state Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 4 105 4 Safety Function Blocks Variable Data type Valid range Description DiagCode WORD Depends on state EI Refer to Safety FB Common Output Variables on page code 4 4 Function This FB sends a request to change to safe mode to an actuator that has a safe mode and monitors the status S SafetyRequest is used to send a request to change to safe mode to the actuator according to the mode given by S OpMode The actuator returns the results of attempting to change to safe mode to S Acknowledge The FB outputs S SafetyActive if the actuator changes to safe mode within the monitoring time MonitoringTime from when the safe mode request was made This FB is used as an interface between the safety related system and a
145. elapses The invalid state restarts with each change to FALSE of an S_ModeX switched mode input and the state changes to ModeChanged 8005 after the FB is activated If more than one mode input is selected at the same time an error is detected immediately If Reset is already TRUE when error state C001 or C002 is entered the FB detects the unde tected change to TRUE as an error Operation for Errors When an error occurs the S ModeXSel and S_AnyModeSel outputs change to their safe states FALSE The DiagCode output gives the relevant error code and the Error output changes to TRUE Errors are recognized when the Reset input changes to TRUE and the FB changes from an error state to the ModeChanged state eo FB specific Error Codes DiagCode hexadecimal C001 Status name Error Short circuit Status description and output results The FB detected that more than one S_ModeX input is TRUE For example the cable may be short circuited Ready TRUE Error TRUE S AnyModeSel FALSE All S ModeXSel FALSE C002 Error Open circuit The FB detected that all 5 ModeX inputs are FALSE The time after an S ModeX input changed exceeded ModeMonitorTime For exam ple the cable may be broken Ready TRUE Error TRUE S AnyModeSel FALSE All S ModeXSel FALSE C003 Reset Error 1 When the Error Short circuit state was entered an undetected change to TRUE in the Reset input was detected Re
146. en S GuardSwitch1 and S_GuardSwitch2 S StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S GuardMonitori SAFEBOOL TRUE or FALSE FALSE Gives the guard status ng FALSE Opens the guard TRUE Closes the guard Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1640000 Refer to Safety FB Common Output Variables on page code 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function This FB requires two inputs Discrepancy Time input and Reset input that indicate the guard position of a safety guard with two switches as defined in ISO 14119 EN 1088 You can bridge the S_GuardSwitch1 and S_GuardSwitch2 inputs when there is only one safety guard switch The moni toring time is the maximum time that is required for both switches to respond when the safety guard is closed The Reset S_StartReset and S AutoReset inputs determine how the FB is reset after the safety guard is opened The S_GuardSwitch1 and S_GuardSwitch2 inputs must
147. erally arranged diago L1 i l nally In general this arrangement of reflec gt tion light barriers as muting sensors requires L1 Cc only two light barriers and only Meat Receiver S MutingSwitch11 MS_11 and S_MutingSwitch12 MS_12 are allocated JS Sunny Josuegz Jed NX series Safety Control Unit Instructions Reference Manual Z931 4 83 4 Safety Function Blocks State Transition Diagram Idle NOT Activate 0000 0 Q Activate Time parameters out of range NOT Reset Reset AND NOT R_TRIG at Reset AND NOT S_StartReset Parameter Error C005 3 Time parameters within range AND R_TRIG at Reset NOT Reset R_TRIG at Reset S AOPD In OR S StartReset R TRIG at Reset Safety NOT Demand 9 S AOPD In AOPD 1 NOT 3002 2 s OPD_In NOT S_MutingLamp Error Muting lamp C003 S_MutifgLamp NOTI N T S_Mutingllamp S_AOPB _In not in state Wrong M ting Sequence Mu 7 condition 1 condition 2 Muting condition 5 Muting condition 6 condition 4 Muting condition 3 Muting Active 8012 S_Mutinglhmp MS_11 gt MutingSwitch11 MS_12 gt MutingSwitch12 Ready FALSE Ready TRUE Reset Error 2 C002 Reset AND NOT R TRIG at Reset NOT MS 11 OR MS 12 NOT MS 11 OR 1 MS 12 Error Muting sequence OPD Out TRUE E Out FALSE Wro g Muting sequence Timerjexpired Transitions to the Idle state from any other state
148. erformed TRUE An automatic sensor test can be performed TestExecuted BOOL TRUE or FALSE FALSE When the signal changes to TRUE the automatic sensor test was executed normally FALSE An automatic sensor test was not performed An automatic sensor test is active The automatic sensor test failed TRUE The sensor test was executed normally Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode 4 112 WORD Depends on state code 16 0000 Refer to Safety FB Common Output Variables on page 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function You can use this FB to execute a test for a type 2 ESPE sensor that has an external test function The test simulates the operation of the sensing device and detects potentially hazardous problems e g loss of sensing unit detection ability and response times that exceed specified values During the test the FB holds the safety output S OSSD Out so the test can be performed without stopping the safety output to the actuator The FB simulates an entry into the hazardous area of a safety sensor that has an external test func tion e g type 2 ESPE and monitors the operation and the maximum response time Itis assumed that an external safety related control system e g machine starts a periodic test An ESPE must
149. erstand the programming language specifications in international standard IEC 61131 3 or Japanese standard JIS B 3503 Applicable Products This manual covers the following products NX series Safety Control Units NX SLOOOO0 NX series Safety Control Unit Instructions Reference Manual Z931 1 CONTENTS CONTENTS INTOAUCUON ooo nas c M 1 Intended Audierice 5 coi be Send tL oA n e pet ied don ques lon shoes ad anda Ae 1 Applicable Products 2259 851 5 E A AA oe 1 Relevant Manuals ai 7 Man al Str ct re A A paste ea oe 8 Page Structural dia 8 Special ONO A ati 9 Terms and Conditions Agreement cccceeeeccceeeeeeeeeeeeeeeeeeeeeeneeeeeeeneeeeeeeeeeeeeeeeees 10 Warranty Limitations of Liability sss enne enne n nere nni t nnn nnne nennen sns 10 Application Considerations cccccccsscccccceseececeececeseeeeeeeeeeeeeeaeeeeseeeeeeeeeeeeeeseses cess seseeesssesaeaeaseeesseseeeeeeeaea 11 DisclalMerS ist A a Shae ELI LEE 11 Safety PECAR 13 Precautions for Sate Us amp ci ene ere cen Lu cup rSn pesto ck pe ER erbe Duane a VERE NEAR iaai 14 Precautions for Correct Use 2 0 iioii inca ue EXPE MEEEnEERES 15 Regulations and Standards 2 oerte oer rta rte nete ee 16 Conformance to EC Directives ense ici a in 16 Conformance to EN ISO 13849 1 and EN 62061 eere enne enne nnn enn 17 Conformance to UL and CSA StandardS ccccc
150. es Safety Control Unit Instructions Reference Manual Z931 4 39 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected The discrepancy time between S_ChannelA and S_ChannelB is monitored when either of them changes to TRUE or FALSE e Operation for Errors If an error is detected S_EquivalentOut changes to FALSE and Error changes to TRUE Diag Code shows the error state f an error occurs in an input make the inputs for both channels inactive make S_ChannelA and S_ChannelA FALSE to reset the FB eo FB specific Error Codes DiagCode hexadecimal Status name Status description and output results C001 Error 1 S ChannelB did not change to TRUE within MonitoringTime in the Wait for Channel B state 8004 Ready TRUE S EquivalentOut FALSE Error TRUE C002 Error 2 S ChannelA did not change to TRUE within MonitoringTime in the Wait for Channel A state 8014 Ready TRUE S EquivalentOut FALSE Error TRUE C003 Error 3 The input did not change within the monitoring time while changing from the From Active Wait 8005 to the Init 8001 state S ChannelA or S ChannelB did not change to FALSE within the monitoring time after the other input changed to FALSE Ready TRUE S EquivalentOut FALSE Error TRUE FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE S Eq
151. f two selections Instruction Name FB FUN Graphic expression SEL Bit Selection FUN SEL G INO IN1 Variables Name 1 0 Description Valid range Default G Gate Input FALSE Depends on data type FALSE Selects nO TRUE Selects n1 InO or In1 Selections Selections Out Selection Output Selection Depends on data type result result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations w 0 7 mn g v gt o e o J o o gt lt S58 gt 45 gt s gt Z gt O TU TU 5 TU o TU Ru TU m Ru r m m m m m m m m w Oe sad z 9 e 5 o z i z z 2 m 3 9 m o G OK OK InO or Int OK OK OK OK OK OK OK OK OK OK OK OK OK OK Out OK OK OK OK OK OK OK OK OK OK OK OK OK OK Function This function specifies one of two selections nO and n7 Use gate G to specify which of In0 and In1 to select If G is FALSE n0 is assigned to Out If G is TRUE n7 is assigned to Out Additional Information Use the MUX instruction to select one of two or more selections NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The data types of nO In1 and Out can be different If they are different calculations
152. fic Error Codes e l DiagCode hexadecimal Status name Status description and output results 0 C002 Acknowledge Lost The acknowledge signal was lost in the Safe state Ready TRUE E o n S_SafetyActive FALSE S SafetyRequest FALSE Error TRUE C003 MonitoringTime The S_OpMode input request was not completed within Monitoring Elapsed Time Ready TRUE S_SafetyActive FALSE S SafetyRequest FALSE Error TRUE C004 Reset Error 2 When the Acknowledge Lost state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_SafetyActive FALSE S SafetyRequest FALSE Error TRUE C005 Reset Error 3 When the Monitoring Time Elapsed state was entered an unde tected change to TRUE in the Reset input was detected Ready TRUE S_SafetyActive FALSE S SafetyRequest FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 109 4 Safety Function Blocks e FB specific State Codes No Error DiagCode hexadecimal 0000 Status name Idle Status description and output results The FB is disabled default Ready FALSE S_SafetyActive FALSE S SafetyRequest FALSE Error FALSE 8000 Safe Mode The actuator is in safe mode Ready TRUE S_SafetyActive TRUE S SafetyRequest FALSE Error FALSE 8001 Init Activate was set to TRUE and then Reset was set to TRUE Ready TRUE S SafetyActive FALSE S
153. formation for this product is divided between two manuals as shown in the following table Read all of the manuals that are relevant to your system configuration and application before you use the product Most operations are performed from the Sysmac Studio Automation Software Refer to the Sysmac Studio Version 1 Operation Manual Cat No W504 for information on the Sys mac Studio NX series Safety Control Unit NX series Safety Control Unit Purpose of use User s Manual Instructions Reference Manual Learning about Safety Control Units e Mounting installing and making hard ware settings for Safety Control Units Making software settings for Safety Control Units Creating safety programs e e Verifying and debugging safety pro grams Troubleshooting Safety Control Units e Maintaining Safety Control Units e NX series Safety Control Unit Instructions Reference Manual Z931 7 Manual Structure Manual Structure Page Structure The following page structure is used in this manual Level 2 heading suoponysuy weBeig joppe1 Level 1 j s section number Level 2 Ladder Diagram Instructions Gives the number heading of the section Instruction LD and LDN Load Load NOT AND and ANDN AND AND NOT OR and ORN OR OR NOT Out and OutNot Output Output NOT Manual name N series Instructions Reference Manual W502 This page is for illustration only It may not literally appea
154. g Instruction SSS This section provides an introduction to the instructions for Safety Control Units and tells how to interpret the instruction descriptions 1 1 Types of Instructions sulleleeeseseseeelle nn 1 2 1 2 Interpreting Instruction Descriptions 1 2 1 Items 1 3 1 2 2 Safety Data Types and Standard Data Types 220005 1 4 1 2 3 Valid Ranges and Default Values of Variables 2 0005 1 4 1 24 Timer Set Valu88 oy ised pis lo oe Pa ae ee ee ee ed 1 5 NX series Safety Control Unit Instructions Reference Manual Z931 1 1 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions 1 1 Types of Instructions The following three types of instructions can be used with the Safety Control Units Type Description Standard functions These function instructions do not use safety data They include program execution control instructions data type conversion instructions Boolean operation instructions math instructions comparison instructions etc Safety standard function blocks These function block instructions use safety data They include counter instructions up down trigger instructions timer instructions etc Safety function blocks These function block instructions use safety data and are based on the safety standards defined by PLCopen They include an antivalent instruction emer gency stop instruction etc Instruction spec
155. g conditions force a transition to an error state The test time was exceeded without sensor feedback extension A test without sensor signal feedback Invalid always TRUE Reset signal during processing Plausibility check of the monitoring time setting Operation for Errors When an error occurs the S OSSD Out output is set to FALSE and the safe state is maintained When the error is removed the sensor turns ON S OSSD n TRUE When the Reset input changes to TRUE FB error status is reset and the S OSSD Out output is set to TRUE If S AutoReset is FALSE a request to make it TRUE is made when the FB is reset After 5 OSSD n changes to TRUE you can reset the FB by making the Reset input TRUE After the FB starts you can reset the FB by making the Reset input TRUE eo FB specific Error Codes DiagCode hexadecimal Status name C000 Parameter Error Status description and output results The TestTime parameter is set to an invalid value The setting range is from 0 to 150 ms Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error TRUE C001 Reset Error 1 When the FB is activated an undetected change to TRUE in the Reset input was detected Ready TRUE S_OSSD_Out FALSE S TestOut TRUE TestPossible FALSE TestExecuted FALSE Error FALSE C002 4 116 Reset Error 2 When state 8003 Wait for Reset 1 was entered an undetected change
156. g for both buttons to be released Ready TRUE Error FALSE S TwoHandOut FALSE IJ edA jjogyuoDpueHoM 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 131 4 Safety Function Blocks 4 132 NX series Safety Control Unit Instructions Reference Manual Z931 Index NX series Safety Control Unit Instructions Reference Manual Z931 l 1 Index Index A ADD iia 2 56 Addis chest aie ee accra oe 2 56 AND E ee 2 52 AntiValent etia det mt etre ree iut qct 4 9 B Bit Re versal icono cn cedens 2 54 Bit Selection 1 niece cei a ra 2 72 BOOL TO DINT acu a 2 13 BOOL TO IN Tissot 2 12 BOOL TO TIME cocine 2 14 BOOL TO WORD script pto 2 15 BYTE TO DINT 5er rette trie 2 17 BYTE TOANT sic sce eis eee leet cea lee etti conte cedent 2 16 BYTE TO TIME coincidan 2 23 BYTE TO WORD iere eene taiea 2 26 C Convert BOOL to DINT sese 2 13 Convert BOOL to INT esesseeeee 2 12 Convert BOOL to TIME seeee 2 14 Convert BOOL to WORD ee 2 15 Convert BYTE to DINT ccccsesssssseceseeeeeeeeeeeeeeeeeees 2 17 Convert BYTE to INT eeeseseeee 2 16 Convert BYTE to TIME eeseseseeennne 2 23 Convert BYTE to WORD eee 2 26 Convert DINT to BOOL 1 2 29 Convert DINT to BYTE ee 2 31 Convert DINT to D
157. gers or a dura P 2 60 tion DIV Division Divides integers or a dura P 2 62 tion NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions AD D ADD Varia In1 to InN This function adds integers or durations Name FB FUN Graphic expression u i Name wO Description Valid range Default Values to add Input Values to add Depends on data type Instruction bles Out In1 to InN OK O Output value Output Output value Depends on data type If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction go fe E o 5 o Boolean Bit strings Integers w 100 100834VS 3119 311933VS qHOM dYOMIAVS aoma quoMqaadvs INI INI33VS LNIG LNIGS4VS AWIL AWILAAVS A OK O OK O A A Out OK OK OK OK OK OK Function This function adds integers or durations and outputs the result to output value Out An overflow occurs if the sum of n1 to InN exceeds the valid range of the data type of the addition result If an overflow occurs the data types of n7 to InN the data type of the addition result and the value of the addition result will be as shown in the following table I O data types Value of addition results Integers Of the sum of n1
158. ges in the state of the safety FB This section describes how to interpret state transition diagrams 0 NOT Activate NOT Activate NOT Activate Activate Ready FALSE Ready TRUE R_TRIG at Reset On all errors On all efrors ALL states NOT Activate 0 of Operational On all rrors Mode with S Out FALSE 8xxx S Out FALSE S Out TRUE ALL states 0 of Operational Mode with S_Out TRUE 8000 The above diagram outlines the state transitions that apply to all safety FBs Transitions that have specific meanings for some FBs are not given here They are described individually for the applicable FBs This diagram is separated into three parts In the top part the FB is not operating and is in the safe state i e safety outputs are FALSE In the middle part the FB is operating and is in the safe state i e safety outputs are FALSE In the bottom part the FB is operating normally i e safety outputs are TRUE The dotted line at the top of the state transition diagram indicates transitions from not active to active The dotted line at the bottom of the diagram indicates transitions from the safe state to the normal state of the FB The priority of parallel transitions are shown with numbers The highest priority is O The circles that indicate the states give the status name and the hexadecimal value of DiagCode OR AND and XOR are used as logical operators and NOT is used as the logical negator to indicate
159. ges to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 107 4 Safety Function Blocks I Timing Charts Activate S OpMode Inputs S_Acknowledge i Reset Ready 1 Pood oY Po seias duo A c qum uo AA Outputs S SafetyRequest Error 1 1 i 1 l DiagCode 0n lo 80 E 01100 Monitoring Timer j eT LL t Monitoring Time t gt Monitoring Time 4 108 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Jj Instruction Execution Errors e Error Detected The FB detects the following errors When the actuator does not enter the safe state within the monitoring time When the acknowledge signal is not sent before the request becomes invalid Foran always TRUE Reset signal When an undetected change to TRUE in the Reset input is detected when the acknowledge sig nal is lost or the monitoring time is exceeded FB External Errors There are no external errors because error bits and error information are not provided by a normal actuator Operation for Errors When an error occurs the S_SafetyActive output is set to FALSE Acknowledgment by changing the Reset input to TRUE is required for an error After this reset the S OpMode request must be set to TRUE to enable the FB to continue functioning e FB speci
160. ges to FALSE and the safe state is maintained Error changes to TRUE and DiagCode shows the error state You must change Reset to TRUE to reset EDM error messages You can change Reset to FALSE to reset error messages for Reset After the FB is started you can change the Reset input to TRUE to reset the optional startup inhibit e FB specific Error Codes DiagCode hexa decimal C001 Status name Reset Error 1 Status description and output results When the Init state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_EDM_Out FALSE Error TRUE C011 Reset Error 21 An undetected change to TRUE was detected for EDM1 and Reset or equiva lent signals were detected during EDM Error 11 status Both Reset and EDM1 changed to TRUE at the same time Ready TRUE S EDM Out FALSE Error TRUE C021 Reset Error 22 An undetected change to TRUE was detected for EDM2 and Reset or equiva lent signals were detected during EDM Error 12 status Both Reset and EDM2 changed to TRUE at the same time Ready TRUE S_EDM_Out FALSE Error TRUE C031 Reset Error 23 An undetected change to TRUE was detected for EDM1 EDM2 and Reset or equivalent signals were detected during EDM Error 13 status Reset EDM1 and EDM2 changed to TRUE at the same time Ready TRUE S_EDM_Out FALSE Error TRUE C041 Reset Error 31 An undetected change to TRUE wa
161. gh a hazardous area without stopping the machine Muting is activated by muting sen sors Four muting sensors are used To correctly incorporate the safety function into a manufacturing process you must ensure that people will not enter the hazardous area while the light curtain is being muted Proximity sensors photoelectric barriers limit switches and other devices that do not have failsafe mechanisms are used for muting sensors Muting operation must be indicated by indicator lights There are two types of muting parallel and sequential This FB performs parallel muting with four muting sensors Passing into a hazardous area in the forward direction is described below Refer to SF_MutingPar Instruction Application Example for Forward Entry with Four Sensors on page 4 72 The FB can be used for either forward or backward passage To prevent manual operation muting must also be enabled by process control with the MutingEnable signal to perform muting The input parameters to the FB include four muting sensor signals MutingSwitch11 to MutingSwitch22 an OSSD signal from a photoelectric protection device S_AOPD_In and three time parameters DiscTime11_12 DiscTime21_22 and MaxMutingTime Activate the S_StartReset input only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit AFB error will occur if the same variable is assigned to the input and the discrepancy time is set to 0 e SF Mu
162. hat the safety pro Out tection function is stopped FALSE Disables stopping the safety protection function TRUE Enables stopping the safety protection function Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1620000 Refer to Safety FB Common Output Variables on page code 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 Function 4 Safety Function Blocks This FB supports stopping a safety protection function that uses an enable switch when a suitable operation mode is started However handle the related operation mode motion speed limit power limit or motion range limit outside of the SF_EnableSwitch instruction This FB evaluates enable switch signals for three positions IEC 60204 section 10 9 The S EnableSwitchCh1 and S_EnableSwitchCh2 input parameters are processed as shown below for the E1 to E4 input signal levels Enable Switch Positions i j Transitions 1 to 2 2 to 1 2 to 3 Contacts E1 E2 H 1 Contacts E3 E4 EX Transition iH only 3 to 1 Dod Contacts E1 E2 REESE Contacts E3 E4 EU D Point of pressure Contact open closed You must connect the signals from E1 and E2 to the S EnableSwitchCh1 parameter You must also connect the signals from E3 and E4 to the S EnableSwitchCh2 parameter The FB detects the posi tion of the enable switch with this signal sequence Howeve
163. he Safety Control Unit e NX series Safety Control Unit User s Manual Cat No 2930 NX series Safety Control Unit Instructions Reference Manual Z931 15 Regulations and Standards Regulations and Standards The NX series Safety Control Units are certified for the following standards Certification body Standards T V Rheinland EN 62061 2005 EN 61000 6 2 2005 EN 61000 6 4 2007 NFPA 79 2012 ANSI RIA 15 06 1999 ANSI B11 19 2010 EN ISO 13849 1 2008 AC 2009 EN ISO 13849 2 2012 EC 61508 parts 1 7 2010 EN 61131 2 2007 EN ISO 13850 2008 UL 1998 EN 60204 1 2006 A1 2009 AC 2010 IEC 61326 3 1 2008 UL 1 cULus Listed UL508 and ANSI ISA 12 12 01 Certification was received for applications in which OMRON FSoE devices are connected to each other The NX series Safety Control Units allow you to build a safety control system that meets the following standards Requirements for SIL 3 Safety Integrity Level 3 in IEC 61508 EN 62061 Functional Safety of Electrical Electronic Programmable Electronic Safety related Systems Requirements for PLe Performance Level e and for safety category 4 in EN ISO 13849 1 The NX series Safety Control Units are also registered for C Tick and KC compliance Conformance to EC Directives y Applicable Directives EMC Directive Machinery Directive i Concepts e EMC Directives 16 OMRON devices that comply with EC Directives a
164. her a safety data type variable or a standard data type variable for the input terminal 2 16 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions BYTE_TO_DINT This function converts a BYTE variable to a DINT variable Instruction FB FUN Graphic expression BYTE_TO_DINT Cone VIER BYTE to BYTE TO DINT Variables Default Name WO Description Validrange In Data to con Input Data to con BYTE 16 00 to FF BYTE 16 00 vert vert Out Conversion Output Conversion DINTZO to 255 DINTZO result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 3 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts BYTE data n to DINT data Out Additional Information To convert DINT data to BYTE data refer to DINT TO BYTE Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output termina
165. her the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If the input value is not TIMEZOms to TIME 255ms a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 45 suononijsu uois19AUO d L eyeq 3118 OL NIL 2 Standard Functions TIME TO DWORD This function converts a TIME variable to a DWORD variable Instruction ES Graphic expression TIME_TO_DWORD EL TIME to Variables Name WO Description Validrange Defauit Data to con Input Duration TZ ms to vert T 49d17h2m47s295ms Out Conversion Output Conversion DWORD 16 00000000 DWORD 16 00000000 result result to FFFFFFFF If you omit an input or output parameter a building error will occur T Oms Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e E m o In OK OK Out OK OK Function This function converts TIME data
166. ies Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions BOOL TO WORD This function converts a BOOL variable to a WORD variable Instruction FBIFUN Graphic expression BOOL TO WORD EN BOOL to we Variables Default Name vO Description Valid range Data to con Input Data to con TRUE or FALSE vert vert Out Conversion Output Conversion WORD 16 0000 or WORD 16 0000 result result WORD 16 0001 If you omit an input or output parameter a building error will occur FALSE Boolean Bit strings Integers Durations Ww 7 w sz 2 g z o g o J o O E E E O P m m m a m o m m m m m w i E E 9 z 9 2 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts BOOL data n to WORD data Out If the value of n is FALSE the value of Out is WORD 16 0000 If the value of n is TRUE the value of Out is WORD 16 0001 Additional Information To check for WORD data refer to WORD TO BOOL Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type varia
167. ifications are provided starting from section 2 H Precautions for Correct Use Some of the instructions have the same names as the instructions that are supported by the NJ series CPU Units Operating specifications however are different 1 2 NX series Safety Control Unit Instructions Reference Manual Z931 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions 1 2 Interpreting Instruction Descriptions The notation that is used to describe instructions is explained in this section uononasuj BuneJdjoju Z L suonduoseg 1 2 1 Items The following items are provided The order of the items is not the same for all instructions If there are items that are specific to one type of instruction they are explained in the section for each instruction type X Item Description Instruction The instruction word is given 3 o Name The name of the instruction is given FB FUN Whether the instruction is a function block FB instruction or a function FUN instruction is given Graphic expression The figure that represents the instruction in a function block diagram is given e Example for a FUN e Example for a FB Instruction Instruction Instruction word Instance specification Input variable SF CTU instance Output variable ADD name name Instance specification An instance of an instruction is indicated by XX instance above a FB instruction You must assign an instance name to
168. ignal for ProcessControl will set S_OutControl to TRUE Activate the StaticControl S StartReset and S AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit 4 100 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks I State Transition Diagram NOT Activate Activate Ready FALSE Ready TRUE R TRIG at Reset Reset AND R_TRIG at ANDROS R_TRI Process Control_ 2 gt Q Sta Init 8001 NOT Reset OMUOgINO AS 9 o o c t g a e c O E o o c w o Y E c Control Disable 8010 S Safe Control AND StaticControl AND ProcessControl NOT Process Control S_OutControl FALSE S_OutControl TRUE Output Enable Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 101 4 Safety Function Blocks i Timing Charts S_StartReset FALSE Activate S_SafeControl ProcessControl S_StartReset S_AutoReset Reset StaticControl Ready S_OutControl Error DiagCode 0000 8001 8010 8000 801018000 8002 8003 8000 8002 C0021 8003 S_StartReset TRUE Activate S_SafeControl ProcessControl S_StartReset S_AutoReset Reset StaticControl Ready S_OutControl Error DiagCode
169. ignals is FALSE or the state did not change within the monitoring time TRUE The two input signals are active and the state changed within the monitoring time Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 16 0000 Refer to Safety FB Common Output Variables on page code 4 4 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function This FB monitors the time that two equivalent SAFEBOOL inputs are not the same and converts the inputs to one SAFEBOOL output S ChannelA and S ChannelB are dependent on each other The evaluation result for both channels is output When the input for one channel changes so that the two channel inputs are no longer the same the FB starts monitoring the discrepancy time An error occurs if a change does not occur that makes them the same again within the monitoring time S EquivalentOut is TRUE if the conditions for both changes are met and FALSE if the conditions are not met f an error occurs make the inputs for both channels inactive make S ChannelA and S ChannelA FALSE to reset the FB Set DiscrepancyTime to a value that is longer than the safety task period Refer to the NX series Safety Control Unit User s Manual Cat No Z930 for application methods for DiscrepancyTime l Precautions for Correct Use This FB does not have a restart interlock Y
170. ill occur Boolean Bit strings Integers Durations Ww 7 W o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m D w a a g z o zi 2 5 O 3 z z S i 2 o In OK OK Out OK OK Function This function converts DINT data n to BOOL data Out If the value of n is DINTZO the value of Out is FALSE If the value of n is DINT 2147483648 to DINTZ 1 or DINT 1 to DINT 2147483647 i e not DINTZO the value of Out is TRUE Additional Information To convert BOOL data to DINT data refer to BOOL TO DINT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If the input value is not DINT 2147483648 to DINT 2147483647 a cast error will occur and the pro gram will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 29 suononijsu UOISISAUO d L eyeq 7008 OL LNIG 2 Standard Functions INT_TO_BOOL This function converts an INT variable to a BOOL variable Instruc
171. ine must not restart until all activated control devices are reset manually individually and intentionally Function When the S EStopln input is set to FALSE S EStopOut immediately changes to FALSE S EStopOut is reset to TRUE or waits to be reset only when the S_EStop n input is set to TRUE The conditions for waiting to be reset are determined by the defined S StartReset S AutoReset and Reset inputs If S AutoReset is TRUE the confirmation operation is performed automatically If S AutoReset is FALSE a change to TRUE in the Reset input must be made for enable confirma tion If S StartReset is TRUE the confirmation operation is performed automatically when the Safety CPU Unit first starts If S StartReset is FALSE a change to TRUE in the Reset input must be made for enable confirma tion Activate the S StartReset and S AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit You can use the SF EmergencyStop instruction to monitor a single channel or two channel emer gency stop button The SF EmergencyStop instruction automatically detects undetected changes to TRUE in the Reset input NX series Safety Control Unit Instructions Reference Manual Z931 State Transition Diagram NOT Activate Activate S EStopln AND S StartReset 4 Safety Function Blocks S StartReset AND S EStopln NOT S StartReset Reset Error 1
172. initial status of the actu ator The EDM1 and EDM2 signals changed to FALSE when output was not possible and the monitoring time ended Ready TRUE S_EDM_Out FALSE Error TRUE C070 EDM Error 31 The EDM 7 signal is not valid during the switched status of the actuator The EDM 1 signal changed to TRUE when output was possible and the monitor ing time ended Ready TRUE S_EDM_Out FALSE Error TRUE Waa 4s C080 EDM Error 32 The EDM2 signal is not valid during the switched status of the actuator The EDM2 signal changed to TRUE when output was possible and the monitor ing time ended Ready TRUE S EDM Out FALSE Error TRUE C090 EDM Error 33 The EDM1 and EDM2 signals are not valid during the switched status of the actuator The EDM1 and EDM2 signals changed to TRUE when output was possible and the monitoring time ended Ready TRUE S_EDM_Out FALSE Error TRUE C111 Init Error R_TRIG was detected in the same cycle as S_OutControl and Reset There may be a programming error Ready TRUE S_EDM_Out FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 21 4 Safety Function Blocks e FB specific Status Codes No Error DisaGode esa Status name Status description and output results decimal 0000 Idle The FB is disabled default Ready FALSE S_EDM_Out FALSE Error FALSE 8001 Init The FB was activated and sta
173. ion Name FB FUN Graphic expression WORD TO BOOL Convert WORD FUN WORD TO BOOL to BOOL 7 gt Variables Name WO Description Validrange 7 Default Data to con Input Data to con WORD 16 0000 to FFFF WORD 16 0000 vert vert Out Conversion Output Conversion TRUE or FALSE FALSE result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o wo g n 5 n o 0 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m py w E a g z ie J 2 5 O 3 z z S l o In OK OK Out OK OK Function This function converts WORD data n to BOOL data Out If the value of In is WORD 16 0000 the value of Out is FALSE If the value of n is WORD 16 0001 to WORD 16 FFFF i e not WORD 16 0000 the value of Out is TRUE Additional Information To convert BOOL data to WORD data refer to BOOL TO WORD Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for th
174. ion depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 44 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions TIME TO BYTE This function converts a TIME variable to a BYTE variable Instruction NOLO NM Graphic expression TIME TO BYTE NEM TIME to Variables Default C Name WO Description Valid range In Data to con Input Duration T 0ms to T 255ms T Oms vert Out Conversion Output Conversion BYTE 16 00 to FF BYTE 16 00 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts TIME data n to BYTE data Out Additional Information To convert BYTE data to TIME data refer to BYTE TO TIME Precautions for Correct Use The input condition depends on whet
175. ison 3 TIME or SAFETIME The values of the days hours minutes seconds and millisec o onds are compared Precautions for Correct Use You can compare n1 and n2 even if they have different data types such as a safety data type and a standard data type as long as the notations and sizes of the data types are the same You cannot compare data with data types that have different notations or sizes such as WORD and INT You can compare integer data such as INT data with SAFEINT data and DINT data with SAFEDINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the two input terminals as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 69 2 Standard Functions NX series Safety Control Unit Instructions Reference Manual Z931 Other Standard Instructions O Description Bit Selection Selects one of two selec tions MUX Multiplexer Selects one of multiple P 2 74 selections Others P 2 72 NX series Safety Control Unit Instructions Reference Manual Z931 2 71 2 Standard Functions SEL This function selects one o
176. it Instructions Reference Manual Z931 4 Safety Function Blocks I State Transition Diagram NOT Activate Ready FALSE Ready TRUE TRIG StartRes a NOT Reset INQ3 4s o 5 o Q 3 Mi N S_EDM_Out TRUE Enable 8000 Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts S StartReset FALSE Activate S_OutControl S_EDM1 S_EDM2 MonitoringTimer S_StartReset Reset Ready S_EDM_Out Error DiagCode 0000 8001 8010 8010 8000 8000 8010 8010 8000 C091 C090 8010 S StartReset TRUE Activate S_OutControl EDM1 EDM2 MonitoringTimer S_StartReset Reset Ready S_EDM_Out Error DiagCode 0000 8010 8010 8000 8000 8010 8010 8000 C090 8010 C060 8010 0000 4 18 NX series Safety Control Unit Instructions Reference Manual Z931 Jj Instruction Execution Errors e Error Detected The following conditions force a transition to an error state An invalid process always TRUE Reset signal An invalid process EDM signal Programming error that results in incorrect interconnections between S OutControl and Reset Operation for Errors 4 Safety Function Blocks f an error occurs S EDM Out chan
177. itches is reset Timer for MaxMutingTime stopped NOT MS_21 AND NOT MS_22 AND F_TRIG at MS_11 OR F_TRIG at MS_ 12 Illegal Muting Sequences State 8000 MutingEnable FALSE at start of muting sequence OR MS_11 OR MS_12 AND MS_21 OR MS_22 OR R_TRIG at MS_11 AND MS_12 AND NOT R_TRIG at MS_12 OR R_TRIG at MS_12 AND MS_11 AND NOT R_TRIG at MS_11 OR R_TRIG at MS_21 AND MS_22 AND NOT R_TRIG at MS_22 OR R_TRIG at MS_22 AND MS_21 AND NOT R_TRIG at MS_21 OR MS_11 AND NOT R_TRIG at MS_11 AND MS_12 AND NOT R_TRIG at MS_12 OR MS_21 AND NOT R_TRIG at MS_21 AND MS_22 AND NOT R_TRIG at MS_22 State 8011 NOT MutingEnable OR NOT MS_11 OR MS_21 OR MS_22 State 8311 NOT MutingEnable OR NOT MS_12 OR MS_21 OR MS_22 State 8012 NOT MS_11 OR NOT MS_12 State 8021 R_TRIG at MS_11 OR R_TRIG at MS_12 OR R_TRIG at MS_21 OR R_TRIG at MS_22 State 8014 NOT MS_11 OR NOT MS_12 OR NOT MS_21 State 8314 NOT MS_11 OR NOT MS_12 OR NOT MS_22 State 8122 NOT MutingEnable OR MS_11 OR MS_12 OR NOT MS_21 State 8422 NOT MutingEnable OR MS_11 OR MS_12 OR NOT MS_22 State 8121 NOT MS_21 OR NOT MS_22 State 8112 R_TRIG at MS_11 OR R_TRIG at MS_12 OR R_TRIG at MS_21 OR R_TRIG at MS_22 State 8114 NOT MS_21 OR NOT MS_22 OR NOT MS_11 State 8414 NOT MS_21 OR NOT MS_22 OR NOT MS_12 Jeq6unw 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 75 4 Safety Function Blocks i Timing Charts Activate SAOPDIn OES MT D
178. ition Diagram 4 Safety Function Blocks NOT Activate NOT S_SafetyActive AND Qu S_GuardMonitoring Guard Open and Unlocked 8012 1 S SafetyActive AND UnlockRequest OR NOJ Nol S_GuardMonitdring S_GuardMonitoring S_GuardMonitoring Closed but NOT a nlockRequest R_TRIG at Reset OR S_StartReset AND S_GuardMonitoring AND S_GuardLock R_TRIG at UnlockRequest AND SafetyActive Activate Ready FALSE Ready TRUE Reset AND NOT R_TRIG at Reset AND NOT S_StartReset Init NOT Reset Reset Error 2 C002 NOT S GuardLock 3 TRE Reset AND NOT OR NOT S_GuardMonitoring R TRIG at Reset amp upipo pueno 4S N J S_SafetyActive AND NOT S GuardMonitoring OR NOT S GuardLock S_GtiardMonitoring Reset AND NOT R_TRIG at Reset AND NOT S AutoReset Reset Error 3 C003 lonitoring GuardLock G OR NOT S NOT Reset NOT S GuardM S GuardLocked FALSE S GuardLocked TRUE R_TRIG at Reset OR AutoReset NOT S GuardLock OR NOT S_GuardMonitoring Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts S_GuardMonitoring S_SafetyActive S_GuardLock UnlockRequest S StartReset S AutoReset Reset Outputs Ready S GuardLocked
179. l you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 17 suononijsu uois19AUO d L eyeq lNId OL SLAG 2 Standard Functions WORD_TO_INT This function converts a WORD variable to an INT variable Instruction Name FB FUN Graphic expression WORD_TO_INT E WORD WORD TO INT Variables Name WO Description Validrange Default Data to con Input Data to con WORD 16 0000 to FFFF WORD 16 0000 vert vert Out Conversion Output Conversion INTZ 32768 to 32767 INTZO result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 n n g n 5 o o 2 J gt lt gt 3 gt sz gt 5 gt gt 3 gt o T T E T o T T E T m UT r m m m m m m m m py D a E g z ie a 2 5 O 3 z z m a 2 m o In OK OK Out OK OK Function This function converts WORD data n to INT data Out Example When Value of Out Is Positive INT 0 to INT 32767 The value of Out is INTRO to INT 32767 according to the value of In WORD 16 0000 to WORD 16 7FFF Example When Value of Out Is Negative INT 32768 to INTZ 1 If the value of n is WORD 16 8000 1000 0000 0000 0000 binary the value of Out is INT 32768 which is INT 32768 as a 2 byte expression
180. l outputs and the S AnyModeSel output are FALSE When the mode selection switch is changed and the FB is in the ModeChanged state If AutoSetMode is FALSE A new S ModeX input is acknowledged by S SetMode changing to TRUE to produce a new S ModeXSel output f AutoSetMode is TRUE A new S ModeX automatically produces a new S ModeXSel output When an S ModeX input is TRUE only transitions such as from 8005 to 8000 are valid As long as S ModeX is FALSE the FB will retain state 8005 even if a change to TRUE is detected for S SetMode The time is not monitored for a transition from the ModeChanged to the ModeSelected state i e when S SetfMode is changed to TRUE by the operator If the FB is in the ModeSelected state when a new S ModeX input high priority and an S Unlock signal low priority change to FALSE at the same time the FB will enter the ModeChanged state You can set constants with the default FALSE state for 5 ModeX inputs that are not used for mode selection to simplify program validation Set the AutoSetMode input to TRUE only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit M Precautions for Correct Use An error will occur for this function if more than one S ModeX input changes to TRUE at the same time Use a non shorting mode selection switch NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks State Transition Diagram
181. les on page 4 4 S EDM Out SAFEBOOL TRUE or FALSE FALSE Controls the actuator It monitors the result with the feed back signal S_EDMx FALSE Disables the connected actuator TRUE Enables the connected actuator Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 16 0000 Refer to Safety FB Common Output Variables on page code 4 4 Function e Introduction This FB controls a safety output and monitors actuator control This FB monitors the initial status of the actuator through feedback signals S_EDM1 and S_EDM2 before the actuator is activated by the FB After the actuator is activated by this FB the FB also monitors the actuator s switched status MonitoringTime Two single feedback signals must be used for an exact diagnosis of the connected actuators A common feedback signal from the two connected actuators must be used for a restricted yet sim ple diagnostic function of the connected actuators To achieve that you must connect the com mon signal to both the S EDM1 and S_EDM2 parameters Therefore S EDM1 and S_EDM2 will be controlled by the same signal The switching device for which the safety function is used must be selected from the category that was determined by risk assessment Activate the S_StartReset input only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit NX series Safety Control Un
182. lid range Data to con Input Data to con INTZ 32768 to 32767 vert vert Out Conversion Output Conversion DWORD 16 00000000 DWORD 16 00000000 result result to FFFFFFFFF If you omit an input or output parameter a building error will occur INTZO Boolean Bit strings Integers Durations Ww o 0 n n g n 5 o o 2 J gt lt gt 3 gt sz gt 5 gt gt 3 gt o T T E T o T T E T m UT r m m m m m m m m py D a E g z ie a 2 5 O 3 z z m e E m o In OK OK Out OK OK Function This function converts INT data n to DWORD data Out Example When Value of n Is Positive INTZO to INT 32767 The value of Out is DWORD 16 00000000 to DWORD 16 00007FFF according to the value of In INTRO to INT 32767 Example When Value of In Is Negative INT 32768 to INTZ 1 If the value of In is INT 32768 1111 1111 1111 1111 1000 0000 0000 0000 binary the value of Out is DWORD 16 FFFF8000 e If the value of n is INTR 1 1111 1111 1111 1111 1111 1111 1111 1111 binary the value of Out is DWORD 16 F FFFFFFF Additional Information There is no instruction that converts DWORD data to INT data 2 36 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occu
183. locked only when the haz ardous area is in a safe state If the guard is closed it can be locked If the guard is closed and locked the mechanical device can be started An open guard or an unlocked guard is detected as a situation that has a serious impact on safety Activate the S_StartReset and S_AutoReset inputs only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit e Operating Sequence 1 External A request is made to place the hazardous area in the safe state This is not included in this FB 2 Input Feedback is given from the relevant hazardous area that it is in the safe state Use S_SafetyActive 3 Input Operator requests unlocking the guard Use UnlockRequest 4 Output Opening the guard is enabled Use S_UnlockGuard 5 Input The guard is unlocked Use S_GuardLock Opening the guard is enabled S_GuardLocked FALSE The operator opens the guard 6 Input Monitoring the status of the guard through S_GuardMonitoring signal for closing the guard again starts 7 Input The operator provides feedback Reset to start the hazardous area again 8 Output The guard is locked S UnlockGuard 9 Input The locking of the guard is confirmed S GuardLock 10 Output The hazardous area is made operational again S_GuardLocked TRUE 11 External Operation in the hazardous area is restarted 4 50 NX series Safety Control Unit Instructions Reference Manual Z931 State Trans
184. lso conform to the related EMC standards so that they can be more easily built into other devices or the overall machine The actual products have been checked for conformity to EMC standards 1 Whether the products conform to the standards in the system used by the customer however must be checked by the customer EMC related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration wiring and other conditions of the equipment or control panel on which the OMRON devices are installed The customer must therefore perform the final check to confirm that devices and the overall machine conform to EMC standards Applicable EMC Electromagnetic Compatibility standards are as follows EMS Electromagnetic Susceptibility EN 61131 2 EMI Electromagnetic Interference EN 61131 2 Radiated emission 10 m regulations Machinery Directive The Machinery Directive demands that the safety components that are used to provide safety for the relevant machinery are used according to the required levels of safety The applicable directives are EN ISO 13849 1 2008 and EN 62061 SIL CL3 NX series Safety Control Unit Instructions Reference Manual Z931 Regulations and Standards e Conformance to EC Directives The NX series Units comply with EC Directives To ensure that the machine or device in which the NX series Units are used complies with EC Directives the following precautions must be observed
185. lue of Q changes to TRUE After the value of CV reaches 0 or less CV does not change even if CD changes to TRUE CDis ignored while Load is TRUE CV is not decremented NX series Safety Control Unit Instructions Reference Manual Z931 3 3 3 Safety Standard Function Blocks The following figure shows a programming example and timing chart for a PV of INT 5 SF_CTD_instance SF CTD CD LOAD TRUE za FALSE TRUE Load abc FALSE PV INTHS CV ghi 0 TRUE iia FALSE When Load changes to TRUE CV When CV reaches 0 Q is set to the value of PV and Q changes to TRUE changes to FALSE CV is decremented as soon as Load changes to FALSE Additional Information Use the SF_CTU instruction P 3 5 to create a counter that increments the counter value each time the counter input signal is received Use the SF_CTUD instruction P 3 7 to create a counter that is both incremented and decremented 3 4 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks SF CTU This FB increments the counter value when the counter input signal is received Instruction Name FB FUN Graphic expression SF_CTU Up counter FB Variables i Input Variables o o c Variable Name Data type Valid range Default Description CU Counter input BOOL TRUE or FALSE FALSE Counter input RESET Reset signal BOOL TRUE or FALSE FALSE TRUE Reset CV to 0 PV Preset value SAFEINT 0 to
186. lues of the data types are applied These variables are indicated by depends on data type in the valid range column of the table that describes the variables and by in the input variable default column The valid ranges and default values of the data types are given in the following tables Classification ps eee Data type Range of values Default Standard data BOOL TRUE or FALSE FALSE Boolean type Safety datatype SAFEBOOL Standard data BYTE byte 16 00 to byte 16 FF byte 16 00 type Safety datatype SAFEBYTE Standard data WORD word 16 0000 to word 16 0000 Bit strings type word 1 6 F FFF Safety data type SAFEWORD Standard data DWORD dword 16 00000000 to dword 16 00000000 type dword 16 FFFFFFFF Safety datatype SAFEDWORD Standard data INT int 32768 to int 32767 int 0 type integers Safety data type SAFEINT Standard data DINT dint 2147483648 to dint 0 type dint 2147483647 Safety data type SAFEDINT Standard data TIME t Oms to t 2147483647ms t 0s Durations type and t 0d0hOm0sOms to Safety datatype SAFETIME t 24d20h31m23s647ms NX series Safety Control Unit Instructions Reference Manual Z931 1 Introduction to Instructions for Safety Control Units and Interpreting Instruction Descriptions 1 2 4 Timer Set Values Time set values such as those for DiscrepancyTime or the OFF Delay Timer instruction operate in increments of the safety task period The timer error is
187. mgea qeuy 4S Reset S_AutoReset Ready S EnableSwitchOut Error DiagCode 0000 8004 8006 8000 8006 8004 C010 8006 8000 8007 NX series Safety Control Unit Instructions Reference Manual Z931 4 33 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected The following conditions force a transition to an error state When an undetected change to TRUE in the Reset input is detected in the Operation Error 2 or Operation Error 4 state When the switch position is not valid e Operation for Errors If an error occurs the S_EnableSwitchOut safety output changes to FALSE and the safe state is maintained As opposed to other FBs the reset error state is maintained when Reset is FALSE including when S SafetyActive is also FALSE After the error is reset the enable switch must be set to the initial position that was defined for the process before the enable switch can set the S EnableSwitchOut output to TRUE If S AutoReset is FALSE Reset must be changed from FALSE to TRUE e FB specific Error Codes DiagCode hexadecimal C001 Status name Reset Error 1 Status description and output results When the Operation Error 2 state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_EnableSwitchOut FALSE Error TRUE C002 Reset Error 2 When the Operation Error 4 state was entered an undetected change to TRUE in the Re
188. minal you can set either a safety data type variable or a standard data type variable for the input terminal 2 66 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions NE This function determines if the values of two variables are not equivalent Instruction Name FB FUN Graphic expression l i l Variables Default Name WO Description Valid range Comparison Input Values to com Depends on data type data pare Out Comparison Output Comparison Depends on data type result result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction In1 or In2 Boolean Bit strings Integers Durations 0 eo UJ o o U 5 o o o J e lt gt 3 gt s gt 3 gt 5 gt 3 gt o Tl Tl E T o T Tl mu m T E m m m m m m m m w ics z J S o z 3 z z m e S m o In1 or In2 OK OK OK OK OK OK OK OK OK OK OK OK OK OK Out OK OK Function This function determines if the values of two variables n7 and n2 are not equivalent If they are not equivalent the comparison result Out is TRUE If they are equivalent Out is FALSE Precautions for Correct Use You can compare n1 and n2 even if they have different data types such as a safety data type and a standard data type as long
189. n Control Instructions Type Instruction Name Description Page Execution control Jump Jump Moves processing to the P 2 6 jump destination specified by a label Return Return Returns control to the pro P 2 8 NX series Safety Control Unit Instructions Reference Manual Z931 cess that called the POU without executing any pro cessing after RETURN 2 Standard Functions JUMP and LABEL This function moves processing to the jump destination specified by a label Instruction Name FB FUN Graphic expression FUN JUMP Jump D Label LABEL Label FUN Label Variables There are no variables for these instructions Function When the execution condition is TRUE the JUMP instruction moves processing to the jump destination specified by a label in the program The label can be any text string The following figure shows a programming example This example uses the text string Step1 as the label When the JUMP instruction is executed processing moves to the location marked Step7 In this exam ple programming C between the JUMP instruction and the label is not executed The outputs in pro gramming C retain the values that they had just before the JUMP instruction was executed FALSE Output from Programming B TRUE Output from Programming B Network Execution Network Execution 1 Programming A 1 Programming A Programming B Programming B 2
190. n Instructions 0 cc ee 2 51 AND OR and XOR inb bateria lila alt caadees 2 52 NO Tica a oe i babe os ue be ace At te alee a dea 2 54 NX series Safety Control Unit Instructions Reference Manual Z931 3 CONTENTS Math Instr ctions 20 eh a IS RR RR A a ae Rr ej 2 55 ADD sieut teen TU ed od ee thee ie dee tae i 2 56 SUB een A reset e da SG ain tk Sal a Sete RG alt Se aim Nil mmt 2 58 BENE 2 60 DIN does reete pq team uitae co MESE 2 62 Comparison Instructions re Goot E e een hme 2 65 EOS EAA Mum M MINIM E Am E E 2 66 e 2 67 EN LESOTO GE tt a re A nd e Ye Linen taal om pude 2 68 Other Standard Instructions 0ooococcocnnr ee eee 2 71 NO 2 72 MUI lo dtr a eer o 2 74 Section 3 Safety Standard Function Blocks Safety Standard Function Block Instructions ooooonnonccicnnnnocccccnnnonanccnn nan ncccnnnnnn nc nc nan nncccnnnnnns 3 2 SE OLD summed sank ee iad Reta at Eo ole alate tae te ret 3 3 SEOGDIUS uices n uto M m Orr Sere mere ree eet eee eR M Me A ees 3 5 SF CTUD zer Dette A aia 3 7 SELESTRIC A etii nta tht ubt Uem dios feret 3 10 SARTRO 22 uoces O im 3 11 SPURS Ld uade ea b i e de e dave ER Its 3 12 SESSBES i uou metam oem dN p MT C TIAM Se Ta IERI LEM 3 13 SECTOPLZ oi nU MA Me M de AM 3 14 SE TONZL te ee e t eae deret en ir ere e edm e de dad art e LR ee es 3 16 SESE ence cioe in E Lun Lent rM e rem ot D M et 3 18 Section 4 Safety Function Blocks General Rules for Safety Function Blocks
191. n actuator This means that the actuator s safety related functions can be used in the application program However there are only two binary signals the request signal and acknowledge signal that are used to control the safe state of the actuator SF SafetyRequest Valve block Activate Ready S OpMode S SafetyActive S Acknowledge MonitoringTime Reset System level Acknowledgment This safety function is provided by the actuator Therefore the FB only starts a request monitors the request and sets an output after confirming the safe state of the actuator This output is given by the S SafetyActive output This FB does not define actuator specific parameters The parameters must be defined in the actua tor The FB changes the actuator from operation mode to the safe state 4 106 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks State Transition Diagram NOT Activate Ready FALSE Ready TRUE Wait fi R_TRIG at Reset OpMode R_TRIG at Reset 2 8005 AND NOT S Acknowledge S_OpMode R_TRIG at Reset NOT S_Acknowledge 2 Reset AND NOT NOT S_OpMode R_TRIG at Reset 2 NOT Reset S OpMode onitoring Time NOT S QpMode i mato elapsed g 1 Error 2 for Confirmation 8003 S_Acknowledge S_SafetyAcvive TRUE S_OpMode jsanbay jejes 4S NOT S_Acknowledge Note Transitions to the Idle state from any other state are not shown for when Activate chan
192. nal information on the function of the instruction is provided This includes related tion instructions and helpful information for application of the instruction Precautions for Cor Precautions for application of the instruction are given The conditions under which errors rect Use occur for the instruction are also given here 1 2 2 Safety Data Types and Standard Data Types The Safety Control Unit classifies the following two data types to distinguish between safety signals and standard signals Safety data types These data types represent signals related to safety control Standard data types These data types represent signals related to standard control The safety data type variables are prefixed with the SAFE before the name of the standard data type as in SAFEBOOL and SAFEBYTE You can input a signal for a safety data type variable to a standard data type variable You cannot input a signal for a standard data type variable to a safety data type variable A building error will occur 1 2 3 Valid Ranges and Default Values of Variables The valid range of a variable indicates the range of values that variable can take The default value of a variable indicates the value that is assigned to an input variable when the instruction is executed with out a parameter assigned to the input variable These values are defined for each data type If specific values are not given for an instruction then the valid ranges and default va
193. ndOut FALSE 8005 Button 1 Actuated Only Button1 is being operated Ready TRUE Error FALSE S TwoHandOut FALSE 8006 Button 2 Actuated Only Button2 is being operated Ready TRUE Error FALSE S TwoHandOut FALSE 8007 Button 2 Released The safety output was enabled and then disabled again After the safety output was disabled S Button and S Button2 did not both change to FALSE In this state S Button is TRUE and S Button2 is FALSE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE 8008 Button 1 Released The safety output was enabled and then disabled again After the safety output was disabled S Button1 and S Button2 did not both change to FALSE In this state S_Button1 is FALSE and S Button2 is TRUE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE 8009 4 130 Locked Off The safety output was enabled and then disabled again After the safety output was disabled S Button1 and S Button2 did not both change to FALSE In this state S Button is TRUE and S Button2 is TRUE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8019 Locked On The button operation was not correct The FB is waitin
194. ng error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 24 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions DWORD TO TIME This function converts a DWORD variable to a TIME variable Instruction FB FUN Graphic expression DWORD_TO_TIME Torei FORO DWORD DWORD _TO TIME Variables Default DWORD 16 00000000 C Name WO Description Validrange Data to con Input Data to con DWORD 16 00000000 vert vert to FFFFFFFF Out Conversion Output Duration T 0ms to T 0ms result T 49d17h2m47s295ms If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww 7 w o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m w i E E 9 z 9 2 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts DWORD data n to TIME data Out Example When Value of n Is DWORD 16 FFFFFFFF The value of Out is 49 days 17 h 2 min 47 s 295 ms T 49d17h2m47s295ms Additional Information To convert TIME data to DWORD data refer t
195. nges to TRUE CV changes to 0 and so QD changes to TRUE If LOAD changes to TRUE the value of CV changes to PV and so QU changes to TRUE The following table shows the relationship between RESET LOAD CV QU and QD This assumes that the value of PV is larger than 0 RESET Load CV QU QD Operation FALSE FALSE 0 or lower FALSE TRUE Only an up counter operation is performed CV is incremented when CU changes to TRUE It is not decremented when CD changes to TRUE Between 0 FALSE FALSE Both up and down counter opera and PV tion is performed CV is incremented when CU changes to TRUE and decre mented when CD changes to TRUE PVorhigher TRUE FALSE Only down counter operation is performed CV is decremented when CD changes to TRUE It is not incremented when CU changes to TRUE TRUE FALSE 0 FALSE TRUE The up counter is reset The value of CV is set to 0 FALSE TRUE PV TRUE FALSE The down counter is reset The value of CV is set to PV TRUE TRUE 0 FALSE TRUE The up counter is reset Reset takes priority over Load The value of CV is set to 0 3 8 NX series Safety Control Unit Instructions Reference Manual Z931 3 Safety Standard Function Blocks The following figure shows a programming example and timing chart for a PV of INT 3 SF_CTUD_instance SF_CTUD cu cD RESET LOAD TRUE ou rus RN BREET TRUE ili 3 T 1 1 eae FALSE E foe 2 3 7 TRUE i i 1 1 f 1 1
196. ntrol Safety Standard Function Block Instructions sese 3 2 SF OTD 24 peris qood puer preda etr ores AS re 3 3 e RCM 3 5 SEC WUD t ois xh eno yr e Qu ree etd PEDEM Eg SE ees 3 7 SFOR TRIG 2L EE oe Lebe zen es sete do o sde dto n 3 10 A A hob A Stead i dace oct cath 3 11 SF RS reset ride es pes eae ee 3 12 SFE SR Bap Reis Rie ie cae A ate ea aa oie Et 3 13 SE TOF ui oe mr wet eee bee oe Wu enl AES n PED 3 14 SE TON rt A hoe ee Ree ee e EE 3 16 OE TB hs siege eles raros Mt aR eta p enfe Neff eure 3 18 NX series Safety Control Unit Instructions Reference Manual Z931 3 1 3 Safety Standard Function Blocks Safety Standard Function Block Instructions Instruction Variable Function Page SF_CTD Down counter Decrements the counter value when the counter input signal is P 3 3 received SF_CTU Up counter Increments the counter value when the counter input signal is P 3 5 received SF_CTUD Up down Counter Creates an up down counter that operates according to an P 3 7 up counter input and a down counter input SF_F_TRIG Down Trigger Outputs TRUE for one task period only when the input signal P 3 10 changes to FALSE SF_R_TRIG Up Trigger Outputs TRUE for one task period only when the input signal P 3 11 changes to TRUE SF_RS Reset Priority Keep Retains the value of a SAFEBOOL variable P 3 12 SF_SR Set Priority Keep Retains the value of a SAFEBOOL variable P 3 13 SF_TOF Off Delay
197. o In OK OK Out OK OK Function This function converts TIME data n to WORD data Out Example When Value of n Is 50 s 505 ms T 50s505ms The value of Out will be WORD 16 C549 Additional Information To convert WORD data to TIME data refer to WORD TO TIME Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If the input value is not TIMEZOms to TIME 65s535ms a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 47 suononijsu uois19AUO d L eyeq QHOM OL MIL 2 Standard Functions TIME_TO_DINT This function converts a TIME variable to a DINT variable Instruction FB FUN Graphic expression TIME_TO_DINT A TIME to 3d a TIME TO DINT Variables Name WO Description Validrange Default Data to con Input Duration T Oms to vert T 49d17h2m47s295ms Out Conversion Output Integer DINT 0 to 2147483647 DINTZO result If you omit an input or output parameter a building error will occur T Oms
198. o TIME TO DWORD Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 25 suononijsu UOISISAUO ed gea AWIL OL GYOMA 2 Standard Functions BYTE_TO_WORD This function converts a BYTE variable to a WORD variable Instruction FB FUN Graphic expression BYTE_TO_WORD ee BYTE to qe Variables Default Valid range In Data to con Input Data to con BYTE 16 00 to FF BYTE 16 00 vert vert Out Conversion Output Conversion WORD 16 0000 to OOFF WORD 16 0000 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 0 o g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m T r m m m m m m m m w i 2 3 g 9 z 9 z 5 o 3 z z m e 2 m o In OK OK Out OK OK Function This function converts BYTE data n to WORD data Out Additional Information To c
199. o an INT variable INT WORD TO DINT Convert Converts a WORD variable P 2 20 WORD to to a DINT variable DINT DWORD TO DINT Convert Converts a DWORD vari P 2 21 DWORD to able to a DINT variable DINT Bit string to BYTE_TO_TIME Convert Converts a BYTE variable to P 2 23 duration BYTE to a TIME variable TIME WORD TO TIME Convert Converts a WORD variable P 2 24 WORD to to a TIME variable TIME DWORD TO TIME Convert Converts a DWORD vari P 2 25 DWORD to able to a TIME variable TIME Bit string to bit BYTE TO WORD Convert Converts a BYTE variable to P 2 26 string BYTE to a WORD variable WORD WORD TO BYTE Convert Converts a WORD variable P 2 27 WORD to to a BYTE variable BYTE WORD TO DWORD Convert Converts a WORD variable P 2 28 WORD to to a DWORD variable DWORD 2 2 NX series Safety Control Unit Instructions Reference Manual Z931 Data type conversion 2 Standard Functions Type Instruction Name Description Page Integer to DINT_TO_BOOL Convert Converts a DINT variable to P 2 29 Boolean DINT to a BOOL variable BOOL INT_TO_BOOL Convert INT Converts an INT variable to P 2 30 to BOOL a BOOL variable Integer to bit DINT_TO_BYTE Convert Converts a DINT variable to P 2 31 string DINT to a BYTE variable BYTE DINT_TO_DWORD Convert Converts a DINT variable to P 2 32 DINT to a DWORD variable DWORD DINT_TO_ WORD Convert Converts a DINT
200. o o g n 5 o o o J gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T E T e T T EI T m Tn r m m m g m m m m m w w s S g z e S 3 o z 3 z z F E S 5 o In1 to InN OK OK Out OK OK 2 52 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Function These instructions perform operations for two or more Boolean variables n1 to InN The relationships between input and output variables are given in the following tables AND If all inputs are TRUE then the processing result is TRUE Otherwise the processing result is suo 39n413su uoneJado ueajoog FALSE In1 bit In2 bit InN bit Out bit FALSE FALSE gece FALSE FALSE FALSE FALSE mos TRUE FALSE FALSE TRUE PS TRUE FALSE TRUE FALSE EE FALSE FALSE TRUE FALSE tse TRUE FALSE TRUE TRUE Bm TRUE TRUE R OR If all inputs are FALSE then the processing result is FALSE Otherwise the processing result is TRUE S In bit In2 bit InN bit Out bit 5 FALSE FALSE n FALSE FALSE 5 FALSE FALSE aise TRUE TRUE a FALSE TRUE Pm TRUE TRUE TRUE FALSE ust FALSE TRUE TRUE FALSE mee TRUE TRUE TRUE TRUE RUD TRUE TRUE XOR If both inputs have the same value then the processing result is FALSE If one bit is TRUE and the other is FALSE then the processing result is TRUE In1 bit In2 bit Out bit FALSE FALSE FALSE FALSE TRUE TRUE TRUE FAL
201. oReset BOOL Reset Variables e i Input Variables lo c S Variable Data type Valid range Default Description 8 Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S SafeControl SAFEBOOL TRUE or FALSE FALSE A variable It is the control signal from the previous safety FB Use the signal from a typical FB from the library SF EmergencyStop SF GuardMonitoring SF TwoHandControlTypell etc FALSE The signal from the previous safety FB is inactive TRUE The signal from the previous safety FB is active ProcessControl BOOL TRUE or FALSE FALSE A constant or a variable It is a control signal from the function application FALSE Request to set S OutControl to FALSE TRUE Request to set S OutControl to TRUE StaticControl BOOL TRUE or FALSE FALSE A constant It is the process control option status FALSE A change to TRUE in ProcessControl is required after the FB is started or after the safety function is trig gered TRUE A change to TRUE in ProcessControl is not required after the FB is started or after the safety function is triggered S StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 NX series Safety Control Unit Inst
202. ocked but closed Ready TRUE S_GuardLocked FALSE S_UnlockGuard TRUE Error FALSE 8014 Safety Return The S_SafetyActive signal was restored and the FB is waiting for a confirmation response Reset from the operator Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF_GuardMonitoring This safety FB monitors a relevant safety guard and opens or closes the safety guard Instruction Name FB FUN Graphic expression SF_GuardMonitori Safety Guard FB SF GuardMonitoring ng Monitoring BOOL Activate ReadyL BOOL SAFEBOOL S_GuardSwitch1 S_GuardMonitoring SAFEBOOL SAFEBOOL S_GuardSwitch2 BOOL TIME DiscrepancyTime WORD SAFEBOOL S_StartReset SAFEBOOL S_AutoReset BOOL Reset Variables i Input Variables o l E Variable Data type Valid range Default Description 5 Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S S GuardSwitch1 SAFEBOOL TRUE or FALSE FALSE A variable The input from guard switch 1 g FALSE The guard is open E TRUE The guard is closed S GuardSwitch2 SAFEBOOL TRUE or FALSE FALSE A variable The input from guard switch 2 FALSE The guard is open TRUE The guard is closed Discrepancy TIME Depends on data T 0ms A constant It sets the synchronization time to monitor Time type betwe
203. of n7 is TIME 10ms and the value of n2 is TIME 14ms the value of the subtraction result is TIMEZ 4ms However the maximum value of TIME is the same as for DWORD 4294967295 so the subtraction result will be the value that can be expressed with 32 bits i e TH49d17h2m47s292ms Although negative time does not actually exist the value is expressed as a negative value Precautions for Correct Use The data types of In1 In2 and Out can be different If they are different calculations are performed with the data type that includes the range of all of the data types For example if nO is INT data and In1 is DINT data calculations are performed with DINT data Therefore subtraction result Out will be DINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you seta safety data type variable for the output terminal set a safety data type variable for the two input terminals as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononJajsu yew ans NX series Safety Control Unit Instructions Reference Manual Z931 2 59 2 Standard Functions MUL MUL This function multiplies integers or a duration Instruction ee eS MEEN Graphic expression Multiplication MUL Variables In1 to InN
204. of an emergency stop button You can input a variable or a constant FALSE default Perform resetting manually when the emergency stop button is released TRUE Resetting is performed automatically when the emergency stop button is released Use automatic resetting only when you can verify that no hazard of any sort will result from automatically resetting the Safety CPU Unit Reset BOOL TRUE or FALSE The reset input FALSE Input a variable NX series Safety Control Unit Instructions Reference Manual Z931 This parameter is used for different purposes for dif ferent FBs You can use it to reset the function block status and release the relationship between the error and code that is returned in DiagCode after the cause of the error is removed You can use it for a manual reset with an operator restart interlock The reset processing must be designed to reset the FB You can use it for other FB specific resets Resetting is effective only when the signal changes from FALSE to TRUE Resetting is not performed unless the change from FALSE to TRUE is detected Some FBs detect this as an instruction execution error This is described in nstruction Execution Errors under Function for the relevant FB You must connect a SAFEBOOL variable not a BOOL variable depending on safety requirements sx90 g uonouny jajes 10 sainy jeeuec 4 Safety Function Blocks i Safety FB Common Output Variables The common
205. on Input Data to con TRUE or FALSE vert vert Out Conversion Output Conversion INTZO or INT 1 INTZO result result If you omit an input or output parameter a building error will occur FALSE Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts BOOL data n to INT data Out If the value of In is FALSE the value of Out is INT O If the value of n is TRUE the value of Out is INT 1 Additional Information To check for INT data refer to INT TO BOOL Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 12 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions BOOL_TO_DINT This function converts a BOOL variable to a DINT variable Instruction FB FUN Graphic expression BOOL_TO_DINT PS BOOL to BOO
206. onvert WORD data to BYTE data refer to WORD TO BYTE Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal 2 26 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions WORD TO BYTE This function converts a WORD variable to a BYTE variable Instruction Name FB FUN Graphic expression WORD_TO_BYTE Convert WORD FUN WORD TO BYTE to BYTE 7 gt Variables Mame WO Description Validrange Default Data to con Input Data to con WORD 16 0000 to OOFF WORD 16 0000 vert vert Out Conversion Output Conversion BYTE 16 00 to FF BYTE 16 00 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww 7 w o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m w i E E 9 z 9 2 5 O 3 z z m E 2 m o In OK OK Out OK OK Function This function converts WORD data n to BYT
207. or TRUE C004 Safety Lost Safety was compromised Either the guard was opened or unlocked Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error TRUE e FB specific State Codes No Error DiagCode hexadecimal 0000 Idle Status name Status description and output results The FB is disabled default Ready FALSE S_GuardLocked FALSE S_UnlockGuard FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 53 4 Safety Function Blocks DiagCode hexadecimal 8000 Status name Guard Closed and Locked Status description and output results The guard is locked Ready TRUE S_GuardLocked TRUE S_UnlockGuard FALSE Error FALSE 8001 Init The FB was activated and started Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error FALSE 8003 Wait for Reset The door is closed and locked and the FB is waiting for the operator to reset the function Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error FALSE 8011 Wait for Operator The FB is waiting for the operator to request unlocking the guard or resetting the function Ready TRUE S_GuardLocked FALSE S_UnlockGuard FALSE Error FALSE 8012 Guard Open and Unlocked The guard is unlocked and open Ready TRUE S_GuardLocked FALSE S_UnlockGuard TRUE Error FALSE 8013 Guard Closed but Unlocked The guard is unl
208. or 6 AND NOT C006 S StartReset and TestTime lt 150ms NOT S OSSD In R TRIG at Reset 7 ESPE AND NOTS OSSP 7ln Res tAND NOT Interrupted 1 R_TRIG t Reset Reset Error 7 S OSSD In and R_TRIG t Reset OR S StdrtReset ESPE Interrupted 2 i F TRIG at OSSD In External R TRIG atReset Function Test AND S OSSD In 8004 v E o a g 5 amp o E o IZ Q z Ed 59 Z Ou Xo BE gc Y x S OSSD In and R_TRIGat Reset R TRIG ht Reset OR AND NOT N External Test S_AutoReset Reset AND NOT R_TRIG at Reset Reset Error 3 C003 Reset Error 4 SLOSSD_In AND S OSSD In AND R_TRIG at Reset OR R_TRIG sat Reset AND No External Test Test Active 8030 Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 4 114 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts Activate S_OSSD_In StartTest TestTimer1 TestTimer2 NoExternalTest S StartReset S AutoReset Reset Ready S OSSD Out TestPossible S TestOut TestExecuted Error DiagCode 0000 8001 8010 8020 8030 8000 8012 8013 8012 8013 8000 0000 Josues Ajejese qeise 4S NX series Safety Control Unit Instructions Reference Manual Z931 4 115 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected The followin
209. ore multiplication result Out will be DINT data If you use duration data for the data to multiply use duration data for one of In to InN and for Out The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set safety data type variables for all of the input terminals If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal If you set a safety data type variable for the output terminal set safety data type variables for all of the input terminals If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 61 suononsjsuy yew TIAN 2 Standard Functions DIV This function divides integers or a duration Instruction Name FB FUN Graphic expression l Variables Name 1 10 Description Valid range Default In1 Dividend Input Dividend Depends on data type In2 Divisor Input Divisor Depends on data type Out Output value Output Output value Depends on data type If you omit an input or output parameter a building error will occur An error will not occ
210. ou must connect it to a FB that has a restart inter lock jusjeunb3 js NX series Safety Control Unit Instructions Reference Manual Z931 4 37 4 Safety Function Blocks State Transition Diagram NOT Activate Activate Ready FALSE NOT S_EhHannelA S_ChannelA AND NOT SChannelB S_Chan elB AND NOT S ChannelAl NOT S_ChannelA AND NOT S_ChanhelB Wait for Channel B 8004 Wait for Channel A Discrepancy __ Time Elapsed Discrepancy Chg Time Elapsed S_ChannelB Ready TRUE NOT S_ChannelA AND NOT S_ChannelB A por S_ChannelA AND NOT S ChannelB Discrepancy Time Elapsed S Ch nnelA AND S ChhnnelB From Active Wait 8005 NOT S ChannelA AND NOT S Ch nnelB S EquivalentOut FALSE S Chanri lA XOR S_EquivalentOut TRUE S_e annelB Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks i Timing Charts Stati Normal operation Inputs Activate S_ChannelA S_ChannelB Discrepancy Timer Outputs Ready S EquivalentOut Error DiagCode jusjeunb3 js Inputs Activate S ChannelA S ChannelB Discrepancy Timer Outputs Ready S EquivalentOut Error DiagCode 8001 8004 8004 C001 C001 C001 C001 C001 C001 8001 8001 8000 8005 8001 NX seri
211. ou omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww 7 w o o g n 5 o o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T T m T r m m m m m m m m D w a E g z o El 2 5 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts DWORD data n to DINT data Out Example When Value of Out Is Positive DINT 0 to DINT 2147483647 The value of Out is DINTZO to DINT 2147483647 according to the value of In DWORD 16 00000000 to DWORD 16 7FFFFFFF Example When Value of Out Is Negative DINT 2147483648 to DINTH 1 e If the value of In is DWORD 16 80000000 1000 0000 0000 0000 0000 0000 0000 0000 binary the value of Out is DINT 2147483648 If the value of In is DWORD 16 FFFFFFFF 1111 1111 1111 1111 1111 1111 1111 1111 binary the value of Out is DINTZ 1 Additional Information To convert DINT data to DWORD data refer to DINT TO DWORD NX series Safety Control Unit Instructions Reference Manual Z931 2 21 suononijsu UOISISAUO ed gea 1NId OL QHOMG 2 Standard Functions Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the in
212. ou set a safety data type variable for the output terminal set a safety data type variable for the two input terminals as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononJajsu yew NA NX series Safety Control Unit Instructions Reference Manual Z931 2 63 2 Standard Functions NX series Safety Control Unit Instructions Reference Manual Z931 Comparison Instructions Type Instruction Name Description Page Comparison EQ Equal Determines if the values of P 2 66 two variables are equivalent NE Not Equal Determines if the values of P 2 67 two variables are not equiv alent LT Less Than Performs a less than com P 2 68 parison between two values LE Less Than Performs a less than or P 2 68 Or Equal equal comparison between two values GT Greater Performs a greater than P 2 68 Than comparison between two values GE Greater Performs a greater than or P 2 68 Than Or equal comparison between Equal two values NX series Safety Control Unit Instructions Reference Manual Z931 2 65 2 Standard Functions EQ This function determines if the values of two variables are equivalent Instruction Name FB FUN Graphic expression Variables Default Comparison Input data pare Out Comparison Output Comparison Depends on data type res
213. output variables for safety FBs are listed in the following table Output vari able Ready BOOL TRUE or FALSE The ready flag FALSE FALSE Indicates that the FB is not active and the pro gram is not executed This is useful in DEBUG Mode or to activate deactivate additional FBs as well as for further processing in the functional program TRUE Indicates that the FB is operating and that the output results have been stored Data type Valid range Default Description This variable is used for debugging or for further pro cessing in the user program Error BOOL TRUE or FALSE The error flag FALSE FALSE Indicates that no error has occurred The state is given by DiagCode TRUE Indicates that an error has occurred The error state is given by DiagCode DiagCode WORD Depends on 1640000 Diagnostic information FB state code All status active non active and error for the FB is stored in this variable The information is given as a hexadecimal number Only one code is given each time If more than one error has occurred the information for the first error that is detected is output to DiagCode Refer to Diagnostic Codes on page 4 4 below for details This variable is used for debugging or for fur ther processing in the user program Diagnostic Codes All FBs output unique diagnostic information to DiagCode If an error does not occur DiagCode gives the internal state of the FB Errors are given
214. p Trigger sprite 3 11 Up COURIer eie fene Tete ee reden 3 5 Reset Priority Keep occiso 3 12 Up down Counter seem 3 7 RETURN iere ttr tip ea e E aKT ag 2 8 Ieturri eee mer RN 2 8 W S WORD TO BOOL 4 eene 2 50 WORD TQ BYTE cni etit recte agat 2 27 Safety Guard Interlocking with Locking 4 49 WORD TO DINT erret eee 2 20 Safety Guard Monitoring eese 4 55 WORD TO DWORD tectis Rents 2 28 Safety Request saar a i 4 105 MORAN soil ah fin i aa 2 18 SM uM NUM ES E deos WORD TIO TIM is aes Sequential Muting eee eee ee eeeeeeeeeeeeeneeeeeeneeeeeeeees 4 90 Set Priority Keep ssss em 3 13 X SF Antivalent coco eene die 4 9 SF CTD COUETTE 3 3 XOR a 2 52 SPLOT todo 3 5 SESZQTUD ouem E 3 7 SPEED Mi E mere EUMD 4 15 SF EmergencyStop esee 4 23 SF EnableSwitch sse 4 30 SF Equivalent eee 4 36 SEZSESPE URN Hee e eed 4 42 SESESIRIG 4 5 dn Eme ne 3 10 SF GuardLocking seen 4 49 SF GuardMonitoring eee 4 55 NX series Safety Control Unit Instructions Reference Manual Z931 1 3 Index NX series Safety Control Unit Instructions Reference Manual Z931 Authorized Distributor
215. put terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions BYTE_TO_TIME This function converts a BYTE variable to a TIME variable Instruction FBIFUN Graphic expression BYTE_TO_TIME ES BYTE to BYTE TO TIME Variables Default Name WO Description Validrange In Data to con Input Data to con BYTE 16 00 to FF BYTE 16 00 vert vert Out Conversion Output Duration T 0ms to T 255ms T Oms result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 o o g 2 5 o o J o gt lt gt 3 gt sz gt 3 gt gt 3 gt o T T D T o T T TU m TU r m m m m m m m m w w 9 E 9 z 9 e 3 O 3 z z m d 2 m o In OK OK Out OK OK Function This function converts BYTE data n to TIME data Out Additional Information To convert TIME data to BYTE data refer to TIME TO BYTE Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input
216. r If you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well If you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal suononijsu uois19AUO d L eyeq QHOMG OL 1NI NX series Safety Control Unit Instructions Reference Manual Z931 2 37 2 Standard Functions INT_TO_ WORD This function converts an INT variable to a WORD variable Instruction Name FB FUN Graphic expression INT_TO_WORD Convert INT to FUN Variables Default Valid range In Data to con Input Data to con INTZ 32768 to 32767 INTZO vert vert Out Conversion Output Conversion WORD 16 0000 to FFFF WORD 16 0000 result result If you omit an input or output parameter a building error will occur Boolean Bit strings Integers Durations Ww o 0 2 v g o 5 o o 2 J o gt lt gt 3 gt sz gt 5 gt gt 3 gt o T T E T o T T E T m T r m m m m m m m m w i 2 3 g 9 z 9 z 5 o 3 z z m e 2 m o In OK OK Out OK OK Function This function converts INT data n to WORD data Out Example When Value of n Is Positive INT 0 to INT 32767 The value of Out is WORD 16 0000 to WORD 16 FFF according to the value of In INT 0 to INT 32767 Example When Value of In Is Negative INT
217. r the transition from position 2 to position 3 is sometimes different from the one that is shown in the figure The FB can detect the direction in which the switch changed from position 1 to position 2 or from position 3 to position 2 by using the signal sequences that are defined for the enable switch inputs The FB enables stopping the safety protection function only when the switch changes from position 1 to position 2 You cannot use any other direction or switch position to enable stopping the safety pro tection function This function is based on section 10 9 of IEC 60204 The type of brackets that is specified in EN 60204 is different Because it is based on section 10 9 of IEC 60204 it is necessary to use a suitable switching device You must also confirm that a suitable operation mode is selected in the relevant application In this operation mode you must disable automatic operation with a suitable means An operation mode selection switch is normally used to select the operation mode to move the machine to the safe state with the SF ModeSelector and SF SafeRequest instructions The SF EnableSwitch instruction confirms safe mode with the value of S SafetyActive If implemen tation does not require confirmation of safe mode in the application connect a constant TRUE signal to S SafetyActive Activate the S StartReset input only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU
218. r in this manual 8 NX series Safety Control Unit Instructions Reference Manual Z931 Manual Structure 2 Instruction Descriptions Level 1 heading m Level 2 heading Level 3 OR and ORN Level 3 heading heading OR Takes the logical OR of the value of a BOOL variable and the execution condition ORN Takes the logical OR of the inverse of the value of a BOOL variable and the execution condi tion Give the current headings suoponnsu webera joppe1 Instruction Graphic expression ST expression Tesult vBool OR vBool2 1 Variable Variable Leve e 1 ble Varial 4 IF A section number Upward Downward differentiation differentiation Gives the number of the section result vBool1 OR NOT NYO pue HO ol bpp Variable Variable vBool2 E Upward Downward differentiation differentiation Variables None Function e OR The OR instruction takes the logical OR of the value of a specified BOOL variable and the execution condition and outputs it to the next instruction Use the OR instruction for a NO bit connected in parallel with the previous instruction Use the OR instruction to configure a logical OR between an NO bit and one of the following a LD or LDN instruction connected directly to the bus bar or the logic block starting with a LD or LDN instruction and ending with the instruction immediately before the OR instruction e ORN The ORN instruction takes the logical OR of the inverse of
219. ric barriers limit switches and other devices that do not have failsafe mechanisms are used for muting sensors Muting operation must be indicated by indicator lights There are two types of muting parallel and sequential This FB performs parallel muting with two muting sensors An application example is provided below Refer to SF_MutingPar_2Sensor Instruc tion Application Example with Two Reflective Light Barriers on page 4 83 The sensors must be located as described in Annex F 7 in CD 2005 of IEC 62046 as shown in the application example The FB can be used for either forward or backward passage However the actual direction cannot be identified To prevent manual operation muting must also be enabled by process control with the MutingEnable signal to perform muting The input parameters to the FB include two muting sensor signals S_MutingSwitch11 and S_MutingSwitch12 an OSSD signal from a photoelectric protection device S_AOPD_In and two time parameters DiscTimeEntry and MaxMuting Time Activate the S_StartReset input only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks e SF_MutingPar_2Sensor Instruction Application Example with Two Reflective Light Barriers Order Diagram Description 1 CCl If reflection light barriers are used as muting MS_11 Transmitter sensors they are gen
220. rol Instructions 00000 eee 2 5 Data Type Conversion Instructions eee eee 2 9 Boolean Operation Instructions lesessslssllss 2 51 Math Instructions oococococcon nnn 2 55 Comparison Instructions 00 00 ee 2 65 Other Standard Instructions 0 2 000 e eee ee 2 71 NX series Safety Control Unit Instructions Reference Manual Z931 2 1 2 Standard Functions Table of Standard Functions Type Instruction Name Description Page Execution control Jump Jump Moves processing to the P 2 6 jump destination specified by a label Return Return Returns control to the pro P 2 8 cess that called the POU without executing any pro cessing after RETURN Data type Boolean to BOOL_TO_INT Convert Converts a BOOL variable P 2 12 conversion integer BOOL to INT to an INT variable BOOL TO DINT Convert Converts a BOOL variable P 2 13 BOOL to to a DINT variable DINT Boolean to BOOL TO TIME Convert Converts a BOOL variable P 2 14 duration BOOL to to a TIME variable TIME Boolean to bit BOOL TO WORD Convert Converts a BOOL variable P 2 15 string BOOL to to a WORD variable WORD Bit string to inte BYTE TO INT Convert Converts a BYTE variable to P 2 16 ger BYTE to INT an INT variable BYTE TO DINT Convert Converts a BYTE variable to P 2 17 BYTE to a DINT variable DINT WORD TO INT Convert Converts a WORD variable P 2 18 WORD to t
221. ror occurred in forward direction in state 8012 C3x4 Error occurred in backward direction in state 8122 C4x4 Error occurred in backward direction in state 8112 CFx4 MutingEnable was not detected x Sensor status when the error occurred 4 bits LSB MS_11 MS_12 MS_21 MSB MS_22 C005 Parameter Error The value of MaxMutingTime is outside of the valid range Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE C006 Error Timer MaxMuting Timing error The effective muting time while S MutingActive TRUE exceeded MaxMutingTime Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE besBunny 4s e FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE S AOPD Out FALSE S MutingActive FALSE Error FALSE 8000 AOPD Free Muting is disabled The control input from AOPD is active Ready TRUE S AOPD Out TRUE S MutingActive FALSE Error FALSE 8001 Init The FB was started Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 97 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8002 Safety Demand AOPD Muting is disabled The control input from AOPD is disabled Ready TRUE S_A
222. rrect order Amuting sequence started without being enabled by MutingEnable A muting sensor signal that is always TRUE was detected A muting lamp failure was indicated S MutingLamp FALSE An undetected change to TRUE in the Reset input was detected in the Init state or the Wait for Reset state Operation for Errors When an error occurs the S AOPD Out and S MutingActive outputs are set to FALSE The DiagCode output gives the relevant error code and the Error output is set to TRUE Operation is not restarted until the error is reset and the operator acknowledges the safe state with Reset eo FB specific Error Codes DiagCode hexadecimal Status name Status description and output results C001 Reset Error 1 When the Init state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_AOPD_Out FALSE S_MutingActive FALSE Error TRUE 4 86 NX series Safety Control Unit Instructions Reference Manual Z931 DiagCode hexadecimal C002 Status name Reset Error 2 4 Safety Function Blocks Status description and output results When the Wait for Reset state was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE C003 Error Muting lamp An error was detected in the muting lamp Ready TRUE S AOPD Out FALSE S MutingActive FALSE Error TRUE CYx4 Error
223. rted Automatic resetting was FALSE at startup so resetting is necessary Ready TRUE S EDM Out FALSE Error FALSE 8010 Output Disable EDM control is OFF The timer starts when this state is entered Ready TRUE S EDM Out FALSE Error FALSE 8000 Output Enable EDM control is ON The timer starts when this state is entered Ready TRUE S EDM Out TRUE Error FALSE NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks SF EmergencyStop This safety FB monitors the input from an emergency stop button Instruction Name FB FUN Graphic expression SF EmergencyStop Emergency FB SF EmergencyStop Stop BOOL Activate BOOL SAFEBOOL S_EStopln SAFEBOOL SAFEBOOL S_StartReset BOOL SAFEBOOL S_AutoReset WORD BOOL Reset Variables Input Variables Variable Data type Valid range Default Description Activate BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S EStopln SAFEBOOL TRUE or FALSE FALSE A variable This is a safety request input FALSE There is a request for a safety function Exam ple An emergency stop button was pressed TRUE There is no request for a safety function Exam ple An emergency stop button was not pressed S StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 S AutoReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on pag
224. ructions Reference Manual Z931 4 99 4 Safety Function Blocks i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S_OutControl SAFEBOOL TRUE or FALSE FALSE Controls the connected actuator FALSE Disables the connected actuator TRUE Enables the connected actuator Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1620000 Refer to Safety FB Common Output Variables on page code 4 4 Function e Introduction This FB is an output drive device for a safety output The safety output is controlled through S OutControl using a signal from the function application ProcessControl BOOL to control the process and a signal from the safety application S_SafeControl SAFEBOOL to control the safety function Process Control Option Status StaticControl If StaticControl is FALSE the function must be started again by changing ProcessControl to TRUE after the FB starts or after the safety signal S SafeControl feedback An always TRUE signal for ProcessControl will not set S OutControl to TRUE If StaticControl is TRUE it is not necessary to start the function again by changing ProcessControl to TRUE after the FB starts or after the safety signal S SafeControl feedback As long as the other conditions are met an always TRUE s
225. s j Muting Conditions Forward Direction Muting Condition 1 8000 to 8011 when MS 11 is the first switch to enable muting Timer for MaxMutingTime started MutingEnable AND R_TRIG at MS 11 AND NOT MS 12 AND NOT MS 21 AND NOT MS 22 Muting Condition 2 8011 to 8012 when MS 12 is the second switch to enable muting MutingEnable AND MS 11 AND R_TRIG at MS 12 AND NOT MS 21 AND NOT MS 22 Muting Condition 3 8012 to 8000 when MS 21 is the first switch to disable muting Timer for MaxMutingTime stopped NOT MS 11 AND NOT MS 12 AND F TRIG at MS 21 AND MS 22 Backward Direction Muting Condition 11 8000 to 8122 when MS 22 is the first switch to enable muting Timer for MaxMutingTime started MutingEnable AND NOT MS 11 AND NOT MS 12 AND NOT MS 21 AND R TRIG at MS 22 Muting Condition 12 8122 to 8112 when MS 21 is the second switch to enable muting MutingEnable AND NOT MS 11 AND NOT MS 12 AND R TRIG at MS 21 AND MS 22 Muting Condition 13 8112 to 8000 when MS 12 is the first switch to disable muting Timer for MaxMutingTime stopped MS 11 AND F_TRIG at MS 12 AND NOT MS 21 AND NOT MS 22 besBunnw 4s Illegal Muting Sequences State 8000 NOT MutingEnable AND R_TRIG at MS 11 OR NOT MutingEnable AND R TRIG at MS 22 OR MS 12 OR MS 21 OR MS 11 AND MS 22 State 8011 NOT MutingEnable OR NOT MS 11 OR MS 21 OR MS 22 State 8012 R_TRIG at M8 11 OR R TRIG at M8 12 OR F TRIG at MS 22 State 8122 NOT MutingEnable OR
226. s Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks State Transition Diagram NOT Activate Idle a 0000 9 Activate Ready FALSE Ready TRUE S_GuardSwitch1 AND oo AND NOT S_GuafdSwitch1 OR Sear Swie E N NOT S_GuardSwitch2 _GuardSwitcl NOT S_StartReset 2 ina Open Guard Request 8002 NOT S Gua dSwitch1 AND NOT S GuardSwitch2 NOT S_GuardSwitch1 NOT S GuardSwitch1 NOT S GuardSwitch2 OR NOT S GuardSwitch2 S Gu rdSwitch2 NOT S GuardSwitcht AND NOT S GuardSwitch2 Wait for GuardSwitch1 8014 3 DiscrepancyTime Discrepancytime DiscrepancyTirhe elapsed Error 1 C011 elapsed BunopuowpIeng 4S prog Ot S_GuardSwit h1 S_GuardSwitch2 NOT S AutoReset OT a id Res t AND NOT NOT S_GuardSwitch2 R TRIG at Reset NOT Reset S AuteReset R_TRIG at Reset NOT mr EU NOT S GuardSwitch S_GuardMonitoring FALSE S_GuardMonitoring TRUE Note Transitions to the Idle state from any other state are not shown for when Activate changes to FALSE How ever the transition to the Idle state has the highest priority 0 NX series Safety Control Unit Instructions Reference Manual Z931 4 57 4 Safety Function Blocks i Timing Charts Inputs Activate S_GuardSwitch1 S_GuardSwitch2 S_StartReset S_AutoReset Reset Discrepancy Timer Outputs Ready S_GuardMonitoring Error DiagCode Inputs Activate S_GuardSwitch1 S_GuardSwitch2 S_StartReset S_AutoReset
227. s Safety Control Unit Instructions Reference Manual Z931 19 20 Unit Versions The following information is provided in the notched area on the Unit Name Lot number and unit version Function Gives the lot number and unit version of the Unit DDMYYLI Lot number O Used by OMRON M gives the month 1 to 9 January to September X October Y November Z December 10 Unit version The decimal portion of the unit version is omitted It is provided in the Unit specifications i Confirming Unit Versions with the Sysmac Studio You can use the Unit Production Information on the Sysmac Studio to check the unit versions EtherCAT Coupler Unit and NX Units 1 Q N Double click EtherCAT under Configurations and Setup in the Multiview Explorer and then double click the EtherCAT Coupler Unit Or right click the EtherCAT Coupler Unit and select Edit from the menu The Edit Slave Terminal Configuration Tab Page is displayed You can also display the Edit Slave Terminal Configuration Tab Page with any of the following operations Double click EtherCAT under Configurations and Setup in the Multiview Explorer right click the EtherCAT Coupler Unit in the EtherCAT Configuration Edit Tab Page and select Edit Slave Terminal Configuration Or select the EtherCAT Coupler Unit on the EtherCAT Configuration Edit Tab Page click the Edit Slave Terminal Configuration Button Go online Right click the EtherCAT Coupler
228. s being started after MutingSwitch 12 changed to TRUE Monitoring is active for DiscTime11 12 Monitor ing is active for MaxMutingTime Ready TRUE S AOPD Out TRUE S MutingActive FALSE Error FALSE 8012 Muting Forward Active 1 A forward muting sequence is in operation for one of the following Achange to TRUE was detected in the second muting switch of MutingSwitch11 and MutingSwitch12 Both MutingSwitch11 and MutingSwitch12 were started in the same cycle Monitoring for DiscTime11_12 was stopped Monitoring for MaxMu tingTime is started after a transition directly from state 8000 Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8014 Muting Forward Step 1 A forward muting sequence is in operation MutingSwitch21 oper ates as the first muting stop switch Monitoring for DiscTime21_22 is started Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8314 Muting Forward Step 2 A forward muting sequence is in operation MutingSwitch22 oper ates as the first muting stop switch Monitoring for DiscTime21_22 is started Ready TRUE S_AOPD_Out TRUE S_MutingActive TRUE Error FALSE 8021 NX series Safety Control Unit Instructions Reference Manual Z931 Muting Forward Active 2 A forward muting sequence is still in operation Both MutingSwitch21 and MutingSwitch22 are active so monitoring for DiscTime21_22 was stopped Ready T
229. s detected for EDM1 and Reset or equiva lent signals were detected during EDM Error 21 status Both Reset and EDM1 changed to TRUE at the same time Ready TRUE S_EDM_Out FALSE Error TRUE NX series Safety Control Unit Instructions Reference Manual Z931 4 19 Waa 4s 4 Safety Function Blocks DiagCode hexa decimal C051 Status name Reset Error 32 Status description and output results An undetected change to TRUE was detected for EDM2 and Reset or equiva lent signals were detected during EDM Error 22 status Both Reset and EDM2 changed to TRUE at the same time Ready TRUE S EDM Out FALSE Error TRUE C061 Reset Error 33 An undetected change to TRUE was detected for EDM1 EDM2 and Reset or equivalent signals were detected during EDM Error 23 status Reset EDM1 and EDM2 changed to TRUE at the same time Ready TRUE S EDM Out FALSE Error TRUE C071 Reset Error 41 When EDM Error 31 status was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S_EDM_Out FALSE Error TRUE C081 Reset Error 42 When EDM Error 32 status was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S EDM Out FALSE Error TRUE C091 Reset Error 43 When EDM Error 33 status was entered an undetected change to TRUE in the Reset input was detected Ready TRUE S EDM Out FALSE Error TRUE C010 ED
230. set input was detected Ready TRUE S_EnableSwitchOut FALSE Error TRUE C010 Operation Error 1 The enable switch was not set in position 1 when S SafetyActive was started Ready TRUE S_EnableSwitchOut FALSE Error TRUE C020 Operation Error 2 The enable switch was set in position 1 after C010 Ready TRUE S_EnableSwitchOut FALSE Error TRUE C030 Operation Error 3 The enable switch was set in position 2 from position 3 Ready TRUE S_EnableSwitchOut FALSE Error TRUE C040 Operation Error 4 The enable switch was not set in position 2 after C030 Ready TRUE S EnableSwitchOut FALSE Error TRUE 4 34 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks e FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results 0000 Idle The FB is disabled default Ready FALSE S EnableSwitchOut FALSE Error FALSE 8004 Basic Operation Mode Safe operation mode is OFF Ready TRUE S EnableSwitchOut FALSE Error FALSE 8005 Safe Operation Mode Safe operation mode is ON Ready TRUE S EnableSwitchOut FALSE Error FALSE 8006 Position 1 Safe operation mode is ON and the enable switch is in position 1 Ready TRUE S EnableSwitchOut FALSE Error FALSE 8007 Position 3 Safe operation mode is ON and the enable switch is in position 3 Ready TRUE m S EnableSwitchOut FALSE a Error FALSE e 8000
231. status NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks In FB descriptions the startup state is the Idle state This state changes to an operating state only after entering the Init state You can change Activate to FALSE to enter the Idle state from any other state If Activate is FALSE operation 0 has the highest priority These transitions are not shown on the state transition diagrams They are described in the footnotes for individual state transition diagrams The output results are not given in the state transition diagrams The status description and output results of a FB are given in FB specific Error Codes and FB specific State Codes No Error on page 4 7 e FB specific Error Codes DiagCode hexadecimal Cxxx e FB specific State Codes No Error DiagCode hexadecimal Status name Status description and output results Ready TRUE Safety output variables FALSE Error TRUE Status description and output results 0000 Idle Ready FALSE Safety output variables FALSE Error FALSE 8001 Init Ready TRUE Safety output variables FALSE Error FALSE 8xxx All states of operation mode where safety output vari Ready TRUE able is FALSE Safety output variable FALSE Error FALSE 8000 All states of operation mode where safety output vari Ready TRUE able is TRUE NX series Safety Control Unit Instructions Reference Manual Z931
232. t parameters to the FB include four muting sensor signals MutingSwitch11 to MutingSwitch22 and an OSSD signal from a photoelectric protection device S_AOPD_In Activate the S_StartReset input only when you can ensure that no hazardous state will occur as the result of starting the Safety CPU Unit e SF_MutingSeq Instruction Application Example for Forward Entry with Four Sensors Order Diagram Description 1 Muting mode is enabled when the passage of Transmitter a workpiece turns ON MutingSwitch11 gt MS_11 and then MutingSwitch12 MS_12 L1 L1 T 11 a 12 mcs mor S22 Md MS_21 MS_22 2 gt gt gt Muting mode is enabled as long as Transmitter ee BERCEA MutingSwitch11 MS 11 and Zone MutingSwitch12 MS_12 remain ON due to gt the workpiece This allows the workpiece to O pass through the light curtain without stop ee 11 i 12 Receiver MS 21 MS 22 iver MS 21 MS 22 12222 ping the machine 3 OOO L MutingSwitch21 MS 21 and Transmitter BERCEA MutingSwitch22 MS_22 must turn ON Zone before MutingSwitch11 MS_11 and MutingSwitch12 MS_12 turn OFF This O L1 ensures that muting mode remains ON om 11 ta 12 Receiver MS_21 MS_22 EHEHE MS_21 MS_22 4 Muting mode is ended if only MutingSwitch22 Transmitter o E EH 0O MS 11 MS 12 Receiver MS 21 MS 22 MS 22 is ON due to the workpiece NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Block
233. tant or a variable It is a command from the control system to enable starting muting as required in the machine cycle You can change this signal to OFF after muting starts FALSE Disables muting TRUE Enables starting muting S_StartReset SAFEBOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 Reset BOOL TRUE or FALSE FALSE Refer to Safety FB Common Input Variables on page 4 2 1 You must connect a SAFEBOOL variable not a BOOL variable depending on safety requirements I Output Variables besBunnw 4s Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S AOPD Out SAFEBOOL TRUE or FALSE FALSE This safety related output gives the status of the protec tion devices that is being muted FALSE Something has entered the AOPD protected area and muting is disabled TRUE Nothing has entered the AOPD protected area and muting is enabled S MutingActive SAFEBOOL TRUE or FALSE FALSE Gives the muting status FALSE Muting is disabled TRUE Muting is enabled Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 1620000 Refer to Safety FB Common Output Variables on page code 4 4 Vi Precautions for Correct Use This FB does not detect short circuits in muting sensor signals or errors in the function applica tions th
234. tate are not shown for when Activate changes to FALSE However the transition to the Idle state has the highest priority 0 2 Astate transition to Error Muting sequence priority 1 Error Timer priority 2 Safety Demand AOPD priority 3 or Error Muting lamp priority 4 in the muting substates has higher priority than a state tran sition to muting substates with priority 5 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks E Timing Charts SF_MutingSeq Instruction Timing Chart When S_StartReset TRUE Activate o A S AOPD In MutingSwitch1 1 MutingSwitch12 MutingSwitch21 MutingSwitch22 S MutingActive i S_AOPD_Out besBunny 4S DiagCode 0000 8000 8011 8012 8000 NX series Safety Control Unit Instructions Reference Manual Z931 4 95 4 Safety Function Blocks fl Instruction Execution Errors e Error Detected The FB detects the following errors MutingSwitch11 MutingSwitch12 MutingSwitch21 and MutingSwitch22 operated in an incorrect order A muting sequence started without being enabled by MutingEnable A muting lamp failure was indicated S MutingLamp FALSE An undetected change to TRUE in the Reset input was detected in state 8001 or 8003 MaxMuting Time is set to less than T 0s or more than T 10min e Muting S MutingActive TRUE exceeded MaxMuting Time maximum muting time Operation for Errors When an error oc
235. ter a building error will occur Boolean Bit strings Integers Durations Ww o wo o 0 g 7 5 7 o 2 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m w i 2 E g Z 9 2 5 O 3 z z m e 2 m o In OK OK Out OK OK Function This function converts DINT data n to INT data Out Additional Information To convert INT data to DINT data refer to INT TO DINT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal f the input value is not DINT 32768 to DINT 32767 a cast error will occur and the program will stop 2 40 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions INT_TO_DINT This function converts an INT variable to a DINT variable Instruction Name FB FUN Graphic expression INT_TO_DINT E INT to INT TO DINT Variables Default Name WO Description Validrange In Data to con Input
236. tes certain third party software The license and copyright information associated with this software is available at http www fa omron co jp nj info e 18 NX series Safety Control Unit Instructions Reference Manual Z931 Unit Versions Unit Versions This section describes the notation that is used for unit versions the confirmation method for unit ver sions and the relationship between unit versions and Sysmac Studio versions Unit Versions A unit version has been introduced to manage the Units in the NX Series according to differences in functionality accompanying Unit upgrades I Notation of Unit Versions on Products The unit version is given with the Unit specifications on the side of the Unit or in the notched area Notched area Unit specifications r q r 4 q LOT No DDMYYO y 4 Ver 1 01 SSeS ee ee J t J Lot number Unit version The following information is provided in the Unit specifications on the Unit Name Function Unit model number Gives the model of the Unit Unit version Gives the unit version of the Unit Lot number Gives the lot number of the Unit DDMYYLI Lot number O Used by OMRON M gives the month 1 to 9 January to September X October Y November Z December NX serie
237. ther a safety data type variable or a standard data type variable for the input terminal If the input value is not DINTZO to DINT 255 a cast error will occur and the program will stop NX series Safety Control Unit Instructions Reference Manual Z931 2 31 suononijsu UOISISAUO d L eyeq 3148 OL LNIG 2 Standard Functions DINT_TO_DWORD This function converts a DINT variable to a DWORD variable Instruction ES Graphic expression DINT_TO_DWORD ERI DINT to Variables Default Name WO Description Validrange Data to con Input Data to con DINT 2147483648 to vert vert 2147483647 Out Conversion Output Conversion DWORD 16 00000000 DWORD 16 00000000 result result to FFFFFFFF If you omit an input or output parameter a building error will occur DINTZO Boolean Bit strings Integers Durations Ww o 0 n n g n 5 o o 2 J gt lt gt 3 gt sz gt 5 gt gt 3 gt o T T E T o T T E T m UT r m m m m m m m m py D a E g z ie a 2 5 O 3 z z m e E m o In OK OK Out OK OK Function This function converts DINT data n to DWORD data Out Example When Value of n Is Positive DINT 0 to DINT 2147483647 The value of Out is DWORD 16 00000000 to DWORD 16 7FFFFFFF according to the value of In DINT 0 to DINT 2147483647 Example When Value of n Is Negative DINTZ 2147483648 to DINTZ 1 If the value of In
238. tingPar Instruction Application Example for Forward Entry with Four Sensors Order Diagram Description MS 11 Transmitter MS 21 Mung moas 1s enabled a Danger j ze es z O El ay S_MutingActive TRUE when the pas ES gt i sage of a workpiece turns ON MutingSwitch11 MS_11 and E L1 MS 12 Receiver MS 22 MutingSwitch12 MS 12 within the time AA set by DiscTime11_ 12 2 Muting mode is enabled as long as m TISSUE ia Danger Mn uid MS 11 and i oon MutingSwitch12 MS_12 remain ON El ri due to the workpiece This allows the MS 12 Receiver MS 22 workpiece to pass through the light cur B tain without stopping the machine 3 usat T Tte MS 21 ETO MutingSwitch21 MS_21 and 2 n u mite Muting Switch22 MS 22 must turn ON gt before MutingSwitch11 MS_11 and O El MutingSwitch12 MS 12 turn OFF This MS 12 Receiver Ms 22 LOO ensures that muting mode remains ON o The discrepancy time between MutingSwitch21 and MutingSwitch22 is monitored for the time that is set in DiscTime21_22 4 MS 44 T zi E Muting mode is ended if only B co B MutingSwitch22 MS 22 is ON Muting i gt mode is ended if MutingSwitch21 MS_21 or MutingSwitch22 MS_22 Oo E ques E MS 12 Receiver MS 22 turns OFF due to the workpiece The ec maximum time that the muting mode is enabled is set by MaxMutingTime NX series Safety Control Unit Instructions Reference Manual Z931 State Transition Di
239. tion Name FB FUN Graphic expression INT_TO_BOOL Convert INT to FUN Variables Name WO Description Validrange Default Data to con Input Data to con INTZ 32768 to 32767 vert vert Out Conversion Output Conversion TRUE or FALSE FALSE result result If you omit an input or output parameter a building error will occur INTO Boolean Bit strings Integers Durations Ww o wo g n 5 n o 0 J o 2 A 3 ra gt Z gt gt gt o T T E T o T T E T m UT r m m m m m m m m py w E a g z ie J 2 5 O 3 z z S l o In OK OK Out OK OK Function This function converts INT data n to BOOL data Out If the value of n is INTZO the value of Out is FALSE If the value of In is INT 32768 to INTZ 1 or INT 1 to INT 32767 i e not INT 0 the value of Out is TRUE Additional Information To convert BOOL data to INT data refer to BOOL TO INT Precautions for Correct Use The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur f you set a safety data type variable for the output terminal set a safety data type variable for the input terminal as well f you set a standard data type variable for the output terminal you can set either a safety data type variable or a standard data type variable for the input terminal f the
240. to InN the addition result will be the value that can be expressed by the number of bits in the data type of the addition result Durations Of the sum of n1 to InN the addition result will be the value that can be expressed with DWORD data 1 For example if the value of n1 is INT 32767 and the value of n2 is INT 3 the addition result will be 32770 If an INT variable is set for the output the value of the addition result will be the value that can be expressed with lower 16 bits of the sum 32 770 i e 32 766 If a DINT variable is set for the output the addition result is DINT 32770 2 If the result exceeds the valid range of DINT data the result will be the value that can be expressed with the lower 32 bits 3 For example if the value of n7 is TIME 49d17h2m47s295ms and the value of n2 is TIME 5ms the value of the addition result is TIME 49d17h2m47s30ms However the maximum value of TIME is the same as for DWORD 4294967295 so the addition result will be the value that can be expressed with 32 bits i e TIME 4ms NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The data types of Inf to InN and Out can be different If they are different calculations are performed with the data type that includes the range of all of the data types For example if nO is INT data and In1 is DINT data calculations are performed with DINT data Therefore
241. truction SF_MutingPar Variables Name Parallel Muting FB FB FUN BOOL SAFEBOOL BOOL BOOL BOOL BOOL SAFEBOOL TIME TIME TIME BOOL SAFEBOOL BOOL Graphic expression SF_MutingPar Activate BOOL S_AOPD_In SAFEBOOL MutingSwitch11 SAFEBOOL MutingSwitch12 BOOL MutingSwitch21 WORD MutingSwitch22 S_MutingLamp DiscTime11_12 DiscTime21_22 MaxMutingTime MutingEnable S_StratReset Reset i Input Variables Variable Activate Data type BOOL Valid range TRUE or FALSE Default FALSE Description Refer to Safety FB Common Input Variables on page 4 2 S AOPD In SAFEBOOL TRUE or FALSE FALSE This is the OSSD safety output signal from the AOPD active optoelectronic protective device FALSE Something entered the protected area TRUE Nothing entered the protected area MutingSwitch 11 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 11 FALSE Muting sensor 11 is not operating TRUE A workpiece activated muting sensor 11 MutingSwitch12 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 12 FALSE Muting sensor 12 is not operating TRUE A workpiece activated muting sensor 12 MutingSwitch21 BOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 21 FALSE Muting sensor 21 is not operating TRUE A workpiece activated muting sensor 21 MutingSwitch22 BOO
242. ucts by Buyer must be approved in writing by Omron before shipment Omron Companies shall not be liable for the suitability or unsuitability or the results from the use of Products in combi nation with any electrical or electronic components circuits system assemblies or any other materi als or substances or environments Any advice recommendations or information given orally or in writing are not to be construed as an amendment or addition to the above warranty See http www omron com global or contact your Omron representative for published information i Limitation on Liability Etc OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL INDIRECT INCIDENTAL OR CON SEQUENTIAL DAMAGES LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS WHETHER SUCH CLAIM IS BASED IN CONTRACT WARRANTY NEGLIGENCE OR STRICT LIABILITY Further in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted NX series Safety Control Unit Instructions Reference Manual Z931 Terms and Conditions Agreement Application Considerations i Suitability of Use Omron Companies shall not be responsible for conformity with any standards codes or regulations which apply to the combination of the Product in the Buyer s application or use of the Product At Buyer s request Omron will provide applicable third party certification documents identifying ratings and limit
243. ues that they had just before the RETURN instruction was executed 2 8 NX series Safety Control Unit Instructions Reference Manual Z931 Data type conversion Type Data Type Conversion Instructions Instruction Name Description Page Boolean to BOOL_TO_INT Convert Converts a BOOL variable P 2 12 integer BOOL to INT to an INT variable BOOL_TO_DINT Convert Converts a BOOL variable P 2 13 BOOL to to a DINT variable DINT Boolean to BOOL_TO_TIME Convert Converts a BOOL variable P 2 14 duration BOOL to to a TIME variable TIME Boolean to bit BOOL TO WORD Convert Converts a BOOL variable P 2 15 string BOOL to to a WORD variable WORD NX series Safety Control Unit Instructions Reference Manual Z931 2 9 2 Standard Functions Data type conversion Type Instruction Name Description Page Bit string to inte BYTE_TO_INT Convert Converts a BYTE variable to P 2 16 ger BYTE to INT an INT variable BYTE_TO_DINT Convert Converts a BYTE variable to P 2 17 BYTE to a DINT variable DINT WORD_TO_INT Convert Converts a WORD variable P 2 18 WORD to to an INT variable INT WORD_TO_DINT Convert Converts a WORD variable P 2 20 WORD to to a DINT variable DINT DWORD_TO_DINT Convert Converts a DWORD vari P 2 21 DWORD to able to a DINT variable DINT Bit string to BYTE_TO_TIME Convert Converts a BYTE variable to P 2 23
244. uivalentOut FALSE Error FALSE 8001 Init The FB detected an activate signal and the FB is active Ready TRUE S EquivalentOut FALSE Error FALSE 8000 Safety Output Enabled An input changed to TRUE in Equivalent Mode Ready TRUE S EquivalentOut TRUE Error FALSE 4 40 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8004 Wait for Channel B S_ChannelA changed to TRUE the discrepancy time timer started operation and the FB is waiting for S_ChannelB to change to TRUE Ready TRUE S EquivalentOut FALSE Error FALSE 8014 Wait for Channel A S_ChannelB changed to TRUE the discrepancy time timer started operation and the FB is waiting for S_ChannelA to change to TRUE Ready TRUE S EquivalentOut FALSE Error FALSE 8005 From Active Wait One of the channels changed to FALSE the discrepancy time timer started operation and the FB is waiting for the other channel to change to FALSE Ready TRUE S EquivalentOut FALSE Error FALSE juejeamb3 js NX series Safety Control Unit Instructions Reference Manual Z931 4 41 4 Safety Function Blocks SF ESPE This safety FB monitors electro sensitive protective equipment ESPE ESPE includes light curtains laser scanners etc Instruction Name FB FUN Graphic expression SF_ESPE El
245. ult result If you omit an input or output parameter a building error will occur An error will not occur if the output terminal is not used or if it is connected to an input terminal on the next instruction In1 or In2 Boolean Bit strings Integers Durations Ww eo U 7 Z o e o z o og o J e Slats tel els s le lela E E m m m a m o m m E m m m w 0 lt g 9 z z d 8 E S 5 a 3 5 F m o z o In1orin2 OK OK OK OK OK OK OK OK OK OK OK OK OK OK Out OK OK Function This function determines if the values of two variables In and n2 are equivalent If they are equivalent comparison result Out changes to TRUE Otherwise the value of Out is FALSE Precautions for Correct Use You can compare n1 and n2 even if they have different data types such as a safety data type and a standard data type as long as the notations and sizes of the data types are the same You cannot compare data with data types that have different notations or sizes such as WORD and INT You can compare integer data such as INT data with SAFEINT data and DINT data with SAFEDINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If you set a safety data type variable for the output terminal set a safety data type variable for the two input terminals as well If you set a standard data type variable for the output ter
246. unctions Refer to the NX series Safety Control Unit User s Manual Cat No Z930 for the relationship between the unit versions of the CPU Units and the Sysmac Studio versions and for the functions that are sup ported by each unit version Unit Version Notation In this User s Manual unit versions are specified as shown in the following table Unit version in Unit specifications N ion in thi l R k on the product otation in this manua emarks Ver 1 0 or later Unit version 1 0 or later Unless unit versions are specified the infor mation in this manual applies to all unit ver sions NX series Safety Control Unit Instructions Reference Manual Z931 21 Related Manuals Related Manuals The following manuals are related Use these manuals for reference Manual name Cat No Model numbers Application Description NX series Safety Con Z931 NX SLLILILILI Learning about the The instructions for the Safety CPU Unit are described trol Unit Instructions specifications of When programming use this manual together with the Reference Manual instructions for the NX series Safety Control Unit User s Manual Cat No Safety CPU Unit Z930 NX series Safety Con Z930 NX SLLILILILI Learning how to use The hardware setup methods and functions of the trol Unit User s Man NX SILILILILI NX series Safety NX series Safety Control Unit are described ual NX SOLILILILI Control Units Sysmac Studio Ver W504 SYSMAC Learning
247. unter value each time the counter input signal is received e Use the SF CTUD instruction to create a counter that is both incremented and decremented 3 6 NX series Safety Control Unit Instructions Reference Manual Z931 SF_CTUD 3 Safety Standard Function Blocks This FB creates an up down counter that operates according to an up counter input and a down coun ter input Instruction Name SF_CTUD Up down Counter Variables i Input Variables FB FUN FB Graphic expression SF_CTUD 9 ano as Variable Name Data type Valid range Default Description CU Up counter input BOOL TRUE or FALSE FALSE Up counter input CD Down counter input BOOL TRUE or FALSE FALSE Down counter input RESET Reset signal BOOL TRUE or FALSE FALSE TRUE Reset CV to 0 LOAD Load signal BOOL TRUE or FALSE FALSE TRUE Set CV to PV PV Preset value SAFEINT 0 to 32767 0 This is the count up value for an up counter or the initial value for a down counter I Output Variables Variable Name Data type Valid range Default Description QU Up counter output SAFEBOOL TRUE or FALSE FALSE TRUE CV is greater than or equal to PV FALSE CV is less than PV QD Down counter out SAFEBOOL TRUE or FALSE FALSE TRUE CV is 0 or lower put FALSE CVis 1 or higher CV Counter value SAFEINT 0 to 32767 0 Counter present value Function This FB creates an up down counter that operates
248. ur if the output terminal is not used or if it is connected to an input terminal on the next instruction Boolean Bit strings Integers Durations 0 7 0 o U z o o o J o O gt lt gt 3 gt Z gt Z gt gt gt gt O UT T E T Oo T T T m T r m m m 9 m m m m m m 5 28 2 z S gt 2 o x z z m a E 4 m o In1 OK OK OK OK OK OK In2 OK OK OK OK Out OK OK OK OK OK OK Function This function divides dividend n1 by divisor n2 and outputs the result to output value Out Any remainder is truncated Additional Information You cannot include more than one duration in the values to divide To divide a duration set a duration for Inf and Out and set an integer for n2 Do not allow the divisor to equal 0 If the divisor is 0 a Division by Zero error will occur and the program will stop 2 62 NX series Safety Control Unit Instructions Reference Manual Z931 2 Standard Functions Precautions for Correct Use The data types of In1 In2 and Out can be different If they are different calculations are performed with the data type that includes the range of all of the data types For example if In is INT data and In2 is DINT data calculations are performed with DINT data Therefore division result Out will be DINT data The input condition depends on whether the output is safety data or standard data If the condition is not met a building error will occur If y
249. utput signal from the AOPD active optoelectronic protective device FALSE Something entered the protected area TRUE Nothing entered the protected area S MutingSwitch SAFEBOOL TRUE or FALSE FALSE A variable lt is the status of muting sensor 11 11 FALSE Muting sensor 11 is not operating TRUE A workpiece activated muting sensor 11 S MutingSwitch SAFEBOOL TRUE or FALSE FALSE A variable It is the status of muting sensor 12 12 FALSE Muting sensor 12 is not operating TRUE A workpiece activated muting sensor 12 S MutingLamp SAFEBOOL TRUE or FALSE FALSE A constant or a variable It is the muting lamp status input e g filament broken status FALSE Muting lamp failure TRUE Muting lamp is normal DiscTimeEntry TIME TROs to T 4s T Os A constant It inputs the maximum discrepancy time between MutingSwitch11 and MutingSwitch1 2 MaxMutingTime TIME T 0s to T 10min T 0s A constant It inputs the maximum time until completion of the muting sequence The timer starts when the muting sensor first operates NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Variable Data type Valid range Default Description MutingEnable BOOL TRUE or FALSE FALSE A constant or a variable It is a command from the control system to enable starting muting as required in the machine cycle You can change this signal to OFF after muting starts FALSE Disables muting
250. valent contacts FALSE Button 2 is OFF TRUE Button 2 is ON i Output Variables Variable Data type Valid range Default Description Ready BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 S TwoHandOut SAFEBOOL TRUE or FALSE FALSE The safety output signal FALSE A button is not being operated or correct two hand operation was not performed TRUE The S_Button1 and S_Button2 inputs changed to TRUE within 500 ms and there is no error Correct two hand operation was performed Error BOOL TRUE or FALSE FALSE Refer to Safety FB Common Output Variables on page 4 4 DiagCode WORD Depends on state 16 0000 Refer to Safety FB Common Output Variables on page code 4 4 4 126 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks Function This FB provides a type Ill two hand control function as defined in ISO 13851 EN 574 If S_Button1 and S Button2 are set to TRUE in the correct order within 500 ms the S TwoHandOut output is also set to TRUE This FB also controls releasing of both buttons before it sets the S TwoHandOut output to TRUE again i State Transition Diagram NOT Activate Activate Ready FALSE Ready TRUE B1 OR B2 Error 1 C001 B1 Buttons NOT B1 OR B2 Released II19d ouODpueHom 4S NOTIB1 _ ANDIB2 Timerelapsed NOT B2 B1 AND B2 S_TwoHandOut TRUE B1 S_Button1 B2 S_Button2
251. variable to P 2 34 DINT to a WORD variable WORD INT_TO_BYTE Convert INT Converts an INT variable to P 2 35 to BYTE a BYTE variable INT_TO_DWORD Convert INT Converts an INT variable to P 2 36 to DWORD a DWORD variable INT_TO_WORD Convert INT Converts an INT variable to P 2 38 to WORD a WORD variable Integer to integer DINT_TO_INT Convert Converts a DINT variable to P 2 40 DINT to INT an INT variable INT_TO_DINT Convert INT Converts an INT variable to P 2 41 to DINT a DINT variable Integer to DINT_TO_TIME Convert Converts a DINT variable to P 2 42 duration DINT to a TIME variable TIME INT TO TIME Convert INT Converts an INT variable to P 2 43 to TIME a TIME variable Duration to TIME TO BOOL Convert Converts a TIME variable to P 2 44 Boolean TIME to a BOOL variable BOOL Duration to bit TIME TO BYTE Convert Converts a TIME variable to P 2 45 string TIME to a BYTE variable BYTE TIME TO DWORD Convert Converts a TIME variable to P 2 46 TIME to a DWORD variable DWORD TIME TO WORD Convert Converts a TIME variable to P 2 47 TIME to a WORD variable WORD Duration to TIME TO DINT Convert Converts a TIME variable to P 2 48 integer TIME to a DINT variable DINT TIME TO INT Convert Converts a TIME variable to P 2 49 TIME to INT an INT variable Bit string to WORD_TO_BOOL Convert Converts a WORD variable P 2 50 Boolean WORD to to a BOOL variable BOOL NX series Safety Control Unit Instructions Reference Manual
252. witches simultaneously reset muting or when MS 11 and MS 12 are consecutively reset Timer for MaxMutingTime stopped NOT MS 11 OR NOT MS 12 Illegal Muting Sequences State 8000 R_TRIG at MS 11 AND MS 12 AND NOT R TRIG at MS 12 OR R_TRIG at MS 12 AND MS 11 AND NOT R TRIG at MS 11 OR MS 11 AND NOT R TRIG at MS 11 AND MS 12 o AND NOT R TRIG at MS 12 OR NOT MutingEnable AND R_TRIG at MS 11 OR NOT MutingEn gt able AND R_TRIG at MS_12 S State 8011 NOT MutingEnable OR NOT MS_11 2 State 8311 NOT MutingEnable OR NOT MS 12 be o State 8012 All possible transitions allowed NX series Safety Control Unit Instructions Reference Manual Z931 4 85 4 Safety Function Blocks Jj Timing Charts Activate S AOPD In S_MutingSwitch11 S MutingSwitch12 S AOPD Out S MutingActive Error DiagCode 10000 8000 8000 8011 8012 8012 8000 8000 8000 8000 8000 8000 8000 8000 S StartReset TRUE Reset FALSE and S MutingLamp TRUE Instruction Execution Errors e Error Detected The FB detects the following errors DiscTimeEntry is set to less than T 0s or more than T 4s MaxMutingTime is set to less than TZOs or more than T 10min The discrepancy time for the sensor pair S_MutingSwitch11 and S MutingSwitch12 exceeded the set value Muting S MutingActive TRUE exceeded MaxMutingTime maximum muting time The muting sensors S MutingSwitch11 and S MutingSwitch12 operated in an inco
253. woHandOut FALSE 8000 Buttons Actuated Both buttons were operated correctly The safety related output is active Ready TRUE Error FALSE S_TwoHandOut TRUE 8001 Init The FB is active but it is in the Init state Ready TRUE Error FALSE S TwoHandOut FALSE 8004 Buttons Released Neither of the buttons is being operated Ready TRUE Error FALSE S TwoHandOut FALSE 4 124 NX series Safety Control Unit Instructions Reference Manual Z931 4 Safety Function Blocks DiagCode hexadecimal Status name Status description and output results 8005 Button 1 Actuated Only Button1 is being operated Ready TRUE Error FALSE S TwoHandOut FALSE 8006 Button 2 Actuated Only Button2 is being operated Ready TRUE Error FALSE S TwoHandOut FALSE 8007 Button 2 Released The safety output was enabled and then disabled again After the safety output was disabled S Button and S Button2 did not both change to FALSE In this state S Button is TRUE and S Button2 is FALSE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE 8008 Button 1 Released The safety output was enabled and then disabled again After the safety output was disabled S Button and S Button2 did not both change to FALSE In this state S Button is FALSE and S Button2 is TRUE after the safety output is disabled Ready TRUE Error FALSE S TwoHandOut FALSE 8009 Locked Off The safety output w
254. y ODVA CIP CompoNet DeviceNet and EtherNet IP are trademarks of ODVA The SD and SDHC logos are trademarks of SD 3C LLC Sa Other company names and product names in this document are the trademarks or registered trademarks of their respective companies Introduction Introduction Thank you for purchasing Machine Automation Controller NX series Safety Control Units This manual contains information that is necessary to use the NX series Safety Control Units Please read this manual and make sure you understand the functionality and performance of the NX series Safety Control Units before you attempt to use them in a control system Keep this manual in a safe place where it will be available for reference during operation Intended Audience This manual is intended for the following personnel who must also have knowledge of electrical sys tems an electrical engineer or the equivalent Personnel in charge of introducing FA systems Personnel in charge of designing FA systems Personnel in charge of installing and maintaining FA systems Personnel in charge of managing FA systems and facilities Personnel with the qualifications authority and responsibility for providing safety at each phase of the lifecycle of the machine design installation operation maintenance and disposal Personnel with a knowledge of functional safety For programming this manual is intended for personnel who und
Download Pdf Manuals
Related Search
Related Contents
PresenceControlPRO_HF360 Manual de instrucciones Manuel d`utilisation 第14章 品質管理、環境への対応 le code maladie 取扱説明書 NEC MultiSync LCD1990FX, Silver 安全に関するご注意 KitchenAid KFDD500ESS Installation Guide Copyright © All rights reserved.
Failed to retrieve file