Home

Pro-Control Editor 4.0 User Manual - Pro

image

Contents

1. The above windows display the maximum input output points of an VO unit in the Flex Network system The number of input output points will vary depending on each I O unit model Use each unit within the range of its I O points beginning from 0 When using an input only I O unit use only input area of the window and when using an output only I O unit use only the output area When using a unit with inputs and out puts use both the input and output area I O Monitor when the VARIABLE TYPE is set to WORD The input data will be displayed in the input section if any Enter the necessary data in the output section via the ten key pad When using the GLC100 and GLC2300 Series touch the data entry field and a ten key keypad will appear After entering data touch the OUT key to output the data Data will be displayed in the decimal format GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series 170 MONITOR RET S Ne 1 INPUT IZD MONITOR No 4 RETURN INPUT O 0 65635 0 D 65535 OUTPUT 0 0 65535 OUT 0 6553 four oS 1 i 2 s jia 5 amp BE al o E 4 Pro Control Ver 4 0 User Manual Chapter 6 I O D
2. A e When the controller s logic program tags used to update the Dis IK play Processing feature and the logic program from an external I O as unit attempt to change the same variable at same time priority is determined by the timing e When writing data to the Read Area in the GLC be sure that data written from tag setup and data written from the controller s logic program do NOT overlap or conflict 5 4 Pro Control Ver 4 0 User Manual Chapter 5 LS Area Refresh Note When the Read Area is used efficiently and the GLC and N external communication device share data the GLC can be used as the external device s slave device which also allows the use of an FA type POP unit or an I O data collection unit Writes GLC Data GLC External TUTTI Communication 1 O Unit Device Reads External Communication Device Data hem LS Area Refresh Cautions Use the LS Area Refresh feature to control the system area using the controller feature or to view Read Data from an external communication device Digital Electronics Corporation recommends that you use the data send receive related Initialize area or the Operation Designation Change parameter settings to control the refreshing of data in this area rather than refreshing the data in addresses LS000 to LS0035 and LS2032 to LS2047 intermittently via the controller feature If the frequency of the LS Area s data refresh is increased the LS Area Refres
3. Real values need to be compared very carefully For example a calculation might result in 2 000000000001 which is greater than 2 wel LT Compare lt A Data LT B Data EN am A B The LT instruction passes power if A is less than B The combinations of valid variable data types for the LT instructions are as follows Integer Constant Integer Constant Real Constant Real Constant SP tes 5 Real values need to be compared very carefully For example a calculation might result in 1 99999999999 which is less than 2 Pro Control Ver 4 0 User Manual 4 31 Chapter 4 Instructions P NE GE Compare gt A Data GE B Data EN A B The GE instruction passes power if A is greater than or equal to B The combinations of valid data types for the GE instruction are as follows Integer Constant Integer Constant Real Constant Real Constant St Real values need to be compared very carefully For example N a calculation might result in 1 99999999999 which is not greater than or equal to 2 oye LE Compare lt A Data LE en 0 B Data i B The LE instruction passes power if A is less than or equal to B The combinations of valid data types for the LE instruction are as follows Integer Constant Integer Constant Real Constant Real Constant SP te Real values need to be compared very carefully For example a calculation might result in 2 000000000001 which is n
4. C 4 36 output bit Q turns ON and the elapsed time ET is reset to 0 The timer input bit IN turns OFF the timer starts timing TI turns ON and the timer output bit Q remains ON When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and the elapsed time stays fixed at preset time ET PT The timer input bit IN turns ON the timing bit TI remains OFF the timer output bit Q turns ON and the elapsed time ET is reset to 0 The timer input bit IN turns OFF the timer starts timing TI turns ON and the timer output bit Q remains ON Before the elapsed time ET equals the preset time PT the timer input bit IN turns ON and the timer stops timing TI turns OFF The timer output bit Q remains ON and the elapsed time ET is reset to 0 Pro Control Ver 4 0 User Manual Chapter 4 Instructions Yet TP Timer Pulse IN Timerstartingbit Variable PT Preset time oftimer 7 TF R Q Timeupflag PT ET ET Present value of timer When the timer input bit IN receives power one time the TP instruction turns ON the output bit Q for the duration of the preset time PT in milliseconds Operation Overview Special Variable Variable Type PresetValue PresentValue a Timeout Ting When power is passed to the timer starting bit IN the TP instruction starts and e Variable ET the elapsed time begins
5. IM Q Q Time up flag PT ET ET Present value oftimer When the timer input bit IN stops receiving power the TOF instruction adds the preset time PT in milliseconds and the timer output bit Q turns OFF Operating Overview Special Variable Variable Type Preset Value P resentValue a Tie eat Ting When power is passed to the timer starting bit IN the TOF instruction starts and e Variable ET the elapsed time is reset to zero e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns ON and the instruction passes power When the timer starting bit IN stops passing power to start the TOF instruction e Variable ET the elapsed time begins to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit remains ON When the elapsed time Variable ET increments and equals the preset time Variable PT e Variable ET the elapsed time stays fixed at the preset value e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF Pro Control Ver 4 0 User Manual 4 35 Chapter 4 Instructions Operating Example The following diagram is an example ofhigh voltage cabinet fans that are kept running for 1 minute 60 000ms after the high voltage turns OFF Power_Supply High_Voltage_Power_OFF TOF High_Voltage_Cabinet_Fans A The timer input bit IN turns ON the timing bit TI remains OFF the timer B
6. Previous Scan Start 1 Motor o NT Detected 5 2 A When the Start variable turns OFF the Motor variable turns ON B After one scan the Motor variable turns OFF C Since a negative transition contact of the Start variable was not detected the Motor variable remains OFF These examples apply when the scan detects the NT instruction 4 12 Pro Control Ver 4 0 User Manual Chapter 4 Instructions WR AND And AND EN DM A C B When the AND instruction is executed the bit in C turns ON if the corresponding bit in both A and B is ON Otherwise the bit in C is turned OFF A Operator B C IntegerA o 1 1 0 u i 1 0 0 ON ANG IntegerB 1 1 0 0 fae 000 1 OF There are three types of AND instruction 1 When none of the variables are in an array a simple 32 bit AND operation is performed 2 When A and C are arrays and B is not in an Integer array an AND operation is carried out for each element of A and B The result of each calculation is stored in the corresponding element in C Both A and C arrays must be the same size 3 When all three variables have arrays that are the same size an AND operation is performed on array A and array B The results are stored in array C The AND instruction always passes power The AND instruction can be performed with the following combinations of variable types PAB E OE Integer Array Integer Array Integer Array Integer Constant Integer Array
7. There are three types of XOR instruction 1 When both A and B are Integer variables a simple 32 bit XOR instruction is performed 2 When A and C are arrays and B is not in an Integer array an XOR operation is carried out for each element of A and B The result of each calculation is stored in the corresponding element in C Both A and C arrays must be the same size 3 When all three variables have arrays that are the same size an XOR operation is performed on array A and array B The results are stored in array C The XOR instruction always passes power The XOR instruction can be performed with the following combinations of variable types A 1 ss 1 Integer Integer Pro Control Ver 4 0 User Manual 4 15 Chapter 4 Instructions we NOT Bit Invert NOT EM DM A C When the NOT instruction is executed the bit in C turns ON if the corresponding bit in A is OFF The NOT instruction turns OFF the bit in C if the corresponding bit in A is ON A Operator C IntegerA O 1 1 0 7 1 1 0 0 There are two types of NOT instruction 1 When variable A is an Integer a simple 32 bit NOT operation is performed 2 When variable A is an array the NOT operation is performed on array A The result is stored in array C Both A and C arrays must be the same size The NOT instruction always passes power The NOT instruction can be performed with the following combinations of variable types ES ES I
8. 4 Press the START button to begin the communication check The currently connected I O unit s S No will be displayed in reverse color GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series COM CHECK SET RET Total Connected 1 0 units COMMUNICATION CHECK smr ven Connected No s are reverse color Total conected 1 0 units 3 4 Connected S No s are reverse color MEE 213 74 15 6 718 19 20 g 10 11 12 13 14 15 16 EE 17 18 19 20 21 22 123 24 25 76 27 28 79 80 3 32 52 33 34 35 36 37 38 39 40 60 ee 4 42 43 44 45 46 47 48 49 50 5 52 53 54 55 56 57158 59 60 61 6 B3 5 To return to the FLEX NETWORK MENU window press the RET button Pro Control Ver 4 0 User Manual 6 3 Chapter 6 I O Drivers To Select Error S No Display When the Error Code No 841 occurs while the logic program is being executed the S Nos of the I O units that have been excluded from the communication circuit and malfunctioning I O units will be checked See 6 4 3 Flex Network I F Unit Troubleshooting 1 Touch the CONTROLLER MENU window s FLEX NETWORK DRIVER selection The FLEX NETWORK DRIVER MENU will appear 2 Press the FLEX NETWORK DRIVER MENU s ERROR S NO DISPLAY The ERROR S NO DISPLAY window will appe
9. Setby Controller Read Only ON 50ms AQrnis 50ms OFF Note Ifa GLC unit s scan time exceeds 50ms Clock100ms clock N will not be guaranteed e If the Clock100ms clock reads in the internal clock 100ms at the beginning of each GLC scan an error will occur e Clock100ms is available only with the GLC 2000 Series unit Scan Time Every 30ms 30ms 30ms 30ms 30ms 30ms 30ms 30ms Scan Time 50m 50ms 50ms 50ms 50ms Internal Clock I eE 100ms wesma DL Lilo lol lofofi 1 1 1 l l m Clock100ms Clock 3 4 Pro Control Ver 4 0 User Manual Chapter 3 System Variables Day displays the Day data as set by the controller using two digits in BCD format Variable Type Integer Setby Controller Read Only k e Year Month Day and Time data are displayed using the fol re lowing system variables E g July 14 2001 at 6 19 a m Year Month Day Time System Variable j e Day is available only with the GLC2000 Series unit Ee ForceCount ForceCount stores the number of variables that are forced ON or OFF in the current ladder program Refer to the Pro Control Editor Operation Manual Section 4 4 Forcing Discrete ON OFF VariableType Integer Set by Controller Read Only The Data Watch List window indicates the five variables that are forced ON or OFF in the logic program 4 gt Data Watch List File E
10. Pressing the switch changes the screen by substituting 100 in the Screen Switch Moy EN DN Off 100 IN OUT Screen D 3 2 Pro Control Ver 4 0 User Manual Screen Chapter 3 System Variables wi System Variable Details This section describes each system variable in detail FAE AvgLogicTime AvgLogicTime stores the average amount of time in milliseconds that the controller uses in a single scan to read inputs execute logic and write outputs Every 64 scans this system variable updates the average logic time since its last calculation VariableType Integer AvgLogicTime Setby Controller Read Only wir AvgScanTime AvgScanTime stores the average amount of time in milliseconds that the controller uses in a single scan to read inputs execute logic write outputs and display processing Every 64 scans this system variable updates the average scan time since its last calcula tion Variable Type Integer Setby Controller Lec 1 AveScanTime we os Read Only yf Na f f KA amp amp lt i i N i i i 2 7 o amp amp o amp S f x N K Z s x un Ca Pro Control Ver 4 0 User Manual 3 3 Chapter 3 System Variables Kwesi HClock100ms Clock100ms generates clock in milliseconds Do not change the clock value since this is used for read in only An initial value is undefined Variable Type Discrete
11. Pro Control Ver 4 0 User Manual 4 5 Chapter 4 Instructions wei NC Normally Closed Variable H The NC instruction allows power to pass when the variable is OFF The following diagram is an example of the NC instruction s function Start Motor Hw o Start Motor A When the Start variable turns ON the Motor variable turns OFF B When the Start variable turns OFF the Motor variable turns ON 4 6 Pro Control Ver 4 0 User Manual Chapter 4 Instructions WEM OUT M Output Coil Variable y The OUT instruction is used to turn ON OFF the variables mapped to the VO or the Discrete variables in the internal memory Because OUT is a coil type output instruction and can be used only once per rung it should appear at the end of a rung When the variable mapped to the OUT instruction is retentive the following symbol is displayed in the logic program A The following diagram is an example of the OUT instruction s function Start Motor pn Start a Motor l 1 I 1 I A B A When the Start variable turns ON the Motor variable turns ON B When the Start variable turns OFF the Motor variable turns OFF Se The OUT instruction can be used only with non retentive vari N ables With retentive variables use the M Retention Coil instruction Pro Control Ver 4 0 User Manual 4 7 Chapter 4 Instructions wa NEG Negated Coil Variable O When the NEG instruct
12. The INC instruction always passes power The combinations of valid variable data types for the INC instruction are as follows ste Overflow is set if A increments from Ox7FFFFFFF to 0x80000000 See 3 2 19 Overflow Pro Control Ver 4 0 User Manual 4 29 Chapter 4 Instructions wel DEC Decrement A Data DEC JEM DM A When the DEC instruction is executed one 1 is subtracted from A and the result is then placed in A The DEC instruction always passes power Valid variable data types for the DEC instruction are as follows ee Overflow is set if A decrements from 0x80000000 to Ox7FFFFFFF See 3 2 19 Overflow 4 2 27 EQ Compare A Data EQ SEN ge B Data A B The EQ instruction passes power if A is equal to B The combinations of valid variable data types for the EQ instruction are as follows Integer Constant Integer Constant Real Constant Real Constant So Real values need to be compared very carefully For example N acalculation might result in 1 99999999999 which is not equal to 2 00000000000 4 30 Pro Control Ver 4 0 User Manual Chapter 4 Instructions wei GT Compare gt A Data GT B Data TJEN Mr A B The GT instruction passes power if A is greater than B The combinations of valid variable data types for the GT instruction are as follows Integer Constant Integer Constant Real Constant Real Constant SP te
13. Year is available only with the GLC2000 Series unit 3 10 Pro Control Ver 4 0 User Manual Chapter 3 System Variables WAL HFaultCode FaultCode identifies the most recent fault status A controller resets all these values to 0 VariableType Integer Set by Controller Read Only Type Co ooma o 1 Minor Overflow resulting from a mathematical operation or a Real w Integer conversion i require a system reboot to recover Reservedbythesysem S O 15 Mi Backup memory s logic program SRAM is damaged Logic program a inFEPROM will now be executed 1 An error occurs only in the GLC2000 Series unit Data Watch List ile Edit Mew Help FaultCode In the Data Watch List window FaultCode 7 is displayed This indicates that the scan time has exceeded the watchdog time Pro Control Ver 4 0 User Manual 3 11 Chapter 3 System Variables kwArs FaultRung FaultRung stores the rung number where a fault occurred FaultRung is set to 0 if there are no faults The following example shows when an error occurred at Rung 3 This error is caused by subtracting the Integer by 0 when DIV Instruction is executed This error remains until the next error occurs or the controller is reset VariableType Integer Set by Controller Read Only Switcht Output 2 4 Switchz Dh 4 END 53 PEND Data Watch List File Edit View Help FaultRung 3 IOFa
14. rear face to 0 Terminal numbers are duplicated 01 02 03 04 05 06 801 802 803 804 Pro Control Ver 4 0 User Manual 6 17 Chapter 6 I O Drivers 6 18 Initialization Errors C Eror Code Contents Somon The number of DIO units registered in the WLL file and the actual number of DIO units connected are different 822 M odule 0 does notexist DIO M odule 0 does notexist M odule 1 does notexist DIO M odule 1 does notexist Runtime Errors Correctthe number of connected DIO units Confirm thatthe DIO unitis securely connected to the GLC and correctthe DIO driver settings Confirm thatthe DIO unitis securely connected to the GLC and correctthe DIO driver settings C Enor Code Gontenis J Sowin M odule 0 read out data is incorrect After two successive read attempts the GLC has detected thatthe value of DIO M odule 0 is incorrect M odule 1 read out data is incorrect 841 After two successive read attempts the GLC has detected thatthe value of the DIO M odule 1 is incorrect M odule 0 outputdata is incorrect 842 Incorrect output data was detected by an internal loopback check from DIO M odule 0 M odule 1 outputdata is incorrect 843 Incorrect output data was detected by an internal loopback check from DIO M odule 1 Internal Errors Increase the time of the Inputsignal s ON period Increase the time of the Inputsignal s ON period Ensure thatthere are no no
15. 14 OU VRR SER RE SE REN BU ESSENER NENNT EL EEN EIE NER RER 3 14 3 223 BE AU IV OD ende 3 15 3 224 PeiccnlAllee eisen 3 15 3 223 PROG reaa KERN SEN RE NHREHNEETREDEETENRGNSFERHSPEENENEROESUFRRRD FAPRIRONEROFRN 3 15 2 20 ATAS Sal ee een 3 16 3 2 21 Watchdog Time ein 3 16 4 1 Instruction List nassen ech 4 1 4 2 Instruetion Details nenne anne ineRin au 4 5 42 1 NO Normally OD 4 5 4 2 2 NC Normally Closed ne 4 6 423 OQUT M Output Coil Een 4 7 424 NEG Negated COW kennen 4 8 4123 SEL Set EIN ee ae 4 9 42 6 RST Reset CH ee ieeddisn te 4 10 4 2 7 PT Positive Transition Contact aaa 4 11 42 8 INT Negative Transition Contact an anne 4 12 4 2 9 POND ADI ee eier 4 13 A2 TOVOR OD onene AE A TT ee 4 14 4 2 11 XOR Exclusive OR een 4 15 4212 NOT Bit TOVE eeun N E AEA 4 16 42 oS MOV Transfer onra a ee ee ee 4 16 4 2 14 BMOV Block Transfer eat nenn 4 18 4 2 15 RMOV Fill Tasten aan 4 19 4 2 16 ROL R tate Beil ser sarah 4 20 4 217 ROR ROU AUS Richten 4 21 412 18 SHLISHIT Leit een 4 22 42 19 SHR Shift RISD essen 4 23 42 20 ADD AdA Y ee 4 26 Pro Control Ver 4 0 User Manual 3 Preface 4 221 SUB CSAC rear 4 26 4 2 22 MUL Multiply eessen r E E EASE 4 27 4 2 23 DIV Divide ee 4 28 4 2 24 MOD Mod l s ae 4 29 4 2 25 INC neremeil ansehen 4 29 42 20 DEC Det Wehen siehe 4 30 4 2 27 BIP Compare Year 4 30 42 28 Gr mma ee ine 4 31 4229 LT Compare Tr ie R R RO E 4 31 4 230 GE Compare Feen dee de
16. 16 bits are available Refer to the GP PRO PB III Tag Reference Manual E Tag TIMER COUNTER Timer and Counter have a number of special variables Each special variable s type is set up individually Timer The following four special variables are used for the Timer instructions Special Variables Description Variable Type Preset Value Integer Current Value Integer Timer Output Bit Discrete Timer Measuring Bit Discrete By adding a period and a special variable name at the end of the variable name you can refer to the special variable E g TimerET For more information see 4 2 Instruction Details ste When a Timer variable is designated as non retentive the N special variable Timer PT remains retentive COUNTER The following seven special variables are used for Counter instructions Special Variables Description Variable Type Preset Value Integer Current Value Integer Counter Reset Discrete UP Counter Discrete UP Counter Output Discrete DOWN Counter Output Discrete Q Counter Output Discrete 2 4 Pro Control Ver 4 0 User Manual Chapter 2 Variables By adding a period and a special variable name at the end ofthe variable name you can refer to the special variable E g Counter CV For more information see 4 2 Instruction Details es e When a Counter variable is designated as non retentive So the special variable PV remains reten
17. 6 I O Drivers wa Flex Network I F Driver This section describes the Flex Network driver menus in the GLC unit s OFFLINE mode Prior to executing any Flex Network Driver menu instructions be sure to download the Flex Network driver from Pro Control Editor software in your PC Also for GLC 100 and GLC300 be sure to confirm that the Flex Network I F unit is attached to the back of your GLC unit The Flex Network I F unit is equipped with GLC2300 GLC2400 and GLC2600 To return to the GLC unit s OFFLINE mode refer to the GLC unit s user manual sold separately we Flex Network I F Unit Self Diagnosis Select FLEX NETWORK DRIVER in the GLC OFFLINE mode s CONTROLLER MENU The following FLEX NETWORK DRIVER MENU window will then appear To select communication check GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series MAIN INITIALIZE FlexNetwork MENU MAIN MENU COM CHECK CONTROLLER MEMU ERR 3 No DISPLAY Flex Network MENU 170 MONITOR 1 COMMUNICATION CHECK 2 ERR S No DISPLAY 3 1 0 MONITOR A When the logic program changes from the RUN mode to either the I OFFLINE or RESET mode the GLC or the I O signal will operate as Important follows regardless of the Output Hold setting Be sure to consider this when changing to either the OFFLINE or RESET mode gt GLC Condition RUN RUN Analog Output Output from Logic Output from Logic I O
18. Chapter 4 42 Instructions MATHEMATICAL OPERATION INSTRUCTIONS instruction Type Symbol Function WKK A and B gt C w Logical M utiply r n Normal Continuity A orB gt C Cam Logical Add Normal Continuity Exclusive A xor B gt C Logical Add Normal Continuity NOT n a A gt C BitNegation Normal Continuity MOVEMENT INSTRUCTIONS Transfer tie el Normal Continuity BMOV Block Transfer Normal Continuity FOV PN File Transfer Normal Continuity Rotate Left C Normal Continuity XKE Rotate Right gt ae C Normal Continuity ShitLeft C Normal Continuity 0 Shift Right C Normal Continuity N ni Pro Control Ver 4 0 User Manual Chapter 4 Instructions MATHEMATICAL INSTRUCTIONS Type Symbol Function SER A B gt C Normal Continuity Subtract EN DN A B gt C Normal Continuity A G AxB gt C Normal Continuity ui a ty Divide A B gt C Normal Contin Residual A B gt C Normal Continui Processing uity Increment en A loA Normal Continuity EN ON A A 1 A Normal Continuity E qual To When A B Continuity EI SEHEN WhenA gt B Continuity Less Than lt KX When A lt B Continuity EN R A B Decrement Type Subract Mutiply Peg EqualTo _ Less Than lt Greater Than or Equal To gt When A gt or B Continuity ep m Less Than or i u E qual To lt When A lt or B Continuity NE NotE qual lt gt When A
19. Integer Constant Integer Array Pro Control Ver 4 0 User Manual 4 13 Chapter 4 Instructions 4 14 IVANE OR Or EN DNI A C B When the OR instruction is executed the bit in C turns ON ifthe corresponding bit in A and or B is ON Otherwise the bit in C is turned OFF A Operator B C IntegerA O 1 1 0 pp 1100 Integer B Integer There are three types of OR instruction 1 When both A and B are Integer variables a simple 32 bit OR operation is performed 2 When A and C are arrays and B is not in an Integer array an OR operation is carried out for each element of A and B The result of each calculation is stored in the corresponding element in C Both A and C arrays must be the same size 3 When all three variables have arrays that are the same size an OR operation is performed on array A and array B The results are stored in array C The OR instruction always passes power The OR instruction can be performed with the following combinations of variable types PAB E O Integer Array Integer Array Integer Array Integer Constant Integer Array Integer Constant Integer Array Pro Control Ver 4 0 User Manual Chapter 4 Instructions wall XOR Exclusive OR XOR EN DM A C B When the XOR instruction is executed the bit in C turns ON ifthe corresponding bit in A or B is ON Otherwise the bit in C is turned OFF A Operator B C iIntegerA o 1 1 0 1 1 0 0
20. O Read and I O Write However the logic program is not executed so the output state does not change When a command is received the system switches to the appropriate state e The RESET instruction changes the program to the Loading condition e The Perform 1 Scan instruction performs the program once e The STOP instruction changes the program to the STOP condition e The Continue instruction changes the program to the Running condition I Mode used to implement the program executed by the controller on the Editor 2 Mode used to create a program Pro Control Ver 4 0 User Manual 1 3 Chapter 1 Controller Features RUN Mode AN IN a Important 1 4 RUN Mode uses the following steps Constant Scan Percent Scan RUN Mode Perform Logic Program END Processing Renew System Variables etc Scan Completed SCAN TIME ADJUSTMENT Scan Time Adjustment is performed every 64 scans The various types of adjustments are described below for Constant Scan Time and Percent Scan Time Constant Scan Time Mode GLC scan time AvgLogicTime x 100 50 Percent Scan Time Mode GLC scan time AvgLogicTime x 100 PercentAlloc MUAY For information about AvgLogicTime or PercentAlloc see Chapter 3 System Variables The GLC unit s ScanTime includes the following error Model Diference GLC100 Series approx 0 2 GLC300 Pelee approx 0 02 GLC2000 Series Pro Con
21. Signal Program No Analog Output Program No Analog Ouput The RESET mode s I O signal OFF timing is NOT fixed a Important 6 2 Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers Here the number of the Flex Network I O units that have been connected to the Flex Network I F units as well as the S Nos that have been connected to each I O unit will be checked Via the communication check operation the following items can be checked e currently connected I O units e currently malfunctioning I O units connection section Communication Check Procedure 1 Press the COMMUNICATION CHECK button and the COMMUNICATION CHECK SETTINGS window will appear 2 Set Communication Speed to either 6 or 12 Setting the communication speed faster may cause the unit to be easily influenced by noise Normally set this speed to 6Mbps GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series COM CHECK SETUP fexr COMMUNICATION CHECK SETUP NEXT CANCEL TRANSFER SPEED bps TRANSFER SPEED Mbps 6 12 When this test is performed all connected 1 0 unit S No s are reverse When this test is performed all color When wiring the 1 0 units be connected 1 0 unit S No s are reverse sure all 5 No s use original settings color When wiring the 1 0 units be and are unique sure all S No s use original settings and are unique 3 Press the NEXT button and the COMMUNICATION CHECK window will appear
22. be easily influenced by noise Normally set this speed to 6Mbps S No Station no Select S No from 1 to 63 Model Select from FN X16TS FN XYOSTS FN YOSRL FN Y16SK FN Y16SC FN ADO4AH and FN DA04AH e When using FN XY16SK and FN XY16SC select FN X16TS for input and FN Y16SKS or FN Y16SC for output e When using FN X32TS select FN XY16TS Designate the S No set by the I O unit for the lower 16 bits Designate the S No for the higher 16 bits by adding 1 to the S No set by the VO unit FN XY16SK FN XY16SC and FN X32TS can be used with the GLC2000 Series unit Variable type Select VARIABLE TYPE from DISCRETE and WORD Only the Word setting can be used for FN ADO4AH and FN DA04AH 3 Press the NEXT button and the following I O MONITOR window will appear This window s items will vary depending on the selected VARIABLE TYPE Pro Control Ver 4 0 User Manual 6 5 Chapter 6 I O Drivers 6 6 FN X16TS FN X Y08TS FN YO8RL FN Y16SK FN Y16SC FN XY16SK FN XY16SC FN X32TS gt I O Monitor when VARIABLE TYPE is set to DISCRETE The INPUT area terminal numbers where data has been entered will appear in reverse color Touching an Output area terminal number will output the data and reverse that number s color GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series 170 MONITOR INPUT 1 0 MONITOR RETURN INPUT OUTPUT
23. lt gt B Continuity TIMER AND COUNTER INSTRUCTIONS Function See 4 2 33 TON Timer ON Delay HAK IN je See 4 2 34 TOF Timer OFF Delay FT ET See 4 2 35 TP Timer Pulse UP Counter See 4 2 36 CTU UP Counter DOWN See 4 2 37 CTD DOWN Counter Counter UP DOWN See 4 2 38 CTUD UP DOWN Counter Counter Pro Control Ver 4 0 User Manual 4 3 Chapter 4 Instructions 44 CONVERT INSTRUCTIONS instruction Type Symbol Function BCD BCD A gt BCD conversion gt B Conversion Normal Continuity Binary EEK A Binary conversion B Conversion EN DN Normal Continuity B A gt E ncode conversion gt B Encode co Normal Continuity Decode A Decode conversion gt B Normal Continuity Return from Subroutine Repeats execution ofthe logic program between FOR and NEXT for the number of times assigned atA ie ENCO DECO FOR and NEXT are supported with GLC2000 Series units only Pro Control Ver 4 0 User Manual Chapter 4 Instructions wa Instruction Details This section describes each instruction in detail PAE NO Normally Open Variable The NO instruction allows power to pass when the variable is ON The following diagram is an example of the NO instruction s function Start Motor Start Motor A When the Start variable turns ON the Motor variable turns ON B When the Start variable turns OFF the Motor variable turns OFF
24. to 2048 variables can be used in GP PRO PBIII for Win dows Numerical calculation tracking of the repetitive information and logging of data are available using Real Arrays E g To record the temperature of solution every 24 hours in the Real array Solution_Temperature the structure of data is as follows The array consists of 24 Real type ele ments that correspond to each hour of a 24 hour day Temperature_S olution 20 Real element corresponds to the tem Temperature S oluton 21 perature data at 0 00 Temperature_S oluton 22 Temperature_S olution 23 ARRAY INDIRECT ACCESS Array elements n can be indirectly accessed by an Integer variable Numbers in the square brackets of suffixes such as X m B m and W m can also be indirectly accessed For example if a switch is pressed N in an INC instruction increments once every scan and 1 is added to 2 with an ADD instruction and then substituted in A N then 3 is assigned to A 1 If five scans are performed A 1 A 2 A 3 A 4 A 5 are substi tuted to 3 However this works out only the initial value of the N value stayed 0 Switch E INC 1 ADD 1 AIN Pro Control Ver 4 0 User Manual 2 9 Memo 2 10 Pro Control Ver 4 0 User Manual u System Variables The following table provides a list of the controller s predefined system variables lt a System Variable List System variables are used t
25. to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit turns ON as the instruction passes power When the elapsed time Variable ET equals the preset time Variable PT e Variable ET the elapsed time stays fixed at the preset value if the TP instruction is still receiving power e Variable ET the elapsed time resets immediately to zero if the instruction stops receiving power e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF When the timer starting bit IN stops passing power to start the TP instruction the elapsed time Variable ET is reset to zero and the timer output bit Variable Q turns OFF only if it has already reached the value of the preset time Variable PT Other wise it continues timing and the timer output bit Variable Q remains ON Pro Control Ver 4 0 User Manual 4 37 Chapter 4 Instructions 4 38 Operating Example The following diagram is an example of a lamp that lights up for three seconds when the switch is pressed Light_Up_3 _Seconds Switch TP Lamp A The timer input bit IN turns ON the timer starts timing TI turns ON and the timer output bit Q turns ON B When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and the elapsed time stays fixed at the preset time ET PT The timer input bit IN
26. turns OFF and the elapsed time ET is reset to 0 D The timer input bit IN turns ON the timer starts timing TI turns ON and the timer output bit Q turns ON Q E The timer input bit IN turns OFF the timer continues timing TI remains ON and the timer output bit Q remains ON F When the elapsed time ET equals the preset time PT the timer output bit Q turns OFF the timer stops timing TI turns OFF and since the timer input bit IN is OFF the elapsed time ET is reset to 0 Pro Control Ver 4 0 User Manual Chapter 4 Instructions wii CTU UP Counter CE Counter starting bit CTU R Counter reset bit lee a PV Preset value of counter R PY cy Q Counter output CV Present value of counter Operation Overview RP comerse Dir SCS OD Down Counter Output Discrete O o Courter Output Discrete When the counter input bit CE passes power the current value Variable CV is incremented by one if the counter reset bit Variable R is OFF and the current value Variable CV is smaller than Preset value Variable PV When the current value Variable CV is equal to the preset value Variable PV the counter output bit Variable Q is turned ON and the instruction passes power When the counter reset bit Variable R is ON the current value Variable CV is reset to zero The counter output bit Variable Q is also turned OFF Operating Example The following diagram is an exa
27. unitagain with GP PRO PB Ill after reducing the logic program size or the number of variables and labels Also reduce the number of array variable elements or shorten the name of variables and labels Check the I O configuration and Incompatible I O has been set reabbcae he UO Pro Control Ver 4 0 User Manual Chapter 7 Errors The following table lists the FaultCode errors that are written in when errors occur Level Normal No errors The calculated result or he conversion ofa Real variable to an Integer Minor i variable has resulted in an overflow A reference was used fr an area outside the array s range A reference was used for a bitoutside the Integer s 32 bit range The stack has overfowed Reserved for System The Scan time is now longer than the Watchdog time Reserved for System S ofware Error Depending on the type of problem the system may need to be restarted 1 2 3 4 5 7 10 Reserved for System 11 Reserved for System 12 Minor BCD BIN Conversion Error 13 Minor ENCO DECO Error 14 Reserved for System 5 1 The logic program ofthe backup memory SRAM is damaged The logic program of FEPROM will be executed 1 This error occurs only with GLC2000 Series units ie Major Faults and Minor Faults x When a major error occurs the controller immediately stops executing the logic program Major Major Major Major Major Major ajor M Incorrectcommand code is being us
28. verfow due to mathematical commands or Discrete conversion ofa variable from R eal to Integer Changes the controllers mode 0 Integer DisableA ubbS tart Defines the mode entered when the Dicoret GLC starts up Fault Used to stop he performance ofan Diseret Error Handler subroutine Controls the completion ofthe logic F aultO nM inor performed when a minor error Discrete occurs LadderM onitor Reserved for M anufacturer 0 meger i Calculates the P ercentS can s percentage Unit ofe P ercentM emCheck Notcurrenty used by the GLC R ungNo Reserved for M anufacturer Switches GLC screens by assigning Screen numbers Integer es SopScans Notcurrenty used by heGLC Integer Sets the ConstantS can Time TargetS can Unit ms WatchdogTime Set the Watchdog Timer s value Integer Unit ms e Year Month Day Time variables set the GLC units Clock Note data Set or change the clock data by writing in the initial N settings ofthe GLC unit or in the System Data Area AUAA Refer to applicable GLC User Manual and the GP PRO PB III Device PLC Connection Manual e Clock100ms Day Month Time Year and Screen are available only with the GLC2000 Series unit ann How to Use System Variables This section uses a Screen example to explain how to use the system variables The following logic program switches the screen to the base screen B100 which is screen number 100
29. 0 1 DIO Umt Self Diagnosis een 6 12 6 3 2 I O Monitor I O Connection Check na 6 14 6 3 3 Troubleshooting sine ee 6 15 CHAPTER 7 ERROR MESSAGES 7 1 Error Message List ssssscccsssscssssicceivsasesssbecsasiivecsencsiscsacesssasanstsacseociscessestiacions 7 1 7 2 Error Codes sccssiseissctssicssesisssstsssescsssvesniessssvncsassevedensvenscastensvoetesssapadavasenstsasess 7 3 73 Program WPTOMs scscsnsicissssincssssscassssssasscssasdscsseshassssascastsouseassneatedseusasanseecssatsee 7 4 INDEX Pro Control Ver 4 0 User Manual z Preface TRADEMARK RIGHTS The company names and product names used in this manual are the trade names trademarks including registered trademarks and service marks of their respective companies This product does not include individual descriptions pertaining to the rights held by each company Trademark Tradename Rights Holder Microsof M S MS DOS Windows Windows 95 Windows 98 Windows M e Windows NT Windows 2000 Windows XP Windows Explorer M icrosoftE xcel The following terms used in this manual differ from the official trade names and M icrosoftCorporation USA trademarks listed above Term used in this Formal Tradename or Trademark manual M icrosoft Windows 95 Operating System Microsoft Windows 98 Operating System Microsoft MS DOS Operating System Microsoft Windows M e Operating System Microsoft Windows NT Operating System Microsoft Wi
30. 08 is entered in A the output B is 0x00000003 Bit Position 31 30 29 28 27 26 25 24 23 30 91 20 19 18 17 1B 15 141312 1110 9 8 TEE 21 A elnloloIo ololo n Jololo n ololo ololo n ololo ojololo ME I N Bit Position 44 30 99 28 27 26 25 24 29 22 21 2019181716151413 12 11109 87654 B olo Je In Ts To o In In Jo To o Jo Io Ja Jo o o a Io Jo Jo o In Jo Jo Jo Jo amp ote If is entered in Input A the error code 13 is set to x FaultCode as a minor error OverFlow See 3 2 19 Overflow e The ENCO instruction does not support variable modifiers assigned bit word or byte e The ENCO instruction is supported by GLC2000 Series units only W yE DECO Decode A Data WEE B Result to be stored 2 4 3 ot 0 a2 10 Ooi ti The value entered in A is decoded and output to B The DECO instruction reads A as a binary value and the corresponding bit position in B is up 0 to 31 are available for input The DECO instruction always passes power The combinations of valid variable data types for the DECO instruction are as follows Integer Array Integer Array Same size as A Integer Constant Integer E g If0x00000003 is entered in A the output B is 0x00000008 Bit Position 31 30 29 28 27 26 25 24 23 A Aula loto ooo mo 221 20 19 18 17 16 15 1413 12 11 10 OO oo Popo ooo ooo LI 4 Bit Position 51 30 29 24 27 26 25 24 23 22 21 20 19 18 17 168 15 141312 1110 9 87665 B L olala o ol
31. AAN AK AN AN AN AN u i Stock1 N lo lo JoJo lolo ol l Iolo 3 D Most significant bit Least significant bit Pro Control Ver 4 0 User Manual 4 21 Chapter 4 Instructions WAKE SHL Shift Left A Variable name to be rotated SHL N Number of bit positions to shift EN DN C Destination variable i The SHL instruction left shifts the bits in A by N positions Bits are dropped from the left end most significant bit of the element and 0 is inserted in the now vacant bit positions at the right end least significant bit The result is placed in C There are two types of SHL instruction 1 If neither A nor C is an array a simple 32 bit shift is performed N must range from 0 to 31 2 If both A and C arrays are the same size the A array is treated as a large Integer Bits are shifted from one element to the next rather than the most significant bit being dropped from the left end of each element Only the most significant bit of the highest numbered element within the array is dropped N must range from 0 to 32 x array size 1 inclusive The SHL instruction always passes power The combinations of valid variable data types for the SHL instruction are as follows ESS EEE 5 a Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is same size as A Integer Constant Integer or Integer Constant Bote 5 Overflow is turned ON if N is out of range The result is undefined S
32. Connector is notsecurely attached Replace unit Replace DIO unit Change design of external device l e Attach dummy resistor et Correct voltage load Tighten the terminal screws Correct the program Attach the connector securely Reduce the noise level Noise is causing unit mis operation Attach a surge killer Use a Shielded cable 6 16 Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers ERROR CODES T O errors are Read Write errors When I O errors occur the controller writes an error code to the IOStatus variable The logic program continues to operate The following explanation of possible error causes and solutions for when the DIO unit is attached to the GLC Setting Errors Internal variable error allocated to I O terminal External variable error allocated to I O terminal Outputvariable error allocated to 1 0 terminal Discrete variable error allocated to analog terminal Integer variable error allocated to discrete terminal 5 Resetthe variable used 5 5 5 5 5 Variable type notsupported by driver Correctthe variable type Two or more terminals are using the same terminal number possibly causing transfer failure Download the WLL file again Two DIO units are using the same M ultple modules are used module number Reset these numbers so they do not overlap M odule number has exceeded 1 Seta module number from 0 to 1 Gainumbarsaeacm tl Setthe PONN NEAME GLC units
33. LS WORD Te We IJ Te IIe JE O EI o a Select the Module No either 0 or 1 The 0 unit is attached directly to the GLC and the 1 unit is attached to the back of the 0 unit Select the Input Variable Type either Discrete or Word Select the Output Variable Type either Discrete or Word For example if you enter 0 as the Module No Discrete as the Input Variable Type and Word as the Output Variable Type then touch the RUN button in the screen s top right corner the I O Monitor screen will appear GLC100 Series GLC300 Series 170 MONT TOR f M f E INPU 120 MONITOR DLLE No en INPUT OUTPUT 0 65535 0 685535 OUT When the Input Variable Type is Discrete the input terminal S No will appear in reverse color When the Output Variable Type is WORD use the ten key keypad to enter the data When using a GLC100 series unit touch the data entry field and the ten key keypad will appear After entering data touch the OUT key to output the data Data will be displayed in the decimal format 6 14 Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers mmm Troubleshooting This area exp
34. PREFACE Thank you for purchasing Pro face s ladder logic programing software Pro Control Editor Ver 4 0 for use with Pro face s GLC series of graphical logic controllers To ensure the safe and correct use of this product be sure to read all related materials carefully and keep them nearby so that you can refer to them when ever required NOTE 1 The copyrights to all programs and manuals included in Pro Control Editor Ver 4 0 hereinafter referred to as this product are reserved by Digital Electronics Corporation Digital Electronics Corporation grants the use of this product to its users as described in the Software Licence Agreement included with the CD ROM Any violation of the abovementioned conditions is prohibited by both Japanese and foreign regulations 2 The contents of this manual have been thoroughly inspected However if you should find any errors or omissions in this manual please contact your local sales representative 3 Regardless of the above clause Digital Electronics Corporation shall not be held responsible for any damages or third party claims resulting from the use of this product 4 Differences may exist between the descriptions found in this manual and the actual functioning of this software Therefore the latest information on this software is provided in the form of data files Readme txt files etc and or separate docum
35. Percent Scan Time Mode varies the scan time according to the percentage set by the logictime This feature sets the priority to the operation speed and switching speed of the display and varies the scan time according to the control time logic program Reading O input information Logic time as Operating logic program Start Stop Operation Processing p ee 2 H O time for logic 4 Operation program Scania Set by percent as Logic set time age variable 5 PEND screen Writing I O output information processing seen Been ge eee Fay A eS gy Sg ce eee time 100 changeable AN N Important Graphic process ing time Total scan time Logic time set by Scan time Logic time Percent scan setting E g Ifthe percent scan setting is set to 40 and the logic executing time is 20ms Scan time 20 40 x 100 50ms Graphic processing time 50ms 20ms 30ms A longer logic executing time will result in a shorter display processing time increases resulting in increased scan time Therefore the longer the logic time the longer the time allocated to display processing therefore the display is updated more quickly on the GLC but the logic program processing cycle slows e There is no change in the processing time for one instruction in the logic program The percent scan setting cannot be set over 50 When the percent scan setting is set to 50 the di
36. ach variable Variable Type Memory Used unit byte Discrete Array 20 for each elementx 12 Integer Er Integer Array 20 for each element x 8 Real EEE Real Array 20 for each element x 16 Timer BET O Comer BE TE In the PLC the number of variable is limited in each device In the GLC however variables can be registered regardless of type as long as each takes up no more than 32 Kbytes in the variable storage area Conventional PLC Pro Control Editor Variable External Input Contact X A pieces real gt External OutputContact Y B Internal Relay M Data Register D Total 32 Kbytes moon DISCRETE VARIABLES These variables use a single bit with a value of 0 or 1 to define a Discrete condition 1 e ON or OFF INTEGER VARIABLES These variables use 32 bits to define Integer values from 2147483648 to 214783647 Pro Control Ver 4 0 User Manual 2 3 Chapter 2 Variables REAL VARIABLES These variables use 64 bits to define floating decimal point values ranging from 2 25e to 1 79e and 0 Gote DNS e To display a Real variable on the GLC screen set the display data type of the GP PRO PB III E tag to Float 32 bits e An error occurs when the Real data is converted from 64 bits to 32 bits e Because the Integer variable is 32 bits in length when using a Real variable that is 16 bits in length with the GLC units display feature only the lower
37. am is an example of the Integer Array Pressure having three ele ments e Pressure 0 represents the current pressure of boiler e Pressure 1 represents the upper limit value of pressure e Pressure 2 represents the lower limit value of pressure When the pressure is higher or lower than the pressure limits the alarm turns ON CurrentP ressure Pressure 0 Pressure Upper LimitValue Pressure l Pressure Lower Limit Value Pressurel2 GT High Pressure Alarm Pressure 0 amp Pressure 1 B LT Low Pressure Alarm m G Pressure 0 4 Pressure 2 5 Pro Control Ver 4 0 User Manual IF Chapter 2 Variables To access a bit with the Integer Array Also as with the Discrete array the modifier n can also be used to access any of the Integer array s elements This method can also be combined with the bit byte and word access method Thus in order to access the Integer array variable Water_Sales n 1 element s m 1 bit the wording Water_Sales n X m is used E g To access the Integer array Alarm s seventh bit type Alarm X 6 32nd Bit First Bit sil ief Jol 7th Bit To access the Integer array variable Water_Sales 62nd bit type Water_Sales X 61 32nd Bit First Bit 31 Br 0 63 62 61 32 64th Bit 33rd Bit 62nd Bit Also for Water_Sales 1 X 29 32nd Bit First Bit 0 First Element Element No 0 ep te Second Element Element No 1 64t
38. apter 6 I O Drivers 6 10 wirt Troubleshooting The following is a description of possible problems that may occur when using the Flex Network I F unit and their solutions FLEX NETWORK I F UNIT I O ERRORS For a detailed explanation of Flex Network I F unit I O errors please refer to the Flex Network unit s Users Manual ERROR CODES VO errors include those occurring during writing and reading When one of these errors occurs the controller writes an error code to IOStatus Setting Errors C Eror Code Contents J sowon Internal variable error mapped to I O 501 terminal External variable error mapped to I O 502 terminal 503 Output variable error mapped to I O Resethe variable sed terminal Discrete variable error mapped to 504 i analog terminal Integer variable error mapped to discrete terminal Variable type notsupported by driver Correctthe variable type Variable is notmapped to terminal M ap the variable to all terminals Two or more terminals are using the same Terminal numbers are duplicated terminal number possible causing transfer failure Download the projectfile again Two or more areas are using the same M ultiple S No exist area number possibly causing transfer failure Download the projectfile again Two or more I O units are using the same S No range overlap atthe analog S No The analog unithas S Nos for four unit Stations Resetso there is no S No overlap Two or m
39. ar and the error check will begin The currently connected I O unit s S Nos will appear and the I O unit S No with the error will be shown in reverse color GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series ERR S No DISPLAY FENIR Error No s are reverse color ERR S No DISPLAY Error S No s are reverse co 6 4 Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers wer 1 O Monitor I O Connection Check 1 Select the CONTROLLER MENU window s FLEX NETWORK DRIVER and the FLEX NETWORK DRIVER MENU will appear 2 Select the FLEX NETWORK DRIVER MENU window s I O MONITOR and the following I O MONITOR SETUP window will appear O Monitor Settings when VARIABLE TYPE is set to DISCRETE GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series NEXT CANCEL RE T 1 0 MONITOR SETUP 6 TRANSFER SPEED Mbps TRANSFER SPEED Mbps 6 12 S tlo E 1 5 Ho 1 MODEL CODE Fi KISTS YOBRLYIESK Y16SC KYOBTS ADOAAHDANAAH MODEL CODE ARTS VARIABLE TYPE DISCRETE WORD VARIABLE TYPE DISCRETE IIE eee Ie eID Ie gt Communication speed Set TRANSFER SPEED to either 6 or 12 Mbps Setting the communication speed faster may cause the unit to
40. ate Right A Variable name to be rotated ROR N Number of bit positions to shift EN DN A C C Destination variable N The ROR instruction right shifts the bits in A by N positions Bits are rotated from the right end least significant bit to the left end most significant bit The result is placed in C There are two types of ROR instruction 1 Tf neither A nor C is an array a simple 32 bit rotation is performed N must range from 0 to 31 2 If both A and C are Integer arrays of the same size the array is treated as a large Integer Bits are shifted from one element to the next rather than rotating only within each element N must range from 0 to 32 x array size 1 inclusive The ROR instruction always passes power The combinations of valid variable data types for the ROR instruction are as follows A EN E Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is same size as A Integer Constant Integer or Integer Constant ne Overflow is turned ON if N is out of range The result is N undefined See 3 2 19 Overflow Operating Example The following diagram is an example of a one bit right rotation of the Stock 1 Integer variable nn Fa Bits 31 30 29 28 2t 28 26 24 23 e2 3 2 1 0 Stock 1fofala ofofofofifal fofalafoL_ D N D N D N N Rotated Right 1 bit position
41. ave any questions about the contents of this manual please contact your local GLC distributor Also if you have any question about your personal computer Windows 95 Win dows 98 or Windows NT please contact your local distributor or manufacturer SAFETY SYMBOLS AND TERMS This manual uses the following symbols and terms for important information related to the correct and safe operation of this product Symbol Incorrectoperation resulting from negligence ofthis instruction may cause death or serous injury Incorrectoperation resulting from negligence ofthis instruction may cause injury or damage to equipment Failure to observe this instruction may cause abnormal operation of equipment or data loss This instruction procedure mustbe performed to ensure correct productuse This action procedure should NOT be performed GENERAL INFORMATION SYMBOLS AND TERMS This manual uses the following symbols and terms for general information Indicates related information manual name chapter section page number 1 2 etc Indicates footnotes Pro Control E ditor oi used for editing transferring and monitoring ofa GLC ladder logic vi Controller Indicates the GLC units builtin control feature GP PRO PB III The screen creation sofware GP P RO PB Ill for Windows Ver 6 0 GLC Indicates the GLC series of graphic logic controller manufactured by Digital Electronics Corporation Indicates peripheral devices such as PLCs Progra
42. bY afc 0 a INPUT 0 8 Vo AG Tee Tee Te Jee Tele II LITE IIT eee Pressing the RET URN button returns control to the I O MONITOR screen A D Conversion Table Settings other than maximum minimum A D conversion sample count and the file type operate with the set content stored on the I O unit side To change the settings saved on the I O unit side change the settings in Pro Control Editor and download the logic program to the GLC The logic program will then be set to RUN mode and the settings will be enabled a Important e The settings of the range changeover switch on the I O unit side are read in the internal unit when the I O unit s power cord is plugged in To change the settings of the range changeover switch be sure to turn the I O unit s power OFF and then ON again The settings of the range changeover switch on the I O unit side are read in when the logic program is switched to RUN mode To change the settings of the range changeover switch change the logic program to STOP mode and then to RUN mode If the ranges do not match the data cannot be read correctly 6 8 Pro Control Ver 4 0 User Manual AS y N u Important Important Chapter 6 I O Drivers FOR FN DA04AH I O Monitor Enter data with the keypad With the GLC100 and GLC2300 Series unit touching the screen s data display will call up the keypad After entering all da
43. before or after FOR and NEXT instructions on the same rung e Upto 64 nests can be included in each instruction If the instruction exceeds more than 64 nests a major error occurs and error code 4 is displayed in FaultCode Two stacks are used for one nesting When using the JSR instruction calculate the total size of stacks Pro Control Ver 4 0 User Manual Chapter 4 Instructions Ga For information about the errors or warnings displayed N by the Editor s error check refer to Pro Control Edi tor Operation Manual Chapter 7 Appendix 1 Er rors and Warnings For information about FaultCode error codes refer to 3 2 25 FaultCode e When specifying the number of nests the time required for the program s entire execution must NOT exceed the value of Watchdog Timer See 3 2 27 WatchdogTime e The number of nests that can be used in a logic program is 128 Only the FOR NEXT instruction and the JSR in struction use nests See 4 2 44 JSR instruction e The FOR NEXT instruction is available only with GLC 2000 Series units Pro Control Ver 4 0 User Manual 4 47 Memo 448 Pro Control Ver 4 0 User Manual ws LS Area Refresh wl LS Area Refresh Overview D I S P L A Y T 0 U Cc H LS AREA REFRESH FEATURE The GLC unit uses the LS Area s System Data Area to control the changing of screens the sounding of buzzers etc These are p
44. ble QU are turned ON e Ifthe current value Variable CV is equal to or less than zero the Counter Output and Down Counter Output Variable Q and Variable QD are turned ON Pro Control Ver 4 0 User Manual 4 41 Chapter 4 Instructions Operating Example The following diagram is an example of the CTUD instruction continuously counting up from 0 to 10 and then down from 10 to 0 The SecondTimer outputs a pulse to the Up Down Counter every second The UP bit turns ON when the Up Down Counter reaches 0 and turns OFF when the Up Down counter reaches 10 the preset value UpDown QD UpDown UP UpDown QU UpDown UP 1 amp SecondTimer Q SecondTimer Q yan J No a 1000 PT ET Note f the counter reset bit Variable R turns ON when the Counter x Up enable flag Variable UP is ON the current value Variable CV is set to zero If the counter reset bit Variable R turns ON when the Counter Up enable flag Variable UP is OFF the preset value Variable PV is entered to the current value Variable CV et BCD BCD Conversion 4 42 A Data ACD B Result to be stored EN DN A B When the BCD instruction is executed a binary number assigned to A is converted to binary coded decimal format and the result is placed in B The BCD instruction does not pass power if an error occurs Integer Constant The largest value of A that can be converted is 0 x SFSEOFF If A is too large Fa
45. ctly to the Screen using touch input Change screens using the logic program diagram below as an example Screen Switch Moy 1 EN DN 100 IN OUT Screen 0 kw TargetScan TargetScan is used when the controller is set to the Constant Scan mode The TargetScan variable is designated in multiples of 10ms units When the logic time is constant increasing the value in TargetScan means that the display processing time will be longer Decreasing the value in TargetScan means that the display processing time will be shorter This is because most of the processing time is used by the controller TargetScan can be set in the initial settings or the configuration settings when the controller is in RUN mode Typically TargetScan can be set up in the Setup dialog box See 1 1 3 RUN Mode Variable Type Integer Set by User Range 10 2000ms Initial Value 10ms Writable wir Watchdoglime 3 16 WatchdogTime is used to set the value of the watchdog timer in milliseconds When ScanTime exceeds this value a major fault occurs WatchdogTime can be set in the initial settings or the configuration settings when the controller is in RUN mode Usually WatchdogTime is set in the Setup dialog box VariableType Integer Setby User Initial Value 500ms Writable Pro Control Ver 4 0 User Manual This chapter describes the Pro Control Editor instructions ae Instruction List Instructions sup
46. de A Ott e f an overflow does not occur during Real to Integer conver sion Overflow will not turn ON Pro Control Ver 4 0 User Manual 3 13 Chapter 3 System Variables Command is an Integer variable used as a controller command After the controller reads Command it resets the value to 0 When multiple bits are ON the lowest bit takes precedence Variable Type Integer Set by User pad GERADE m Kwai DisableAutoStart DisableAutoStart is a Discrete variable If the power is turned ON while DisableAutoStart is ON the controller starts up in the STOP mode If the power is turned ON while DisableAutoStart is OFF the controller starts up in the state it was in START or STOP prior to shutdown SP tet The above settings are enabled only when the Controller State N setting is set to Default in the GLC unit s initial settings Variable Type Discrete Set by User Tnitial Value OFF Writable Fault is referred to by the controller as to whether the logic program will stop or continue to execute at the completion of the ErrorHandler subroutine By turning Fault ON the controller will be able to stop executing the logic program For information about ErrorHandler subroutines see 3 2 19 Over flow Variable Type Discrete Set by User Initial Value OFF Writable Bote Fault has no meaning when there is no ErrorHandler sub routine 3 14 Pro Control Ver 4 0 User Manual Chap
47. dit View Help ForceCount Pro Control Ver 4 0 User Manual 3 5 Chapter 3 System Variables 1OStatus is set by the I O driver and stores the I O driver s current status in 1OStatus 1 A value of 0 indicates that the I O is normal The status indicated by a value other than 0 differs depending on the I O driver Variable Type Integer 10 Setby Controller Read Only The Data Watch List window shows that Error 802 occurred in the VO driver 1 Data Yatch List File Edit View Help 0 Status For I O driver error code descriptions see Chapter 6 I O Drivers was Logiclime LogicTime indicates the amount of time in milliseconds that the controller uses in a single scan to read inputs execute logic and write outputs of the previous scan Logic time does not include the display processing time allowed by the controller for other programs to execute VariableType Integer Set by Controller Read Only LogicTime 3 6 Pro Control Ver 4 0 User Manual Chapter 3 System Variables Month displays the Month data as set in the controller using two digits in BCD format Variable Type Integer Set by Controller Read Only ge te e Year Month Day and Time data are displayed using the fol lowing system variables E g July 14 2001 at 6 19 a m e Month is available only with the GLC2000 Series unit Kwa Platform Platform displays which platform th
48. e Download another copy ofthe projectile from P ro Control Editor Check thatthe I O driver designated in the logic program file and the driver installed in the GLC are the same Download the projectile again Ifthis does notfix the problem contact your local P ro face distributor Check that the model type setin the GP PRO PB III sofware file is a GLC type and re trans mit the projectile Write down the error message details and consultyour local Pro face distributor Reset the Watchdog time so that itis longer than the Constant Scan Time Ifdoing so exceeds the Watchdog Timer s limit the ConstantS can Time program should be changed Download the projectile again Chapter 7 Errors Error Message Cause somon C Bad Array xxx Bad Type xxx The number of elements used in the GP PRO PB Ill array variables and those used in the logic program file s array variables are different The GLC variable XXX s type is differentfrom the GP PRO PB Ill After saving the logic program fle download the projectfile again to the GLC After saving the logic program fle download the projectfile variable type Unknown register type This variable type does notexist Cannotfind variable used for Writing Cannotfind variable used for Reading Too many entries inthe S100 Too many variables are being file used Limitis 2048 Cannotfind S 100 variable storage file again to the GLC Regist
49. e if the user wants 16 words of data to be shared outside of the System Data Area the calculation is 16 words of data plus the System Data Area s 20 words for a total of 36 words Variable Type Real 7 Timer 2 Input Spply Mot Assigned Supu B i a Help Je Retentiwe M Global e The Special Relay Area is called the LSS area e The maximum LS size is 276 words SP te 2 The relationship between variables and addresses are listed in the following table 1510 Ooo o LS0000 LSIN L 0001 System Data Area Oo ee S LS 19 LS0019 Oooo S S LS 275 L50275 Other Shared Data ee eee LSS 0 2032 LS 2032 LSS 1 2033 LS 2033 Special Relays ee ee S O LSS 15 2047 LS 2047 SUZAN For detailed information about the LS Area and Special Relays refer to the Device PLC Connection Manual 1 Names of system variables that are used with the GLC unit s logic program 5 2 Pro Control Ver 4 0 User Manual Chapter 5 LS Area Refresh hee Sharing Data with External Devices When using external communication device data with the controller features the data is shared via the LS Area However if data sharing between the controller features and the external communication device data register exceeds 16 words the performance of screen display features may deteriorate Display External ae Processing Communication atures Features Devices System Data LS0000 System Data Top Area A
50. e 1 1 Pro Control Ver 4 0 User Manual Runtime Errors DIO unit 6 18 Flex Network I F unit 6 11 S S No I O Monitor 6 5 S No Input Terminal 6 14 Safety Symbols and Terminology 9 Scan Time Adjustment 1 4 Screen Display Features 5 3 Screen Processing Time 1 1 Setting Errors DIO unit 6 17 Flex Network I F unit 6 10 Shared Data 5 1 SIO Communication Time 1 1 Special Relay Area 5 2 Stacks 4 45 4 46 STOP Mode 1 1 System Data Area 3 2 5 1 5 2 5 3 System Variables 1 3 3 1 3 3 T Tag Layout Sheet 7 Third Party Claims or Damages 1 Timer Data Variables 2 3 2 4 Timer Instructions 4 3 Touch Panel Processing Time 1 1 Trademarks Registered 6 Transfer Speed I O Monitor 6 5 Troubleshooting DIO unit input errors 6 15 DIO unit output errors 6 16 Flex Network I O errors 6 10 V Variable Storage Area 2 3 Variables 2 1 6 5 Accessing 2 6 Clearing 4 17 Counter data 2 3 Forced 3 5 GLC clock data 3 2 Naming 2 1 Non retentive 1 3 Registration 5 2 System 1 3 Timer 2 3 WwW Warnings and Precautions 8 Watchdog Timeout 1 3 Watchdog Timer 4 47 Word Access Method 2 8 Word Variable Setting I O Monitor 6 6 Pro Control Ver 4 0 User Manual Index H3 C Mm FA Pro Control Ver 4 0 User Manual
51. e controller is running on ne Value Platform Setby Coe InitialValue 1 a cn Read Only WANI ScanCount ScanCount is a counter incremented by the controller at the end of each scan The value range of ScanCount is 0 4294967295 When the counter value exceeds the maximum value 4294967295 the value of ScanCount is set to zero functioning as a Rollover but without setting the Overflow variable VariableType Integer Set by Controller Read Only GR te Whether or not the logic program is running can be easily N checked using ScanCount Pro Control Ver 4 0 User Manual 3 7 Chapter 3 System Variables Kwa H HScanTime ScanTime stores the amount of time in milliseconds that the controller uses during its last complete scan to read I O execute logic write I O and display processing Variable Type Integer ScanTime Setby Controller wee TO ee a w 8 Initial Value 1 oo fa N r a x Read Only Q A i i l i i 4 1 w S T Me 2 Fe u we gt er a 3 2 12 Status indicates the controller s status Within the Status system variable Byte indicates the current fault conditions of the controller Byte 1 is used to show the fault status history and is reset to 0 only when the controller is reset Byte 2 indicates the current operating status of the controller Variable Type Integer Set by Controll
52. ed oO oad When a minor error occurs the controller is able to con tinue executing the logic program e Check the cause of the error Pro Control Ver 4 0 User Manual 7 3 Chapter 7 Errors 7 4 The following table lists Pro Control Editor s program operation errors Error Type Possible Problem Solution Control Memory power is cut Battery Alarm xchange Unit Keep Area data is not preserved Program is notoperating normally Data is outputfrom I O even in STOP mode Soon afer entering RUN mode unitchanges to STOP mode Pro Control E ditor cannot enter configuration settings The logic program file cannot be downloaded from Pro Control E ditor The project prw fle cannot be downloaded from GP PRO PB Ill Memory Alarm Program transfer mistake When output data performs RUN STOP switchover I O output hold is enabled A Command Execution Alarm has occurred Or a major faulthas occurred The data transfer cable used to send data from GP PRO PB III to the GLC unitmay be loose or disconnected Also the PC or GLC units power may have dropped causing excessive noise and possible destruction ofthe contents Exchange Unit Use GP PRO PB Ill to download the projectile again Refer to the Pro Control Editor Operation Manual 5 2 Transferring Preparation Screens to the GLC Disable this feature Refer to Pro Control Editor s Online Help Check the contents ofS y
53. ee 3 2 19 Overflow Operating Example The following diagram is an example of a one bit left shift used to track the position ofa bit Each bit in the Stock1 Integer indicates the current position At every program scan or fixed interval the bit is left shifted to the next position When the bit reaches the last bit position 31 the Last_bit variable is turned ON signaling the completion of the operation 4 22 Pro Control Ver 4 0 User Manual Chapter 4 Instructions Stock1 x 31 Last_ bit Bits Stock1 Moen owed LLL LAA LALLA LS Stock1 The position after the operation WALE SHR Shift Right A Variable name to be rotated SHR N Number of bit positions to shift EN ON SPE A E C Destination variable N The SHR instruction right shifts the bits in A by N positions Bits are dropped from the right end least significant bit of the element and 0 is inserted in the now vacant bit positions at the left end most significant bit The result is placed in C There are two types of SHR instruction 1 Ifneither A nor C is an array a simple 32 bit shift is performed N must range from 0 to 31 2 If both A and C arrays are the same size the A array is treated as a large Integer Bits are shifted from one element to the next rather than the least significant bit being dropped from the right end of each element Only the least significant bit of the l
54. en switching to the OFFLINE mode or when resetting from the logic I program s RUN state the I O signal may turn to OFF Be aware of the Important possibility that the I O signal will turn OFF oo GLC Condition RUN RUN Analog Output 1O Signal No Analog Ouput Output from Logic Program Output from Logic No Analog Output Program LOOPBACK CABLE CREATION Use the following diagram when creating the DIN DOUT loopback cable COM A1 24V B1 COM A2 24V B2 He DC24V NC A4 NC B4 DOUT15 A5 DIN15 B5 DOUT14 AG DIN14 B6 to to to DOUT1 A19 DIN1 B19 DOUTO A20 DINO B20 Recommended Products Manufachure FCN 361 040 AU Connector One Ee Pupsu FCN 360C040 B Cover FCN 363 040 Crimped Type Fujitsu F CN 363 AU S FCN 360C0404 B A6TBX36 Terminal Block Terminal Block UnitType M its ubishi AC TB Cable cable length Y okogawa TA40 ON Pro Control Ver 4 0 User Manual 6 13 Chapter 6 I O Drivers wi 1 O Monitor I O Connection Check On the DIO driver menu touch I O Monitor to call up the following screens When I O Monitor has been Selected GLC100 Series GLC300 Series 1 0 MONITOR SETTINGS SE EEE 1 0 MONITOR SETTINGS RUN CANCEL 0 MODULE NUMBER No 0 1 MODULE NUMBER No 0 1 0 INPUT TERMINALS DISCRETE WORD INPUT TERMINALS DISCRETE OUTPUT TERMINALS DISCRETE WORD OUTPUT TERMINA
55. ents Refer to these sources as well as this manual prior to use 5 Even though the information contained in and displayed by this product may be related to intangible or intellectual properties of Digital Electron ics Corporation or third parties Digital Electronics Corporation shall not warrant or grant the use of said properties to any users or other third parties Also Digital Electronics Corporation shall not be liable for problems related to intellectual properties of the third party caused by a oro Ore rr ec rr ee ec TS A Oar ee _ using the information contained in and displayed by this product Ss i a si es a a a fe yi Se ee ee ee fe ee P N A Copyright 2002 Digital Electronics Corporation All rights reserved Digital Electronics Corporation January 2002 For the rights to trademarks and trade names see TRADEMARK RIGHTS Pro Control Ver 4 0 User Manual Preface TABLE OF CONTENTS PREFACE UNRPERLERENERUEINSEENEERE RU IOTPURFEL eascauscacexescensenceseakeusssuusssuasuaaeabesusdsocastaciansorsenensesvinass 1 TABLE OF CONTENTS zuteil 2 APPLICABLE PRODUCTS zes een 6 TRADEMARK RIGHTS sssscsssscssssssssessssssessssessssssesssorsssess sssessrsssssesssssievsssssssess sstse s 6 HOW TO USE THIS MANUAL anne ui ne 7 PRODUCT USAGE PRECAUTIONS aan ee 8 DOCUMENTATION CONVENTIONS sisiessscssecctctaissesesasicccsonsvacsscostencccasstacasanvenss 9 1 1 Operation Mode Overview siis
56. er Read Only es Intermittent errors can be detected by using the latch fault N flag Use hexadecimal format for Status 3 8 Pro Control Ver 4 0 User Manual Chapter 3 System Variables When the following fault flags become 1 the corresponding conditions are indicated as follows Latched Fault Flags M ajor fault M inor fault Scan time error Reserved 0 EnabledDisabled a Forces 2 Enabled Disabled j AA Time displays Time data as set in the controller using four digits in BCD format a Reserved Byte3 VariableType Integer Set by Controller Read Only e Year Month Day and Time data are displayed using the fol re lowing system variables E g July 14 2001 at 6 19 a m Year Month Bay Frer Mer e Time is available only with the GLC2000 Series unit Pro Control Ver 4 0 User Manual 3 9 Chapter 3 System Variables Version indicates the version number of the controller Version is displayed in hexa decimalformat Variable Type Integer Setby Controller Byes Waprvesion 0 Read Only Bye Whorvesion m pyet Reserved Beo Reserved Year displays Year data as set in the controller using two digits in BCD format VariableType Integer Set by Controller Read Only Stes e Year Month Day and Time data are displayed using the fol x lowing system variables E g July 14 2001 at 6 19 a m C ver f monn Day time e
57. er is missing After saving the logic program fle download the projectfile again to the GLC S 100 file index is outof range S 100 file is missing Over Compile countM AX Logic Program is Empty No backup logic program in FEPROM SRAM checksum error SRAM data broken Exception 65532 xxxx Xxx Exception 65533 xxxx Xxx Exception 65534 xxxx Xxx Exception 65535 Xxxx Xxx Exception 137 Xxxx Xxx Too many Tags or Parts are being used The logic program file has not been downloaded to the GLC or the logic program file in the GLC FEPROM is damaged GLC2000 Series only The projectfile has notbeen copied to FEPROM after online editing This is a warning message GLC2000 Series only WLL file stored in SRAM is damaged GLC2000 Series only The battery for SRAM back up may have run out This is a warning message GLC2000 Series only GLC heap memory is insufficient M emory for storing programs and variables is suficient however logic program memory is insufficient Reduce the number of Tags or Parts and then download the projectto the GLC again Download the logic program file again from Pro Control E ditor Copy the projectile to FEPROM using GLC offline menu Download the projectfile again from P ro Control E ditor Execute from the projectfile in FEPROM Using online edit check thatno changes have been made in the logic program Setup the GLC
58. ero with an RST instruction 4 10 Pro Control Ver 4 0 User Manual Chapter 4 Instructions wa PT Positive Transition Contact Variable PH When the PT instruction is executed it allows power to pass ifthe variable was OFF during the previous scan but is currently ON When starting up the program the state of positive transition contact during the previous scan is considered to have been OFF The following diagram is an example ofthe PT instruction s function Start Motor peme Previous Current Next Next Scan Scan Scan Scan Start 1 l l 1 1 1 1 Motor PT Detected A When the Start variable turns ON the Motor variable turns ON B After one scan the current scan the Motor variable turns OFF C A positive transition contact of the Start variable was not detected during the current scan and the Motor variable remains OFF Pro Control Ver 4 0 User Manual 4 11 Chapter 4 Instructions Ewa NT Negative Transition Contact Variable N When the NT instruction is executed it allows power to pass if the variable was ON during the previous scan but is currently OFF During the first scan the state of transition during the previous scan is considered to have been OFF Therefore the NT instruction does not pass power during the first scan The following diagram is an example of the NT instruction s function Start Motor Current Next Next Scan Scan Scan
59. es For variables used for tags or parts in the GP PRO PB III display feature set the property to Global By saving the logic program the global variables are registered as the GLC symbol in the symbol editor and can be shared with the GP PRO PB III display features Batch conversion is available by selecting a multiple number of vari ables in the variable list Refer to the Pro Control Editor Operation Manual 2 4 Creat ing Variables Pro Control Ver 4 0 User Manual 2 5 Chapter 2 Variables ei Accessing Variables This section explains how to access variable array elements bits bytes and words ARRAY VARIABLES An array is a method of declaring and handling multiple elements with a single variable name This method allows the user to register same type variables simultaneously Anexample or analogy could be the drawers of a cabinet The array variable Cabinet 10 has 10 drawers numbered from 0 to 9 These i drawers are called Cabinet 0 Cabinet 1 Sabinet Cabinet 9 Each drawer corresponds to an individual data register in the PLC When using 10 locations of Cabinet memory first declare the variable name that is Cabinet and size number of ele ments 10 array The variable type settings are listed as follows 4 Variable Type Not Assigned u Output Wl Anay Size 10 rl Retentive Pl Global ACCESSING A DISCRETE ARRAY To access the elements of a Discr
60. es the procedures for installation and basic operation of this Setup Guide product Pro Control Editor Ver 4 0 Describes the sofware setings variables and commands used for GLC series units Includes the tutorial for preparation through operation ofthe product and an extensive warning error message list Also describes the procedures for using the variables registered in P ro Control E ditor on the GP PRO PB Ill screen User M anual this manual Operation M anual GP PRO PB Ill for Windows Ver 6 0 Describes the operating procedures and software functions used to Operation M anual create the GP screen Tag Refrence M anual Includes detailed descriptions of the Tags used to specify functions of the GP unit Describes both the pre designed P arts included with GP PRO PB III Parts List and the symbols that can be called up Describes connections between GP series units and other products Device PLC Connection M anual such as manufacturer specific PLCs temperature controllers and inverters Note The GP PRO PBIII user manual is a GP screen creation x reference However when creating GLC screens for use when operating the GP PRO PB Ill refer to GP as GLC e Refer to the Online Help guide in addition to the PDF manual listed above for detailed explanations about this product The layout sheets that are installed as part of the GP PRO PB III for Windows standard installation are useful for designin
61. et to 2 Pro Control Ver 4 0 User Manual Chapter 4 Instructions PAGE FMOV Fill Transfer A Data FMO f EN DN B Start from Array D B A 5 C Number of data D Destination variable C When the FMOV instruction is executed the C elements starting at index B of Integer array D are filled with value A The FMOV instruction is valid for Integer arrays only The FMOV instruction always passes power The combinations of valid variable data types for the FMOV instruction are as follows A B and C oS Ineger ray Integer Constant Operating Example The following diagram is an example of an initial value Transfer Value being copied into some of the seven Integer array elements Destination Destination 0 Init Value is copied to Destination 4 1 2 Init Value is copied to Destination 5 3 TransferValue 4 5 6 InitValue is copied to Destination 3 InitValue is copied to Destination 6 The FMOV instruction is defined as follows While the program is running the con FGV troller checks whether references to ar wer i Destination ray A and E elements exist in the cia S FMOV instruction If an invalid array alp is referred to a major error will occur and Faultcode is set to 2 See 3 2 16 FaultCode Pro Control Ver 4 0 User Manual 4 19 Chapter 4 Instructions 4 20 WA ROL Rotate Left A Variable name to be rotated ROL N Number o
62. ete array a modifier n must be attached to each element To access the modifier it is assigned an element number however the first element number in an array must be 0 E g The Discrete array MotorSetting is a Discrete array of 10 elements The seventh element controls the output coil Fan When the seventh element is turned ON the output coil turns ON To access the seventh element of MotorSetting enter MotorSetting 6 MotorSetting 6 Fan 1 O 2 6 Pro Control Ver 4 0 User Manual Chapter 2 Variables ACCESSING AN INTEGER INTEGER ARRAY Integers and Integer Arrays can be accessed via array elements bits bytes and words To access an array s element unit add n to the end of the variable name To access using bits bytes and words the following suffixes are used The modifier m is used to denote the position of the element in the array being accessed Access temni Su To Access Integer Array s Element Numerical calculation tracking of the repetitive information logging of data are available using the Integer Array E g To record the number of sodas sold in Day 1 Water Sales 0 one month in the Integer Array Day 2 Water Sales 0 Water_Sales the structure of data is Day 3 Water Sales 0 as follows Day 4 Water_Sales 0 The array consists of 31 Integer type elements which correspond to each day of one month 31 days Day 28 Day 29 Day 30 Day 31 The following diagr
63. f bit positions to shift EM DN A C N C Destination variable The ROL instruction left shifts the bits in A by N positions Bits are rotated from the left end most significant bit to the right end least significant bit The result is placed in C There are two types of ROL instruction 1 If both A and C are Integers a simple 32 bit rotation is performed N must range from 0 to 31 2 If both A and C are Integer arrays of the same size the array is treated as a large Integer Bits are shifted from one element to the next rather than rotating only within each element N must range from 0 to 32 x array size 1 inclusive The ROL instruction always passes power The combinations of valid variable data types for the ROL instruction are as follows aa E Ee Integer or Integer Constant Integer Array Integer or Integer Constant Integer Array is same size as A Integer Constant Integer or Integer Constant Overflow is turned ON if N is out of range The result is undefined ste ei See 3 2 19 Overflow Operating Example The following diagram is an example of a one bit left rotation of the Stock 1 Integer variable Bits 31 7 30 29 27 26 253 24 23 22 i 23 s Stoca fo fo fo Jo e fo fo r fe Rotated Left 1 bit position a 4 7 7 FE 4 Most significant bit Least significant bit Pro Control Ver 4 0 User Manual Chapter 4 Instructions was ROR Rot
64. g tag address settings etc Use the Device Allocation Table and Tag Layout Sheet layout sheets that are installed as Microsoft Excel data format Each file location and name is listed in the following table For information about the use of Microsoft Excel refer to Microsoft aCe software s user manual gt Pro Control Ver 4 0 User Manual 7 Preface Folder Name File Name Contents DevicelE xls Device Allocation Table TAGIE xIs Pro in sheet ro face propbwin shee TAG2E xls Tag LayoutS heet TAG3E x s TAGAE xIs The PDF file manuals included in the CD ROM can be viewed using Adobe Acrobat Reader PRODUCT USAGE PRECAUTIONS WARNING Do not use the GLC unit for control in situations where a life threatening accident or major machine damage could occur DISK MEDIA USAGE PRECAUTIONS To prevent CD ROM or floppy disk damage or data loss be sure to observe the following instructions Oo e Be sure to remove the disk media from its disk drive prior to turning the PC ON or OFF Do NOT remove the disk media from its drive while the drive operation lamp is lit e Do NOT touch the disk media s CD ROM or floppy disk recording sur face Do NOT place the disk s where they may be exposed to extreme tempera tures high humidity or dust 8 Pro Control Ver 4 0 User Manual Preface DOCUMENTATION CONVENTIONS This manual uses the following symbols and terminology If you h
65. ge Tighten the terminal screws Correctthe program Connector is notsecurely atached Attach the connector securely Reduce the noise level Attach a surge killer Use a shielded cable 6 15 Chapter 6 I O Drivers DIO UNIT OUTPUT ERRORS Error Type Possible Cause DIO unitis defective Replace DIO unit Ouputmonitor Outputline wiring check lamp is ON but Outputcommon line is incorrectly wired Outputline breakage check no ouputcan be Outputterminal looseness check performed Load currentis incorrect Provide the correct current Connector is notsecurely atached Attach the connector securely DIO unitis defective Replace DIO unit Program is incorrect Outputarea is completely OFF Use I O box is notselected Setthe Use 1 0 DIO unitis notcorrectly attached Atach the DIO unitsecurely Outputlines do notturn OFF DIO unitis defective Replace DIO unit unitis defective Replace DIO unit Ouputmonitor lamp is OFF and no ouputcan be performed Correct program Designated output Check outputline wiring lines do notturn Ouputwiring is incorrect Check outputline breakage ON Check output terminal for looseness External unitis defective Designated output DIO unitis defective lines do notgo Currentleakage residual voltage OFF Causes Causes incorrectrecurrence Load voltage is incorrect Output terminal screws are loose Outputarea Program is incorrect Output commands randomly turns are overlapping ON OFF
66. h Bit 33rd Bit 62nd Bit First Element s 29th Bit Since Water_Sales X 61 Water_Sales 1 X 29 both can be used to access the Integer array Water_Sales 62nd bit e When accessing the Integer array variable Water_Sales sixth byte both Water_Sales B 5 and Water_Sales 1 B 1 can be used e When accessing the Integer array variable Water_Sales fifth word both Water_Sales W 4 and Water_Sales 2 W 0 can be used se Water_Sales X 61 and Water_Sales 0 X 61 mean the N same The third bit of the system variable Status is used as a NO instruction variable in the following example The third bit of Status notifies whether the GLC unit has an I O error or not Therefore when the third bit is turned ON the output coil s IO_Error is turned ON and there is notification that an VO error has occurred Status x2 I0_Error n ma Pro Control Ver 4 0 User Manual Chapter 2 Variables ACCESSING A REAL ARRAY Real Arrays can be accessed using array elements To access the elements of a Real array a modifier n must be attached to each element which represents the element number A 0 however is used for the first element in the array E g When accessing the Real array Solution_Temperature s fifth element type Solution_Temperature 4 ie GP PRO PB III can handle 2048 GLC variables The elements NA of the array become single variables For example an array with five elements becomes five variables Up
67. h may not be executed within one scan Be aware that errors such as an External Communica tion Device communication error may occur Because the Variable LS an Integer variable is 32 bits in length when the System Data Area is 16 bits in length only the lower 16 bits are available Pro Control Ver 4 0 User Manual 5 5 Memo 9 6 Pro Control Ver 4 0 User Manual om I O Drivers me I O Drivers Overview To perform external I O the GLC unit s I O unit must be attached and its related I O drivers must be installed For detailed I O Driver information refer to the Pro Control Editor Operation Manual 2 11 I O Configuration The following table lists the GLC supported drivers Modes Suppored Drivers DIO Driver F lex Network Driver GLC2300 Series GLC2400 Series Flex Network Driver GLC2600 Series ote When an I O error occurs and the controller stops create the XJ following logic program There will be a delay of approximately one scan from the time the error is detected until the time the logic program stops In the following example an I O error is detected with 1OFault and logic execution is stopped by assigning 1 to Command 10F ault TIN GUT Command When an I O error occurs lOFault will turn ON Detailed information can be checked by lOStatus See 3 2 18 IOFault and 3 2 20 Command Pro Control Ver 4 0 User Manual 6 1 Chapter
68. he timer output bit turns ON and the instruction passes power When the timer starting bit IN stops passing power to start the TON instruction e Variable ET the elapsed time is reset to zero e Variable TI the timing bit turns OFF e Variable Q the timer output bit turns OFF Operating Example The following diagram is an example of a drive that starts five 5 seconds after the power is turned ON Charging_Condenser Enable_Drive Ton Start_Drive N G E sooo PT ET TI A B C D E A When power is applied to the timer input bit IN the timing bit TI turns ON the timer begins timing and the elapsed time ET increments The timer output bit Q remains OFF B The elapsed time ET equals the preset time PT the timer output bit Q turns ON and the elapsed time ET stays fixed at the preset time The timing bit TD turns OFF C The timer input bit IN turns OFF the timer output bit Q turns OFF and the elapsed time ET is reset to 0 D The timer input bit IN turns ON and the timing bit TI turns ON The timer begins timing and the elapsed time ET increments E The timer input bit IN is turned OFF before the elapsed time ET equals preset time PT the timer output bit Q remains OFF the elapsed time ET is reset to 0 4 34 Pro Control Ver 4 0 User Manual Chapter 4 Instructions Lect TOF Timer OFF Delay IN Timer starting bit Variable PT Preset time oftimer TOF
69. ime Bu Scan executes during the time of scan set time minus logic time constant scan Graphic process ing time Including SIO communication and touch panel processing Y See 1 1 3 RUN Mode Pro Control Ver 4 0 User Manual 1 1 Chapter 1 Controller Features IAPA Controller Feature Overview The controller feature functions as follows The following page provides details ofeach step Initial Processing Loading RESET RESET PAUSE Perform 1 Scan Continue RUN First Scan Perform 1 Scan First Scan RESET Temporary Stop STOP INITIAL PROCESSING Initial Processing is the original state of the engine used to perform the logic program Once initialization is finished the controller enters the Loading state LOADING When the controller enters the Loading state the logic program is read in from the stored memory of the program to the memory that can perform RUN After a check is performed to determine whether the logic program is successfully loaded or not error processing is performed if an error has occurred If Loading is successful the program enters the STOP state If the CONTROLLER STATE is set to START in the GLC OFFLINE mode s controller settings the RUN instruction is automatically performed For Controller Settings information refer to the specific GLC unit s 1 2 Pro Control Ver 4 0 User Manual Chapter 1 Contro
70. ine 4 32 4221 LE Compare lt S J reine Re 4 32 1 252 NE Compare gt Te 4 33 4 2 33 TON Timer DON Delay anne ee 4 33 4 2 34 TOF Timer OFF Delay aa 4 35 12 233 TP Timer Pulse ee 4 37 4 2 36 C LU UP Go unter n ssusnsan ansehen 4 39 42 37 CLD DOWN Go nter 4n a a 4 40 4 2 38 CTUD UP DOWN Counter a 4 41 4 2 39 BCD BCD Conversion en 4 42 4 2 40 BIN Binary Conversion un 4 43 424l ENGO Encode Jeina a A E EN 4 43 42 42 DECO OC OU rer 4 44 4 2 43 JMP JUMP scree ean Ea E E RETTE 4 45 4 2 44 JSR Jump SUE OWING ccrssccausenecdetnss siaccaaledsrnstaucaucbnaderessiomanaedeadens 4 45 4 2 45 RET Return Subroutine siseses nirisan 4 46 4 2 46 FOR NEXT Repeat an au ee 4 46 5 1 LS Area Refresh Overview 5 1 5 2 LS Area Refresh Settings es 5 2 5 3 Sharing Data with External Devices essoesssecssecssocesocessoecssccesocesoossoosssse 5 3 5 3 1 LS Atea Resresh Ciao na 5 5 6 1 WO Drivers Overview s issssssssssesssssssossssssssosssossossssssssssssscssoossssso ssssc osssss sess 6 1 6 2 Flex Network I F Driver is sccsccsssxicasisccsssessaniaseassconceosostcssnsenssessisnbntenscuensoines 6 2 6 2 1 Flex Network I F Unit Self Diasns u nsienn nn 6 2 6 2 2 I O Monitor I O Connection Check unenain a a 6 5 6 22 Troubleshooting assosioi E RAR E EEA 6 10 Pro Control Ver 4 0 User Manual gt 0 3 DIO Driver asnssesssessendccasenscdseiss cussions caussvonsabasbvssssuassonnndoussanssvassaniivonsouctensas 6 12
71. ion is executed the variable turns OFF when the coil receives power and ON when the coil does not receive power Because NEG is a coil type output instruction and can be used only once per rung it should appear at the end of the rung When the variable mapped to NEG instruction is retentive the following symbol is displayed in the logic program Retentive NEG instructions are NOT supported by the GLC100 unit Mr The following diagram is an example of the NEG instruction s function Start Motor If Start Motor 1 A When the Start variable turns ON the Motor variable turns OFF B When the Start variable turns OFF the Motor variable turns ON te The NEG instruction can be used only with non retentive vari NA ables 4 8 Pro Control Ver 4 0 User Manual Chapter 4 Instructions WIM SET Set Coil Variable When the SET instruction is executed after the coil receives power the variable turns ON The variable will remain ON until explicitly turned OFF by another instruction such as an RST instruction Because SET is acoil type output instruction and can be used only once per rung it should appear at the end of the rung When the variable mapped to SET instruction is retentive the following symbol is displayed in the logic program ED The following diagram is an example ofthe SET instruction s function Start Motor Start Motor Stop A When the Start variable turns ON
72. ise related or other adverse effects Ensure thatthere are no noise related or other adverse effects Error Gode Contents J Somon oH Driver Error A major system error has occurred 864 Record he Error Number and contact your local Pro face distributor Pro Control Ver 4 0 User Manual IM Error Messages Au Error Message List This chapter describes error messages that can appear on the GLC unit The error messages described here are those related to the Pro Control program only For further information concerning GLC error messages refer to the GLC Series User Manual sold separately C Eror Message Cause J somon Invalid ladder file Fatal Error Drive Check Failed Global Data Area Too Small Can tS etP riority Exception nnn mmm ooo Watchdog Error Bad Var xxx Pro Control Ver 4 0 User Manual The logic program file has not been downloaded to the GLC or the GLC units logic program file is damaged The GLC units currentl O driver is incorrect The dowloaded file s data may be damaged The GLC units system file is incorrect The fle may have been damaged during downloading A fatal error has occurred in the ladder logic program The ConstantS can Time is longer than the Watchdog time Unable to find variable XXX Either the logic program file has notbeen downloaded or the GP PRO PB Ill is using a variable thatdoes notexistin the logic program fil
73. lains how to solve possible DIO unit problems DIO UNIT INPUT ERRORS Error Type Inputmonitor Possible Cause DIO Unitis defective lamp is ON but no inputcan be performed Enable I O is notselected Program is incorrect DIO Unitis defective Input monitor lamp is OFF and no inputcan be performed Allinputlines do notturn OFF Designated Input lines do notturn ON Input common line is incorrectly wired E xternal imput power is incorrect DIO unitis notcorrectly attached Connector is notsecurely attached DIO Unitis defective DIO Unitis defective Program is incorrect Inputwiring is incorrect External unitis defective Input ON period is too short Designated Input DIO Unitis defective lines do notturn OFF Program is incorrect External Inputvoltage is incorrect Inputterminal screws are loose Inputarea randomly turns ON or OFF Noise is causing unitmis operation Pro Control Ver 4 0 User Manual Replace DIO Unit SelectE nable 1 0 Replace DIO Unit Common line wiring check Common line breakage check Common terminal looseness check Provide the correct voltage Attach the DIO unitsecurely Attach the connector securely Replace DIO Unit Replace DIO Unit Correctihe program Check common line wiring Check common line breakage Check common terminal for looseness Replace the unit Lengthen the InputON time Replace DIO Unit Correctihe program Provide the correctvolta
74. ller Features STOP In this condition the controller is waiting to receive another instruction Once the RE SET Perform 1 Scan Continue or PAUSE instructions are received the controller changes to that condition e The RESET instruction changes the program to the Loading condition At this time variables are initialized Retentive variables maintain data before the power shuts down or the GLC resets However when the controller is reset by Configuration settings or Command use the value set in the Programming Mode as an initial value Non retentive variables are cleared to zero e The RUN instruction changes the program to the Running condition e The Perform 1 Scan instruction performs the program once FIRST SCAN First Scan executes the I O Read performs any logic program that is higher than the START level and executes the I O Write RUNNING This is the logic program performance engine s continuous performance condition Executes the I O Read performs the logic program executes the I O Write and updates the System Variables AvglogicTime AvgscanTime etc e The RESET instruction changes the program to the Loading condition e The STOP instruction changes the program to the STOP condition e The PAUSE instruction changes the program to the Temporary Stop condition TEMPORARY STOP The logic program execution engine is temporarily stopped in this state To avoid an I O watchdog timeout the system executes an I
75. ltiplied by B and the result is placed in C If both A and B are Integers or Integer constants the MUL instruction performs an Integer multiplication Otherwise the instruction performs a floating point instruction which may reduce the processing speed The MUL instruction always passes power The combinations of valid variable data types for the MUL instruction are as follows PAB je Integer or Real Integer Constant Integer Constant Integer or Real Rel Real InegerorReal RealConstant RealConstant Integer or Real SP tes N e If the result C exceeds the range expressed by the vari able data type in C Overflow turns ON and the result of MUL is undefined See 3 2 19 Overflow e If either A or B are Reals both are converted to Reals prior to the multiplication However if C is an Integer the number is truncated after the decimal point since the re sult is placed in C Pro Control Ver 4 0 User Manual 4 27 Chapter 4 Instructions wire DIV Divide A Data Di EN DN B Data A c C Destination variable 5 When the DIV instruction is executed A is divided by B and the quotient is placed in C If both A and B are Integers or Integer constants the DIV instruction performs an Integer multiplication Otherwise the instruction performs a floating point instruction which may reduce the processing speed The DIV instruction always passes power The combinations of valid variable data type
76. m the variables used for basic mathematical operations e It is convenient to use arrays to set up variable names that are the same as the corresponding PLC device Example PLC Devi Pro Control Editor vi wre Array Variable Variable Type E xternal Input X 100 Discrete External Output Y 100 internal Relay M 100 Data Register DI100 For information about Variable Settings refer to the Pro Control Editor Operation Manual 2 4 Creating Variables For information about reserved System Variables see Chapter 3 System Variables Pro Control Ver 4 0 User Manual Chapter 2 Variables yaya Variable Types The Pro Control software uses three types of variable Discrete bit Integer and Real Timer and Counter data types that comprise these variable types are also used Arrays can be defined and used within each Discrete Integer and Real variable type For details about defining arrays see 2 3 Access to Variables The maximum size of an array the number of elements it contains is 65535 However the actual number of elements that can be used by any application is limited by the size of the GLC unit s variable storage area The amount of memory available to the GLC for variables is limited to 32Kbytes Be sure to design your system so that the number of variables used does not exceed the GLC unit s available memory limit Use the following table to find the amount of memory used by e
77. mmable Logic Controllers Temperature Controllers and Inverters However the devices connected with Flex Network Uniwire or DIO are notincluded External Data Communication Device Pro Control Ver 4 0 User Manual 9 Memo 10 Pro Control Ver 4 0 User Manual IS Controller Features ime Operation Mode Overview The GLC contains both screen display and I O control features The following overview describes the GLC operation modes GLC Features Operation Controller Features RUN Mode Constant Scan Mode Mode Control Features Logic Program Runs the Logic Program Read Write various RUN Mode at the designated time types of I O Percent Scan Mode Display Mode Designates the tc e Screen Display percentage of a single e Data Transfer with scan used by the PLC temperature controller s program controller inverter e OFFLINE Mode STOP Mode Initial Settings e Halt Logic Program Mode Screen Data Transfer Allows the editing writing Self Diagnosis etc of the Logic Program IN 1 When OFFLINE mode is entered the controller will stop Re entering RUN mode will reset the GLC a Important sme GLC Scan Overview GLC Scan time includes ladder circuit execution time screen processing time SIO communication time and touch panel processing time as follows A Reading I O input information Logic Operating logic program time Writing I O output information Scan t
78. mple of the CTU instruction notifying the Error_Detection output when five errors have been counted during a one minute period Minute_Timer_Start OperationError_Counter_Reset Operation_Error Counter Error_Detection ote The counter is reset every scan To count an event like the 3 example above be sure that the PT instruction is positioned before the CTU instruction s position The CTU instruction is a level input Pro Control Ver 4 0 User Manual 4 39 Chapter 4 Instructions 4 40 eva CTD DOWN Counter CE Counter starting bit Variable CTD R Counter reset bit lee ch PV Preset value of counter R PY oC Q Counter output CV Present value of counter Operation Overview PR unr Reset cree OD own Counter Output Discrete O 0 Counter Output Discree i O When the counter input bit CE passes power the current value Variable CV is decremented by one if the counter reset bit Variable R is OFF When the current value Variable CV becomes equal to or less than zero after decrementing the counter output bit Variable Q is turned ON and the instruction passes power When the counter reset bit Variable R is ON the preset value Variable PV is set to the current value Variable CV The counter output bit Variable Q is also turned OFF Operating Example The following diagram is an example of the CTD instruction passing power and notifying the Error_Detection ou
79. n calculate the total size of stacks ie The number of stacks that can be used in the logic program X is 128 Only the FOR NEXT instruction and the JSR instruc tion use nests See 4 2 46 FOR NEXT Instruction Pro Control Ver 4 0 User Manual 4 45 Chapter 4 Instructions 4 46 eh RET Return Subroutine lt RETURN When the RET instruction receives power control is forced from a subroutine and is returned to its original location Execution continues from the rung that follows the Jump Subroutine JSR instruction Because the SUB END instruction returns control when the subroutine is completed the RET instruction is not always necessary The RET instruction must be the last instruction on a rung ie FOR NEXT Repeat FOR EN DN NEXT The FOR NEXT instruction repeats the logic program between corresponding FOR and NEXT instructions for the number of times specified in A After executing A the specified number of times the step that follows the NEXT instruction will be processed If A is equal to or less than 0 the logic program flow between FOR and NEXT is not executed but jumps to the step that follows the NEXT instruction The FOR NEXT instruction always passes power Valid variable data types for the FOR NEXT instruction are as follows Integer Integer Array Integer Constant Restrictions e Each FOR instruction requires a NEXT instruction Do not insert instructions
80. n an Integer array A 32 bit shift rotates the entire 32 bit Integer Every second the Table1 Integer array s values are moved up one position towards 0 and a new value is placed at the end of the elements Table1 99 in the Table1 Integer array SHR Mon EN DN EN DN A c IN SUT Table1 99 M Timer2 Timer2_Start Table1 32 Table1 New value ni Delete Table1 BG a 76 1 7 a we r 2 111 y 3 7 a Pa w 95 6 r 96 9 er y p 37 56 all ag 13 we r 39 a 4 New Value 3 Pro Control Ver 4 0 User Manual 4 25 Chapter 4 Instructions WEI ADD Add A Data ADD B Data JEN DN A C C Destination Variable B When the ADD instruction is executed A and B are added and the result is placed in C If both A and B are Integers or Integer constants the ADD instruction performs an Integer addition Otherwise the instruction performs a floating point instruction which may reduce the processing speed The ADD instruction always passes power The combinations of valid variable data types for the ADD instruction are as follows A Se Integer or Real Integer Constant Integer Constant Integer or Real Real Rea InegerorReal Real Constant Real Constant Integer or Real SP re 2 e Ifthe result C exceeds the range expressed with the vari able data type in C Overflow turns ON and the result of ADD is undefined See 3 2 19 O
81. ndows 2000 Operating System Windows XP APPLICABLE PRODUCTS The following is a list of products used with Pro Control Editor Ver 4 0 software In this manual the following names are used to describe series units and products GP Type refers to the GP PRO PB III for Windows Ver 6 0 Series ProductName Model GPType GLC100 GLC100 GLC100L GLC100 LG 41 24V GLC100L Series Series GLC100S GLC100 5G41 24V GLC100S GLC300 GLC300 GLc300T GLC300 TC41 24V GLC300T Series Series GLC2300 GLC2300L GLC2300 LG 41 24V GLC2300L Series GLC2300T GLC2300 TC41 24V GLC2300 G LC2000 G LC2400 GLC2400T GLC2400 TC41 24V GLC2400 Series Series nn GLC2600T GLC2600 TC41 24V GLC2600 Pro Control Ver 4 0 User Manual Preface HOW TO USE THIS MANUAL The GP PRO PB III C Pack01 comprises seven manuals Refer to the following table for a summary of the contents of these manuals which are included in the CD ROM Disc 2 as PDF files The Installation Guide PDF file is not in cluded In addition to these manuals data files containing supplemental information on updated functions are also provided To access these additional data files click the Start button on your Windows OS main screen On the Programs Pro face ProPB3 C Package click ReadMe For detailed information on Digital Electronics Corporation hard ware products refer to each model s user manual sold separately GP PRO PB III C Package 01 Describ
82. ne their validity E g Ifthe word TANK has been entered prior to the word tank the word tank will be invalid even though it can be entered e Variable names can use numbers except for the first character Pro Control Ver 4 0 User Manual 2 1 Chapter 2 Variables 2 2 e Variable names cannot contain any spaces e The underscore _ is the only special character that can be used e Double underscores _ _ cannot be used OK tank_1 Not OK tank__1 e Since it is a reserved character the sign cannot be used e Since the names LS and LSS are reserved for use by the GLC unit s system in the System Data Area the Read Area and for Special Relays they cannot be used for variable names See Chapter 5 LS Area Refresh ae e If variable names are grouped according to data type the N variables are easily found when searching the variable lists in Pro Control Editor It is easy to see an under score _ that is entered between the group name and the variable name E g When several conveyer belts are in the system Con veyer A Conveyor B Conveyor C etc name the motor and sensor variables according to their par ticular conveyer Conveyor A variables A_Motor A_Sensor Also name Discrete bit as B Integer as floating point as F AB_MotorStartingSwitch Al_MotorRotationNumber AF_MotorPowerRatio The variables used for a contact point and a coil are distinguished fro
83. nteger Array Integer Array ime MOV Transfer Mov EN DN IN OUT When the MOV instruction is executed IN is copied to OUT If IN and OUT are different variable types the resulting type will be converted to the same type as OUT To transfer arrays both IN and OUT must be identical in type and size The MOV instruction always passes power 4 16 Pro Control Ver 4 0 User Manual Chapter 4 Instructions The combinations of valid variable data types for the MOV instruction are as follows Real Variable or Array inInegerorReal Stes N Overflow will turn ON if the operation involves a Real to Integer data type conversion and the value is too large to transfer In this case the result will be undefined The following examples illustrate how to use the MOV instruction e The first diagram describes how to clear a variable e The second diagram describes how to block transfer arrays Example 1 Clear A variable can be cleared with the MOV instruction by transferring a 0 into the variable Clear_Sales OM GUT Sales Example 2 Block Transfer A block transfer can be performed with the MOV instruction by specifying two arrays of the same type and size When an array Recipe_A is transferred to an array that is the same type Current_Recipe it can be transferred with a single MOV instruction Transfer_Recipe_A Recipe_A Ik UT Cu
84. o display the controller s current condition and effect its operation System variables perform like normal variables however since they are reserved they cannot be automatically created and deleted Initial Variable pee eme a e Displays the average Logic Time AvgLogTime Read Perform Write once every Integer 64 scans Unit ms Displays the latestLogic Time Read AvgS cantime Perform Write Display processing Integer Unit ms Clock100ms Create 0 15 clock Stores Day data as BCD two digits ditCount Currently notused by GLC Counts the number oftimes a ere oun variable is forced ON or OFF 10 S tatus Displays the I O Driver s condition Integer 10 ne Displays the latestLogic Scan Time HOE Te Read Perform Write Unit ms f Stores Month data as BCD two digits P latF orm Indicates the controller s platform the number ofscans performed Displays the latestLogic Scan Time S canTime Read P erform Write Display processing Unitms status Displays the controller s version data Stores Y ear data as BCD two digits gt Erz me Pro Control Ver 4 0 User Manual 3 1 Chapter 3 System Variables i 2 Initial Variable A System Variable Explanation oe e F aultCode Displays the latesterror code Integer F aul ung eee rung where the error S ger i gt 5 I0F ault Turns ON when an error occurs Discrete 6 Ww Turns ON when an overflow occurs g 0
85. o oo lofo oo oo oo oo Jo lo fo JoJo lo fo Jon 4 44 Pro Control Ver 4 0 User Manual Chapter 4 Instructions e Ifa value other than 0 to 31 is entered in Input A the error code 13 is set to FaultCode as a minor error OverFlow See 3 2 19 Overflow e The DECO instruction does not support variable modifi ers assigned bit word or byte e The DECO instruction is supported by GLC2000 Series units only Cee JMP Jump gt gt Lahelhlame SP ter N When the JMP instruction receives power control jumps to the specified label Unlike the JSR instruction control does not automatically return to the rung following the JMP rung A jump cannot be made over a START SUB START SUB END ACT START or ACT END label Jumping upward might create an infinite loop Execute control to periodically reach the END rung and reset the watchdog timer JMP must be the last instruction on a rung wire JSR Jump Subroutine gt gt SubroutineName lt lt When the JSR instruction receives power the control jumps to the specified subroutine After the subroutine executes control returns to the rung that follows the JSR instruction and continues to execute that rung s instruction A subroutine name can not be dupli cated JSR must be the last instruction on a rung Restrictions Up to 128 jumps from the subroutine can be used One subroutine jump uses one stack When using the FOR NEXT instructio
86. ode s DIO menu Be sure the DIO unit is securely attached prior to using any of the DIO unit s features For instructions on how to move to the OFFLINE mode screen refer to the GLC Series User Manual sold separately OwA DIO Unit Self Diagnosis This section explains how to use the DIO unit s Self Diagnosis feature For detailed information refer to the GLC Series User Manual sold separately 1 Touch the OFFLINE screen s Controller Menu to open the DIO Menu area GLC100 Series GLC300 Series MAIN CTRL MENU DIO MENU MAIN MENU DIN DOUT CONTROLLER MENU DIO DRIVER MENU EE DIN DOUT 2 Touch the DIN DOUT key to open the following screen GLC100 Series GLC300 Series a DIN DOUT CHECK DIN DOUT CHECK err cance Warning En For testing purposes external output is produced Confirm that no external devices are connected to the GLC For testing purposes external output is produced Confirn that no external devices are connected to the GLC Insert the DIN DOUT loopback cable Connect the DIN DOUT loopback cable 3 Touch either the Set or Start key to start the self diagnosis 6 12 Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers This check sends an output signal from the output unit to the input unit Therefore prior to performing this check be sure to attach the DIN DOUT loopback cable A Wh
87. ore I O units are using the same S No range overlap atthe high S No The high speed counter unithas S Speed counter unit Nos for eight stations Resetso there is no S No overlap Two or more I O units are using the same S No range overlap atthe single axis S No The positioning unithas S Nos for positioning unit four stations Resetso there is no S No overlap Two or more terminals are using the same 803 S No is outside of accepted range terminal number possible causing transfer failure Download the projectfile again Pro Control Ver 4 0 User Manual Chapter 6 I O Drivers Initialization Errors Error Code Contents J Somon The ID number read from the Flex Network There is no Flex Network unit y oe unitis notcorrect Occurs when the unitis attached notatached A hardware error may have occurred Intial Error Initialization failed to Reference details refer to 822 synchronize the F lex Network I F unit e ex l nce unit s user manual and the units driver Please contact your local P ro Face distributor Check b see ifthe communication line is Analog unitsetling error disconnected power is notsupplied to the O unit or the I O unitis malfunctioning Runtime Errors C Eror Code Cones J sowon There is an I O uniterror loose CHEEK all Tene witing connector malfunction etc RETU ME re i Network User Manual sold separately Disconnected outputs ignal line of This is likely due
88. ot less than or equal to 2 4 32 Pro Control Ver 4 0 User Manual Chapter 4 Instructions eye NE Compare lt gt A Data NE B Data TJEN N A B The NE instruction passes power if A is not equal to B The combinations of valid data types for the NE instruction are as follows Integer Constant Integer Constant Real Constant Real Constant Stes Real values need to be compared very carefully For example Na acalculation might result in 1 99999999999 which is not equal to 2 tweak TON Timer ON Delay IN Timerstarting bit Variable PT Preset time of timer Pi al Q Timeupflag PT ET ET Present value of timer When the timer input bit IN receives power the TON instruction adds the preset time PT in milliseconds and the timer output bit Q turns ON Operation Overview Special Variable Variable Type m eco 0 Timer Output Bit pm Timing Bit When power is passed to the timer starting bit IN the TON instruction starts and PT ET Present Value TI e Variable ET the elapsed time begins to increment in milliseconds e Variable TI the timing bit turns ON e Variable Q the timer output bit turns OFF Pro Control Ver 4 0 User Manual 4 33 Chapter 4 Instructions When the elapsed time Variable ET increments and equals the preset time Variable PT e Variable ET the elapsed time holds the current value e Variable TI the timing bit turns OFF e Variable Q t
89. otating left 4 20 Rotating right 4 21 Shifting left 4 22 Shifting right 4 23 Block Transferring Arrays 4 17 Byte Access Method 2 8 C Channel Setting I O Monitor 6 7 Coil Type Output Instructions 4 7 4 8 4 10 Communication Check Procedure 6 3 Connectors recommended 6 13 Constant Scan Time Mode 1 1 1 4 1 5 Controller Current condition 3 1 Data shared 5 1 Fault conditions 3 8 Fault status history 3 8 Features 1 1 5 1 Operating status 3 8 Conversion Real to Integer 4 17 Convert Instructions 4 4 Copyright 1 Counter Data Variables 2 3 2 4 Counter Instructions 4 3 D D A Conversion Table 6 9 Damages or Third Party Claims 1 Data Watch List 3 5 3 6 Device Address 2 1 Device Allocation Table Layout Sheet 7 Digital Electronics Corporation 1 7 2 1 DIN DOUT Loopback Cable 6 13 Pro Control Ver 4 0 User Manual DIO Unit 6 12 Input errors 6 15 Output errors 6 16 Discrete Arrays accessing 2 6 Discrete Variable Setting I O Monitor 6 6 Discrete Variables 2 3 Disk Media Usage Precautions 8 Display Area Data shared 5 1 Display Features 1 1 2 4 5 1 Divide by Zero Errors 3 13 E Enable I O 7 4 Error Codes DIO unit initialization errors 6 18 internal errors 6 18 Runtime errors 6 18 setting errors 6 17 FaultCode errors 7 3 Flex Network I O unit initialization errors 6 11 internal errors 6 11 Runtime errors 6 11 setting errors 6 10 Troubleshooting 6 10 Error Messages Pro Control 7 1 Error Proce
90. owest numbered element within the array is dropped N must range from 0 to 32 x array size 1 inclusive The SHR instruction always passes power Pro Control Ver 4 0 User Manual 4 23 Chapter 4 Instructions 4 24 The combinations of valid variable data types for the SHR instruction are as follows Cc Integer or Integer Constant Integer Integer or Integer Constant Integer Array is same size as A Integer or Integer Constant Integer Overflow is turned ON if N is out of range The result is undefined SP tet N See 3 2 19 Overflow Operating Example When Using Bits The following diagram is an example of a one bit right shift used to track the position of abit Each bit in the Stock1 Integer indicates the current position Atevery program scan or fixed interval the bit is right shifted to the next position When the bit reaches the last bit position 0 the Last_bit variable is turned ON signaling the completion of the operation Stock1 x 0 Last_ bit O Bits 24 23 22 3 2f1 o Shifted Right Stock1 1p Op POLO e 1 pit position Delete Stock o e oa Jo Jo Jo lo ol lalol lolololao The position after the operation Pro Control Ver 4 0 User Manual Chapter 4 Instructions Operating Example When Using Arrays The following diagram is an example an SHR instruction being used to transfer values of each element i
91. ported by the Pro Control Editor software are as follows BIT OPERATION INSTRUCTIONS woo Normally Open Fi ne power to pass when the contactturns Normally Allows power to pass when the contactturns OFF OUTM Output Coil j urns physical output devices or internal Retention Coil iscrete variables and expressions ON or OFF 4 Negaba Con urns a variable OFF ifthe coil receives power NEG NM Negated fi l Retention Coil and ON ifitdoes notreceive power Latch Coil urns a variable ON ifthe coil receives power SET SM Latch Retention Power remains ON until itreceives another Coil explicit instruction Unlatch Coil Turns a variable OFF ifthe coil receives power RST RM Unlatch Power remains OFF untl itreceives another Retention Coil explicit instruction T C P ositive N Negative Transiton 1 For the instructions listed above when a variable is retentive it automatically changes to one of the right side instructions Therefore when entering data in this screen be sure to use one of the left side non retentive instructions In the following example when an OUT instruction s variable is retentive the screen icon changes to M Variable Type Name Light r Cancel gt m U rpt ae m i i CHF Not Assigned Output l Create Of ee Converted Fl Aray Size to M W Designate Retentive type Pro Control Ver 4 0 User Manual 4 1
92. rea Address LS0019 System Data nWord LS0020 Read Area Area LS0035 mWord LS2032 Special Relay Special Relay LS2047 LS Area refresh provides SIO Data Transfer provides data sharing data sharing 1 Start Address defined in the Initial Settings of the GLC unit 2 n 0to 20 depending on the System Data Area setting items selected in the Initial Settings of the GLC unit 3 m 0 to 16 depending on the size of the Read Area designated in the Initial Settings of the GLC unit Pro Control Ver 4 0 User Manual 5 3 Chapter 5 LS Area Refresh To set the Read Area and Variable LS to exceed 16 words the Read Area can be set to 256 words and Variable LS can be set to 276 words A maximum of 16 words is recommended when setting data that is shared with the controller display processing features and external communication device Example When the Variable LS size is set to 36 words and the Read Area is set to 256 words Display External Controller Processing Communication Feature Feature Device Le a System Data System Data System Data Area Area Area 20 Words L3 35 16 Words 256 Words L3 275 Example When the Variable LS is set to 276 words and the read area is set to 16 words Display External Controller Processing Communication Feature Feature Device L3 0 System Data System Data 20 Words Area Ara Area estasi 000 Loong ea eee 4 16 Words 256 Words LS 275 i
93. rivers 1 Important Enter data within the output range according to the number of the I O points in each I O unit 1 O Points O Range 8 0025 0 to 65535 AN I e Data will be output to the I O unit for the number of I O points ac cording to the MODEL selected on the I O MONITOR SETUP win dow a Important e If data that cannot be expressed in the 8 bit system is entered in an 8 point output I O unit excess data will be ignored 15 0 VO Monitor o JoJo JolJolJol J JoJoJo JoJo Jo Entering 386 8 Point TERRE 1 olololojo l lo Outputs 130 Output Unit FOR FN ADO4AH FN DAO4AH O Monitor Channel Setting The system switches successively through the selectable settings when the channel area is pressed GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series 1 0 MONITOR SETUP next esc veq sc 1 0 MONITOR SETUP NEXT CANCEL 1 CH 1 2 3 4 CH oO MBE JIE IL ie D wo s When the NEXT button is pressed the system switches to the next I O MONITOR screen The screen is different for FN ADO4AH and FN DA04AH Pro Control Ver 4 0 User Manual 6 7 Chapter 6 I O Drivers FOR FN ADO4AH O Monitor This displays input data GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series 1 0 MONITOR SNe 1 a 10 MONITOR RETURN CH CH1 INPUT RANGE 0
94. rocessed as GLC display features Therefore to use the above screen change and buzzer functions with the GLC unit s controller functions the System Data Area s mapped functions the LS Area must be registered as a variable with the controller and display features operating via the sharing of LS area data This is defined as the LS Area Refresh It is also possible to use an area outside of the System Data Area if the GLC controller features or display features need to share data Display Features Controller Features LS Area Variable Area LS Area Refresh System Data Area CONTROLLER MEMORY For User defined variables etc Other Shared Area oO oor User Area System Data Area Other Shared Area Z gt J00 Special Relays 4 gt Special Relays Pro Control Ver 4 0 User Manual 5 1 Chapter 5 LS Area Refresh W4 LS Area Refresh Settings When using the logic program to designate the LS Area the desired variable must first be registered in Pro Control Editor This section describes this procedure VARIABLE REGISTRATION In Pro Control Editor s Data menu click Variable Type to open the Variable Type dialog box The variables handled in the LS Area are registered as an internal Integer and array In the following example the size of a System Area array is 20 words and any addi tional data to be shared will be added to that amount Therefor
95. rrent_Recipe RecipeA 100 Current_Recipe 100 Element 0 Element 0 Element 1 Element 1 Element 2 Element 2 om test oul oe Element 99 Element 99 Pro Control Ver 4 0 User Manual 4 17 Chapter 4 Instructions ware BMOV Block Transfer 4 18 A Source variable B Start from Array A B C To Array E C D Number of Data E Destination variable When the BMOV instruction is executed elements of one array can be copied into elements of another array Specifically the D elements are copied from index B in array A to index C in array E The BMOV instruction is valid for Integer arrays only When transferring arrays can be differentsizes The BMOV instruction always passes power The combinations of valid variable data types for the BMOV instruction are as follows Kane 7 8 6 andD Constant Integer Array Operating Example The following diagram is an example of some of the seven Integer array Source elements being copied into some of the six Integer array Destination elements Source 4 is copied to Destination 2 Source Destination Source 5 is copied to Destination 3 Source 6 is copied to Destination 4 The BMOV instruction is defined as follows While the program is running the controller checks whether refer ences to array A and E elements ex ist in the BMOV instruction If an invalid array is referred to a major error occurs and FaultCode is s
96. s for the DIV instruction are as follows a SB O O integer or Real Integer Constant Integer Constant Integer or Real Real Integerorkeal Real Constant Real Constant Integer or Real ave e If Bis zero or if the result C exceeds the range expressed by the variable data type in C Overflow turns ON and the result of DIV is undefined See 3 2 19 Overflow e If either A or B are Reals both are converted to Reals prior to the division However if C is an Integer the num ber is truncated after the decimal point since the result is placed in C 4 28 Pro Control Ver 4 0 User Manual Chapter 4 Instructions Wwa MOD Modulus A Data MOD B Data JEN DN A C C Destination variable B When the MOD instruction is executed A is divided by B and the remainder is placed inC The MOD instruction performs only Integer or Integer Constant operations The MOD instruction always passes power The combinations of valid variable data types for the MOD instruction are as follows PAB S Integer Constant Integer Constant Se te Na Overflow is turned ON when divided by zero and the result C is undefined See 3 2 19 Overflow The following example is an Integer 27 divided by 5 and the result 2 is placed inc 5 A 27 sa B 5 25 2 c wi INC Increment A Data INC EN DN A When the INC instruction is executed one 1 is added to A and the result is then placed in A
97. sisssicssiscsssccsssecscsssvcccsssscaccssiaecessncsisiscaniaieceesss 1 1 LIT BEE SET Ve 1 1 1 12 Controller Feature Overview a en 1 2 12 RUN Mod nennen 1 4 CHAPTER 2 VARIABLES 2 1 Variable Nine nannten 2 1 2 2 Variable Ty 6S sisssccsssnssiccoessnencssscnascocecesesensensacsistneadessexeccues sxanceseascesoassneucssoes 2 3 2 3 ACCESSING Variables scsessensisisssnscesscassonssccessissassseassvasscaesnndsantosaesoanssasstanscaniuen 2 6 CHAPTER 3 SYSTEM VARIABLES N Dek System Variaple Listen u ee 3 1 Sobek How to Use System VMarable su a a 3 2 3 2 System Variable Details o cicissssescossccscecossnensssscsnsssovsvecssestvanssvocesssonssvenessees 3 3 3241 AvgLogicTiMe nei 3 3 3 2 2 VE RV AN Te ee ee 3 3 3 23 ClocklOOMS nee 3 4 324 HDAV anne ee 3 5 a PForcECOUNee nna a E AEE AE EAE 3 5 32 0 FIOS Sisina a E a aO aaa 3 6 3 21 AeA CUMING ee 3 6 EB AM SEIU UI ee 3 7 32 9 PP LAUT en chenvnaduceniussencalescecandias ancncraseraueiaigiusturaadiactenineermens 3 7 3 2 L0 ScanC OMIM sainia e ea a aaaeeeaa lant EAEE 3 7 Dial ESC ME ea E RS 3 8 3 2 12 Wales 3 8 EI TI een 3 9 Pro Control Ver 4 0 User Manual Preface Die VC 0 115 1 auers E E orienta ieee 3 10 IL E D een 3 10 3 2 10 EaU IE OOS n e E 3 11 3 2 17 FaultiRuns ea a ea 3 12 218 HOF OMIM naeh 3 12 3 219 OWEN ikea 3 13 3 2220 Command 22 fo say ce asic naa THEATRE PENERONERNSRIRERN FARHEDERE AANELAEEERACRRFERUNENERPERHENR 3 14 3 2 21 Disabl Auto Start ae 3
98. splay and logic program are processed at the same time The display process will not be given priority Ge Set the percent scan value so that the scan time is set every N 10ms unit Pro Control Ver 4 0 User Manual ya Variables This chapter explains the variables used by Pro Control Editor yee Variable Names Pro Control Editor uses variables to store I O or counter data Variables are user designated and use the designated names in a logic program In aconventional PLC the area that stores data is called a device address which has a specific name for each PLC manufacturer Company Specific Internal Data PLC External I O Relay Timer Register X001 M 100 T200 D00001 Omon o TIM 000 DM 0000 Time et For Pro Control Editor give arbitrary names to these device addresses and use them as variables in the logic program PLC Pro Control xoni yoo Switch Lampi 1 O 1 off Off k50 Timer Mann A TimerStart TON 1 T200 TN Q ae Off BO PT ETIO T200 002 Timer Q Lam 1 i 25 N Off off Device Address of Each Manufacturer Variable Name user defined name in Pro Control Editor Variable names can be designated by the user When designating variable names be aware ofthe following limitations e Variable names can be up to 20 characters 20 bytes e No differentiation is made between upper and lower case characters However the order in which words are registered will determi
99. ss Subroutine 3 13 Error S No Display 6 4 Errors FaultCode 7 3 BCD BIN conversion 4 42 Divide by Zero 3 13 Divide by zero 3 13 External Communication Device communication 5 5 Intermittent 3 8 Pro Control Editor 7 4 External Communication Device Data shared 5 3 5 5 F Fault Flags 3 9 Fault Status History 3 8 Faults 7 3 Fill Transferring Integer Arrays 4 19 Flex Network Communication check 6 2 Communication speed 6 3 Drivermenu 6 2 I O unit errors 6 10 Maximum input output points 6 6 Fi Index Floating Decimal Point Values 2 4 Floating Point Instruction 4 26 4 27 4 28 FOR NEXT Restrictions 4 46 Forced Variables 3 5 Foreign Regulations 1 G GLC Available memory limit 2 3 Clock data variables 3 2 Scan time 1 1 GP PRO PB III C Pack01 7 Graphic Processing Time 1 5 1 6 O Connection Check 6 5 6 14 I O Driver Status 3 6 I O Errors 6 1 DIO unit 6 17 Flex Network 6 10 I O Monitor Settings 6 5 I O Points Maximum Available 6 6 O Read I O Write 1 3 O Watchdog Timeout 1 3 Infinite Loops 4 45 Initialization Errors 6 11 DIO unit 6 18 Flex Network I F unit 6 11 Input Data Display I O Monitor 6 8 Input Terminal S No 6 14 Input Only I O Unit 6 6 Instruction Overflows 3 13 Instructions Bit operation 4 1 Convert 4 4 Counter 4 3 Floating point 4 26 4 27 4 28 Mathematical 4 2 4 3 Movement 4 2 Timer 4 3 Integer Arrays accessing 2 7 Integer Variables 2 3 Intellectual Properties 1 In
100. stem variable F aultC ode data and modify the program Refer to the Pro Control Editor Oper ation Manual 3 4 View ing System Variables Check ifthe System variable Command has been written and modify the program See 3 2 25 FaultCode and 3 2 29 Command Check whether the data transfer cable is unplugged or ifthere is noise influence Ifthe problem continues please contact your local Pro face distributor for assistance Data cannot write to or read l fom the 1 0 Enable I O is notselected Setthe enable I O 1 Enable I O is used to input and output data between the GLC and I O units After downloading the logic program to the GLC unit the external I O devices cannot be performed in RUN mode As a safety precaution the I O is not en abled in the default setting It is necessary to set up the Enable I O beforehand to write and read data to the I O For information on how to set up refer to Pro Control Editor Operation Manual 3 1 Controller Configuration and 3 2 Starting and Stopping the Controller Pro Control Ver 4 0 User Manual Index A A D Conversion Table 6 8 Arrays 2 3 Accessing 2 7 Block Transferring 4 17 Defining 2 6 Fill Transferring 4 19 Indirectly accessing 2 9 Shifting right 4 25 Available Memory for Variable Storage 2 3 B BCD BIN Conversion Errors 3 13 Instructions 4 42 Bit Access Method 2 8 Bit Operation Instructions 4 1 Bit Positions R
101. ta push the OUT button to output the data All data is displayed in decimal format GLC100 GLC2300 Series GLC300 GLC2400 GLC2600 Series 170 MONITOR RET TA CH 1 OUTPUT RANGE O Sv i OUTPUT 0 5 oO JE o 4085 SET of o as or NZ Wak a ak ok N Lede side fet We dls flo i Nr je 1 0 MONITOR She 1 RETURN 1 h Touch the up and down arrow to increase decrease the range value Each time the value is changed the new value is output to the I O unit e Pressing the RET URN button will clear the current data even if the output hold setting in the I O unit is ON D A Conversion Table Input Range Setting 0 4095 0 4095 0 10V 0 4095 0 The settings of the range changeover switch on the I O unit side are read in the internal unit when the I O unit s power is plugged in To change the settings of the range changeover switch be sure to turn the I O unit s power OFF and then ON again The settings of the range changeover switch on the I O unit side are read in when the logic program is switched to RUN mode To change the settings of the range changeover switch change the logic program to STOP mode and then to RUN mode If the ranges do not match the data cannot be written correctly Pro Control Ver 4 0 User Manual 6 9 Ch
102. ter 3 System Variables wees HFaultOnMinor FaultOnMinor is referred to by the controller as to whether the logic program will stop or continue to execute when a minor fault occurs and there is no ErrorHandler subroutine in the logic program For information about ErrorHandler subroutine see 3 2 19 Over flow Variable Type Discrete Set by User Bil 2 Run Controller Initial Value OFF BiR 4 ResetController mE cW H PercentAlloc PercentAlloc is used when the controller is set to the Percent Scan mode It sets the percentage of the GLC unit s total CPU time available to the controller Set a scan time value in multiples of 10ms PercentAlloc can be set in the initial settings or the configuration settings when the controller is in RUN mode Usually PercentAlloc can be set up in the Setup dialog box See 1 1 3 RUN Mode Variable Type Integer Setby User Range 0 50 Initial Value 50 Writable The controller stores the screen number set by Screen Variable Type Integer Set by User InitialValue O Writable re e The screen number set in Screen defines which base screen 1 to display This number is not the currently displayed screen number e Screen is available only with the GLC2000 Series unit Pro Control Ver 4 0 User Manual 3 15 Chapter 3 System Variables IN IN IK Important When changing screens use the Screen in the logic program Do NOT write dire
103. ternal Clock 3 4 Internal Errors DIO unit 6 18 Flex Network I F unit 6 11 K Keypad Data Entry I O Monitor 6 9 L Ladder Circuit Execution Time 1 1 Latch Fault Flag 3 8 Layout Sheets Device Allocation Table 7 Microsoft Excel data format 7 Tag Layout Sheet 7 2 Liability 1 Logic Program Execution time 1 5 Features 1 2 Loopback Cable creating 6 5 6 6 6 13 LS Area Refresh 5 1 LSS Area 5 2 Mathematical Faults 3 13 Mathematical Instructions 4 2 Memory Variable Storage 2 3 Microsoft Excel Data Format 7 Minor Faults 3 13 3 15 Mitsubishi 2 1 Models I O Monitor 6 5 Movement Instructions 4 2 N Negative Transition Contact 4 12 Nests 4 45 4 46 O OFFLINE Mode 1 1 6 2 Omron 2 1 Operating Status Controller 3 8 Operation Mode 1 1 Output Only I O Unit 6 6 Overflows Instruction 3 13 Real to Integer conversion 3 13 P Percent Scan Time Mode 1 1 1 4 1 6 PLC Device Address 2 1 PLC Manufacturers 2 1 Positive Transition Contact 4 11 Precautions and Warnings 8 Pro Control Editor 2 1 Error messages 7 1 Program errors 7 4 Programming Mode 1 3 R Range Changeover Switch 6 8 6 9 Read Area 5 3 ReadMe txt 1 7 Real Arrays accessing 2 9 Real Values comparing 4 30 4 31 4 32 4 33 Real Variables 2 3 2 4 Real to Integer Conversion 3 13 4 17 Real to Integer Conversion Overflows 3 13 Registered Trademarks 6 RESET Mode 6 2 Retentive Non retentive Variables 1 3 4 1 Rollover 3 7 RUN Mod
104. the Motor variable turns ON B The Start variable turns OFF but does not affect the Motor variable C The Stop variable turns ON the Motor variable resets D The Motor variable stays reset until the Start variable turns ON SP tes The SET instruction can be used only with non retentive vari ables With retentive variables use the SM Latch Retention Coil instruction Pro Control Ver 4 0 User Manual 4 9 Chapter 4 Instructions wa RST Reset Coil Variable When the coil receives power after the RST instruction is executed the variable turns OFF The variable remains OFF until explicitly turned ON by another instruction such as a SET instruction Because RST is a coil type output instruction and can be used only once per rung it should appear at the end of the rung When the variable mapped to the RST instruction is retentive the following symbol is displayed in the logic program RM The following diagram is an example ofthe RST instruction s function Stop Motor Stop Motor A When the Stop variable turns ON the Motor variable resets B When the Stop variable turns OFF the Motor variable reset by the RST instruc tion willremain OFF until another instruction turns itON ste x e The RST instruction can be used only with non retentive variables With retentive variables use the RM Unlatch Retention Coil instruction Real and Integer variables cannot be reset set to z
105. tive e At scan when the counter is reset the counter is not up dated One scan is required for resetting a counter VARIABLE ATTRIBUTES Variables have the following attributes in addition to the variable type This section describes each attribute Internal e Used in the internal GLC e Cannot be used for the external I O e Is equivalent to the PLC s Internal relay internal register 1 0 e External I O can be used e Variables mapped to I O in the I O configuration e Is equivalent of the PLC s I O relay Refer to the Pro Control Editor Operation Manual 2 11 I O Configuration Retentive The variable value is retained when the power is down since a retentive variable is managed by static memory The retentive variable has the value set at the programming mode as an initial value When the power is shutdown or the GLC unit is reset the data prior to it is stored However when the controller is reset by monitoring mode or Command the value set at the programming mode is initialized Also reading in CLC PRW file the result of execution can be saved in the Editor However when the reten tive variable is used as an initial value the initial value set at reading in the Editor will be lost if it is designed to change the variables during the execution of the logic program Be sure to design the system carefully Non retentive data will be cleared to zero or OFF Global There are Global and Non Global variabl
106. to disconnection in the sensor for inputto the analog unit A D outputsignal line Check the outputsignal conversion unit line of the sensor The High S peed Counter unit detected an error Error in the high speed counter unit Refer to the Flex Network High S peed Counter User Manual sold separately Inifal error in he high speed counter Check to see ifcommunication line is 844 m disconnected power is notsupplied to the 1 0 unit or the I O unitis malfunctioning Check to see ifcommunication line is disconnected power is notsupplied to the 0 unit or the I O unitis malfunctioning The positioning unit detected an error Refer to the Flex Network Single Axis Positioning Unit User Manual sold separately Communication error with the high Speed counter unit Error in the single axis positioning unit Check to see ifcommunication line is disconnected power is notsupplied to the 0 unit or the I O unitis malfunctioning Communication error with the single axis positioning unit Internal Errors Bas ers Resetthe GLC Ifan error code stil appears try to identify ifthe error is due to the GLC itself or to a related connected Driver Error A major system error has occurred une jor sy Write down the error code and refer to your GLC User Manual eS eee ee local P ro face distributor Pro Control Ver 4 0 User Manual 6 11 Chapter 6 I O Drivers wee DIO Driver This section explains the GLC OFFLINE m
107. tput when five errors have been counted during a one minute period The timer resets the counter every minute Minute_Timer_Start OperationError_Counter_Reset D Operation _Error_Counter Operation_Error_Occur 75 Error_Detection Ir cE 2 C R sw CW ste The counter is reset every scan To count an event like the N example above be sure that the PT instruction is positioned before the CTU instruction s position The CTD instruction is a level input Pro Control Ver 4 0 User Manual Chapter 4 Instructions ats CTUD UP DOWN Counter CE Counter starting bit Variable CTUD UP UP Counter flag wie gh R Counter reset bit UP Qu R ao PV Preset value of counter py CY Q Counter output QU UP Counter Output QD Down Counter Output CV Present value of counter Operation Overview Special Variable Variable Type Preset Value Current Value OD own Counter Output Discree 0 Counter Output Dir DD When the UP Counter enable flag Variable UP is ON the CTUD instruction operates the same as the CTU UP Counter instruction When the UP Counter enable flag Variable UP is OFF the CTUD instruction operates the same as the CTD Down Counter instruction IR Counter Reset PV CV UP QU After executing the CTUD instruction e Ifthe current value Variable CV is equal to or greater than the preset value Variable PV the Counter Output and UP Counter Output Variable Q and Varia
108. trol Ver 4 0 User Manual Chapter 1 Controller Features CONSTANT SCAN TIME MODE Constant Scan Time Mode constantly executes the program during the set scan time During Constant Scan Time Mode the screen is used mainly for data display and less for operation and the control logic program is the priority Logic time Reading I O input information Processing I START time forlogi Operating logic program Start Stop Operation program 2 14 O changeable i Operation 4 END P 5 PEND oe Writing I O input inf ti ritin input information fixed 9 p Graphic pro cessing time Scan time logic time Graphic processing time Setting time for constant scan time mode ms logic time changeable E g Ifthe constant scan time is set to 50ms and logic executing time is 30ms the Graphic processing time 50ms 20ms 30ms A longer logic executing time will result in a shorter Graphic processing time There fore although the GLC unit s display response time will be slower the logic program willexecutecontinuously N If the logic execution time exceeds 50 of the setting time the logic I time will automatically adjust to 50 of the scan time E g when the important setting time for constant scan is 50ms and the logic time is 30 ms the scan time will be 60 ms Note Set the scan time in multiples of 10ms Pro Control Ver 4 0 User Manual 1 5 PERCENT SCAN TIME MODE
109. ult turns ON when an I O fault occurs with the I O driver This error remains until the next error occurs or the controller is reset Check the IOStatus variable for de tailed status of the I O driver When IOFault turns ON IOFault is displayed in the Data Watch List window ata Watch List File Edit View Help On 10 202 0 0 0 0 0 0 0 0 3 12 Pro Control Ver 4 0 User Manual Chapter 3 System Variables Variable Type Discrete Setby Controller Read Only For I O driver error code descriptions see Chapter 6 I O Drivers CWA HOverflow Overflow turns ON when a mathematical fault occurs Overflow stays ON until the next mathematical instruction or conversion Mathematical faults include instruction overflows Real to Integer conversion overflows and divide by zero errors When a mathematical fault occurs a minor fault also occurs which executes an ErrorHandler subroutine if one exists The ErrorHandler subroutine is an error process subroutine and must first be created under the name ErrorHandler The value in the Fault system variable defined whether the controller will stop or continue execution of the logic program See 3 2 22 Fault Variable Type Discrete Set by Controller Read Only In the following example the ErrorHandler subroutine detects BCD BIN conversion errors and stops execution of the logic program SUB START ErrorHandler EG Fault FaultGo
110. ultCode is updated with the error code and Overflow isturned ON See 3 2 16 Faultcode and 3 2 19 Overflow ste If the value cannot be converted the value in B is undefined Pro Control Ver 4 0 User Manual Chapter 4 Instructions wem BIN Binary Conversion A Data BIN EN DM B Result to be stored A When the BIN instruction is executed a binary coded decimal number assigned to A is converted to binary format and the result is placed in B The BIN instruction does not pass power if an error occurs Integer iger Integer Constant If A is not a valid BCD number FaultCode will be updated with the error code and Overflow will turn ON See 3 2 16 Faultcode and 3 2 19 Overflow Foster If the value cannot be converted the value in B is undefined wie ENCO Encode A Data ENGO B Result to be stored EN DN The value entered in A is encoded and output to B The ENCO instruction reads the 32 bits in A for the bit position that is ON and this position is output to B as a binary value If several bits in A are ON the most significant bit position is output to B The ENCO instruction always passes power The combinations of valid variable data types for the ENCO instruction are as follows Integer Array Integer Array same size as A Integer Constant Pro Control Ver 4 0 User Manual 4 43 Chapter 4 Instructions E g If0x000000
111. verflow e If either A or B are Reals both are converted to Reals prior to the addition However if C is an Integer the num ber is truncated after the decimal point since the result is placed in C Er SUB Subtract A Data SUB EN DN B Data A c C Destination Variable B When the SUB instruction is executed B is subtracted from A and the difference is placed in C If both A and B are Integers or Integer constants the SUB instruction performs an Integer subtraction Otherwise the instruction performs a floating point instruction which may reduce the processing speed The SUB instruction always passes power 4 26 Pro Control Ver 4 0 User Manual Chapter 4 Instructions The combinations of valid variable data types for the SUB instruction are as follows Aw B EEE Integer or Real Integer Constant Integer Constant Integer or Real Rel Reo InegerorReal Real Constant Real Constant Integer or Real e Ifthe result C exceeds the range expressed with the vari able data type in C Overflow turns ON and the result of SUB is undefined See 3 2 19 Overflow e If either A or B are Reals both are converted to Reals prior to the subtraction However if C is an Integer the number is truncated after the decimal point since the re sult is placed in C Wie MUL Multiply SP tes Re A Data MUL f EN DN B Data A c C Destination variable B When the MUL instruction is executed A is mu

Download Pdf Manuals

image

Related Search

Related Contents

MANUEL D`INSTALLATION / DU PROPRIÉTAIRE  StarTech.com 7 Port USB 2.0 Hub    Schwimmbadwärmepumpe Kibernetik S15  Samsung SCH-V600 User Manual  ILOG Solver 6.1 Debugger User`s Manual  Samsung GT-E1160 คู่มือการใช้งาน  Prova - Amazon Web Services  Owner`s Manual • VHF WIRELESS INEAR SYSTEM • IEM 100    

Copyright © All rights reserved.
Failed to retrieve file