Chapter 1. INTRODUCION Chapter 1. GENERAL 1.1 Guide to User’s Manual This User’s Manual gives the specifications, performance and handling instructions for each of the necessary units of the GLOFA-GM6 series PLC system. The configuration of the User’s Manual is as follows. Title Content Chapter 1...
Page 8
Chapter 1. INTRODUCION 1.2 Features 1) GLOFA-GM series features: (1) Design on the basis of international standard specifications(IEC 1131-3) • Easy programming device support. • Languages in compliance with IEC1131-3 are given. (IL/ LD / SFC) (2) Open network by use of communications protocol in compliance with international standard specifications. (3) High speed processing with an operation-dedicated processor included.
Page 9
Chapter 1. INTRODUCION 1.3 Terminology The following table gives definition of terms used in this manual. Terms Definition Remarks Example) A standard element that has a specified function which configures CPU module the system. Devices such as I/O board, which inserted onto the Module Power Supply module mother board or base unit.
Page 10
Chapter 1. INTRODUCION Terms Definition Remarks Current flows from the switch to the PLC input terminal if a input signal turns on. Sink Input Current flows from the PLC input terminal to the switch after a input signal turns on. Source Input Current flows from the load to the output terminal and the PLC output turn...
Page 11
Chapter 2. SYSTEM CONFIGURATION Chapter 2. SYSTEM CONFIGURATION The GLOFA-GM6 series has various modules suitable to configuration of the basic, computer link and network systems. This chapter describes the configuration and features of each system. 2.1 Overall Configuration The following shows the overall configuration of the GLOFA-GM6 series. STOP GM6-CPUA PAU/REM...
Page 12
Chapter 2. SYSTEM CONFIGURATION 2.2 Product List The following table shows product list of GLOFA-GM6 series. 2.2.1 GM6 series Configuration Items Models Description Remarks • Maximum I/O points: 256 GM6-CPUA • Special functions : RS -232 communication • Maximum I/O points : CPU module GM6-CPUB •...
Page 13
Chapter 2. SYSTEM CONFIGURATION Items Models Description Remarks A/D conversion • Voltage/current input : 4 channels G6F-AD2A module • DC -10 to 10V / DC -20 to 20 mA • Voltage output : 4 channels G6F-DA2V D/A conversion • DC -10 to 10V module •...
Chapter 2. SYSTEM CONFIGURATION 2.3 System Configuration Types System configuration is classified into 3 types that Basic system, Computer link system executing data communications between the CPU module and a computer by use of a computer link module(G6L-CUEB/C ) and Network system controlling the PLC and remote I/O modules.
Page 15
Chapter 2. SYSTEM CONFIGURATION 2.3.2 Computer Link System Computer Link System communicates data between the CPU module and peripheral devices like a computer or a printer by use of RS -232C and RS-422(or RS-485)interface of the computer link module. The G6L-CUEB or G6L -CUEC are the computer link module for GM 6 series. For details of computer link module, refer to related User's Manual.
Page 16
Chapter 3. GENERAL SPECIFICATIONS Chapter 3. GENERAL SPECIFICATION 3.1 General specifications The following shows the general specifications of the GLOFA-GM series. Item Specifications References Operating ambient 55 °C temperature Storage ambient +75 °C temperature Operating ambient 5 ~ 95%RH, non-condensing. humidity Storage ambient 5 ~ 95%RH, non-condensing.
Chapter 4. CPU module Chapter 4. CPU MODULE 4.1 Performance specifications The following shows the general specifications of the GLOFA-GM series. Specifications Items Remarks GM6-CPUA GM6-CPUB GM6-CPUC Operation method Cyclic operation of stored program, Interrupt task o peration I/O control method Scan synchronized batch processing method(Refresh method) Ladder Diagram(LD) Programming language...
Page 18
Chapter 4. CPU module 4.2 Operation Processing 4.2.1 Operation Processing Method 1) Cyclic operation A PLC program is sequentially executed from the first step to the last step, which is called scan. This sequential processing is called cyclic operation. Cyclic operation of the PLC continues as long as conditions do not change for interrupt processing during program execution.
Page 19
Chapter 4. CPU module 2) Time driven interrupt operation method In time driven interrupt operation method, operations are processed not repeatedly but at every pre-set interval. Interval, in the GM6 CPU module, can be set to between 0.01 to 4294967.29 sec. This operation is used to process operation with a constant cycle.
Page 20
Chapter 4. CPU module 4.2.3 Scan Time The processing time from a 0 step to the next 0 step is called scan time. 1) Expression for scan time Scan time is the addition value of the processing time of scan program that the user has written, of the task program processing time and the PLC internal processing time.
Page 21
Chapter 4. CPU module 4.2.5 Timer Processing The CPU module timer is on incremental timer which increase its present value according to the measuring time. Three types of On Delay Timer(TON), Off Delay Timer(TOF) and Pulse Timer(TP) are available. Its measuring range is 0.001 to 4,294,967,295 sec (1,193 hours) by 1 ms. For details, refer to ‘GLOFA -GM Programming’.
Page 22
Chapter 4. CPU module Pulse Timer Process Time Change and Contact On/Off If input condition turns on, output contact (Q) turns on. The process time is newly changed when the timer function block is executed. When the process time reaches the setting time (process time = setting time), the contact (Q) turns off. The contact turns off after the setting time regardless of input condition off status.
Page 23
Chapter 4. CPU module 4.2.6 Counter Processing The CPU module counter increment/decrement the present counting value by the detection of rising edge(off à on) of input signal. Three types of counter are increment counter, Decrement counter and Increment-Decrement Counter. For details, refer to ‘GLOFA – GM Programming’. •...
Page 24
Chapter 4. CPU module (3) Increment/Decrement Counter • It should have Increment input condition (CU), Decrement input condition (CD), load (LD) and setting value (PV). NAME CTUD BOOL BOOL ▶CU BOOL ▶ CD BOOL BOOL BOOL • If reset signal(R) turns on, counting value (CV) is set to ‘0’. •...
Page 25
Chapter 4. CPU module 4.3 Program 4.3.1 Program Configuration A program consists of all of the function elements that is needed to execute a particular control. It is to be stored in the internal RAM of the CPU module or the flash memory of the memory module. The function elements are classified as below.
Page 26
Chapter 4. CPU module 4.3.2 Program Execution Procedure The followings explain the program execution procedure when the power is applied or the mode setting switch of CPU module is in the RUN status. Program operation processing is executed as the procedure given below Operation start •...
Page 27
Chapter 4. CPU module 1) Initialization program (1) Function • The Initialization program initializes the program to execute scan and task programs. • The initialization can be executed with the restart mode which has been specified for program. (2) Restart mode execution conditions •...
Page 28
Chapter 4. CPU module 3) Task program (1) Function • In order to process internal/ external signal which occurs periodically or non-periodically, the task program temporarily stop the operation of scan program and processes first the corresponding function (2) Types •...
Page 29
Chapter 4. CPU module 4.3.3 Task The followings explain the program structure and tasks of the GMWIN, that is, the GLOFA -GM programming S/W, in order to give an understanding of the task function Program 1 Task 1 Program Block ( program 1) Program 2 Function...
Page 30
Chapter 4. CPU module 1) Task types and functions The following table show the types and functions of tasks Type Time driven task External interrupt task Internal interrupt task Specifications Number The rising edge or on Time driven interrupt At the rising edge of input state of the BOOL variable (up to 4,294,967.2 9sec Start up condition...
Page 31
Chapter 4. CPU module (4) Relationship of task program to initialization or scan program • User defined tasks will not start while the initialization task program is being executed. • As scan program has the lowest priority, if a task is invoked the scan program will be stopped and the task programs will be processed prior to them.
Page 32
Chapter 4. CPU module 4) External contact program processing method The following explains in the case that the task( start -up condition) of a task program has been set to an external input signal. (1) Settings that have to be set for the input module •...
Page 33
Chapter 4. CPU module • If execution of an internal task program is requested, the execution conditions will be checked when scan program has finished its execution. Therefore, if an internal task execution conditions, during ‘one’ scan, has been occurred and disappeared (if the specified contact has been turned from OFF to ON, and then from ON to OFF) by scan program or (time driven or external) task program the task will not be executed as the execution condition can not be detected at the time that execution conditions are being checked.
Chapter 4. CPU module 8) Example of program configuration and processing When the task and program have been registered as below, • Task registration : T_SLOW (interval : T#10ms, priority : = 0) PROC_1 (single : %MX0, priority : = 3) E_INT1 (interrupt : %IX0.0.1, priority : = 0) •...
Page 35
Chapter 4. CPU module 4.3.4 Error Handling 1) Error Classification Errors occur due to various causes such as PLC system defect, system configuration fault or abnormal operation result. Errors are classified into fatal error mode, which stops system operation for system stability, and ordinary error mode, which continues system operation with informing the user of its error warning.
Page 36
Chapter 4. CPU module 4.3.5 Precautions when using special modules This system offers convenience and high performance in using special modules compared with the existing methods. Therefore, take some precautions when composing the system. Check the system after the following items have been thoroughly understood. 1) Special module programming (1) Special function block is offered for each special module to make programs concise and to prevent errors in writing down the user program.
Page 37
Chapter 4. CPU module 4) Restart Program Example (1) System Configuration The followings give an example for writing the initialization program of the system where a special module has been loaded onto its basic base unit shown as below figure. The followings describe an example for writing the ‘cold/warm restart program ’...
Page 38
Chapter 4. CPU module • Program : cw_rst.src (cold/warm restart initialization program) Variable Variable Name Data type Initial value Description type INI_START BOOL Start condition of initialization AD2INI.ACT ARRAY[4] OF BOOL Shows active channel AD01_DT ARRAY[4] OF BOOL Set by parameter Select digital output type AD01_CH ARRAY[4] OF BOOL...
Page 39
Chapter 4. CPU module • Program : scan.src (scan program) STAT Variable Variable Name Data type Description type READ FB Instance AD_CH ARRAY[4] OF BOOL Assign a channel of AD module to be used READ.DONE ARRAY[4] OF BOOL Indicates the reading operation is completed READ.STAT USINT Shows the error status of AD read FB...
Chapter 4. CPU module 4.4 Operation Modes The CPU module operates in one of the four modes - the RUN, STOP, PAUSE and DEBUG mode. The following describes the PLC operation processing in each operation mode. 4.4.1 RUN mode In this mode, programs are normally operated. The first scan start in the RUN mode If the operation mode is the RUN mode when the power is applied...
Page 41
Chapter 4. CPU module 4.4.2 STOP mode In this mode, programs are not operated. 1) Processing when the operation mode changes The output image area is cleared and output refresh is executed. 2) Operation processing contents (1) I/O refresh is executed. (2) Normal or abnormal operation and mounting conditions of the loaded module are checked.
Page 42
Chapter 4. CPU module 3) Debug operation conditions • Two or more of the following four operation conditions can be simultaneously specified. Operation conditions Description Executed by the one If an operation command is ordered, the system operates one operation unit operation unit, (step over) and stops.
Page 43
Chapter 4. CPU module 3) Remote operation mode change Remote operation mode change is available only when the operation mode is set to the remote STOP mode (i.e., the mode setting switch position is in the ‘STOP →PAU/REM’). Mode Mode change by Mode change using FAM setting Mode Change...
Page 44
Chapter 4. CPU module 4.5 Functions 4.5.1 Restart mode The restart mode defines how to initialize variables and the system and how to operate in the RUN mode when the system starts its operation with the RUN mode by re-application of the power or mode change. Two restart modes, cold and warm restart are available and the execution condition for each restart mode is given below.
Page 45
Chapter 4. CPU module • Restart mode is executed as the figure given below when the power has been re-applied during execution of the CPU module Power ON STOP Operation mode Operation in the STOP mode Abnormal Data that remains at power failure Normal Cold Restart...
Page 46
Chapter 4. CPU module 4.5.2 Self-diagnosis 1) Functions (1) The self - diagnosis function permits the CPU module to detect its own errors. (2) Self-diagnosis is carried out when the PLC power supply is turned on and when an error occurs the PLC is in the RUN state.
Page 47
Chapter 4. CPU module 4.5.3 Remote function The CPU module can be controlled by external operations (from GMWIN and computer link module, etc.). For remote operation, set the mode setting switch of CPU module to remote position. 1) Remote RUN/STOP (1) The remote RUN/STOP permits external operations to RUN/STOP the CPU module under the condition that the mode setting switch of CPU module is in the remote position.
Page 48
Chapter 4. CPU module 4.5.4 I/O Force On/Off function 1) Force On/Off setting method Force on/off setting is applied to input area and output area. Force on/off should be set for each input and output, the setting operates from the time that ‘Force I/O setting enable’...
Page 49
Chapter 4. CPU module 4.5.5 History Log-In The GM6 CPU stores 3 operation histories such as error occurrence, mode change, and power shut - down. Each history log-in contains the last 16 operation histories. 1) Error occurrence • Record occurrence time and error code when an error occurred while the CPU is in RUN mode. 2) Mode change •...
Page 50
Chapter 4. CPU module 3) External device Ordinary-fault (Warning) Processing. (1) If a warning of external device is detected and the corresponding flag of the system flag _ANC_WB[n] is set to on, the flag will checked from the _ANC_WB[0] at the time that scan program finishes its execution.
Page 51
Chapter 4. CPU module Example Error detection If the user program had detected a system fault and set _ANNUN_WR _ANC_WB[10] to ON, the states of _ANNUN_WR _ANN_WAR [0..7] will be shown as left after the scan has been _ANC finished _WAR[0] _ANC _WAR[1]...
Page 52
Chapter 4. CPU module 4.6 Memory Configuration The CPU module includes two types of memory that are available by the user. One is program memory which is used to store the user programs written to implement a system by the user. The other is data memory which stores data during operation.
Page 53
Chapter 4. CPU module 3) Purpose (1) System area it used to store the self-created data of the CPU module for system management and GMWIN system control data. (2) System flag area it used to user flags and system flags. The user operates it with flag name. (3) Input image area It used to store input data read from input modules.
Page 54
Chapter 4. CPU module 4.7 I/O No. Allocation Method 1) I/O No. allocation means to give an address to each module in order to read data from input modules and output data to output modules. 2) Fixed 64 points are allocated to each module for I/O points. 3) Fixed 64 points are allocated regardless of mounting/dismounting or type of modules.
Chapter 4. CPU module 4.8 Names of Parts The following describes the names and functions of parts of the CPU module. ① ② ③ ④ ⑤ ⑥ ⑦ Name Function Indicates the operation status of the CPU module. • On : when the CPU module operates with the mode setting switch in the local or remote RUN state.
Page 56
Chapter 4. CPU module Name Function GM6-CPUA : N/A (The terminal block is not installed) GM6-CPUB : RS -422/485 interface terminal block GM6-CPUC : High speed counter input terminal block GM6-CPUB GM6-CPUC φA 24V Terminal block for built-in special function φB 24V PRE 24V PRE 0V...
Page 57
Chapter 5. BATTERY Chapter 5. BATTERY 5.1 Specifications Item Specifications Normal voltage 3.0 VDC Warranty life time 5 years Application Programs and data backup, and RTC runs in power failure Specifications Lithium Battery, 3 V External dimension (mm) Φ 14.5 × 26 5.2 Handling Instructions 1) Do not heat or solder its terminals.
Page 58
Chapter 6. MEMORY MODULE Chapter. 6 USING THE USER PROGRAM IN FLASH MEMORY This chapter describes user program storage and operation it. Flash memory is used to store a user program and installed in PLC. 6.1 Structure Dip switch for operation Flash memory 6.2 How to use Read / Write is available to flash memory in accordance with selection of DIP switch.
Page 59
Chapter 7. INPUT AND OUTPUT MODULES Chapter. 7 DIGITAL INPUT AND OUTPUT MODULES 7.1 Notes on Selecting Input and Output Modules The followings describe instructions for selection of digital I/O modules that will be used in the GLOFA -GM6 series. 1) The types of digital input are current sink input and current source input.
Page 60
Chapter 7. INPUT AND OUTPUT MODULES 7.2 Digital Input Module Specifications 7.2.1 8-points 12 / 24 VDC input module (source / sink type) Model DC Input Module Specifications G6I-D21A Number of input points 8 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current...
Page 61
Chapter 7. INPUT AND OUTPUT MODULES 7.2.2 16-points 12 / 24 VDC input module (source / sink type) Model DC Input Module Specifications G6I-D22A Number of input points 16 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current 3 mA 7 mA...
Page 62
Chapter 7. INPUT AND OUTPUT MODULES 7.2.3 16-points 24 VDC input module (source type) Model DC Input Module Specifications G6I-D22B Number of input points 16 points Insulation method Photo coupler Rated input voltage 24 VDC Rated input current 7 mA Operating voltage range 20.4 VDC to 28.8 VDC (ripple: less than 5%) Maximum simultaneous input points...
Page 63
Chapter 7. INPUT AND OUTPUT MODULES 7.2.4 32-points 12 / 24 VDC input module (source / sink type) DC Input Module Model Specifications G6I-D24A Number of input points 32 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current 3 mA 7 mA...
Page 64
Chapter 7. INPUT AND OUTPUT MODULES 7.2.5. 32-points 24 VDC input module (source type) DC Input Module Model Specifications G6I-D24B Number of input points 32 points Insulation method Photo coupler Rated input voltage 24 VDC Rated input current 7 mA Operating voltage range 20.4 to 28.8 VDC (ripple: less than 5%) Maximum simultaneous input points...
Page 65
Chapter 7. INPUT AND OUTPUT MODULES 7.2.6 8-points 110 VAC input module AC Input Module Models Specifications G6I-A11A Number of input points 8 points Insulation method Photo coupler Rated input voltage 100 to 120 VAC (50/60 Hz) Rated input current 11 mA (110 VAC / 60 Hz) Operating voltage range 85 to 132 VAC (50/60 Hz ±...
Page 66
Chapter 7. INPUT AND OUTPUT MODULES 7.2.7 8-points 220 VAC input module Model Specifications G6I-A21A Number of input points 8 points Insulation method Photo coupler Rated input voltage 200 to 240 VAC (50/60 Hz) Rated input current 11 mA (220 VAC / 60 Hz) Operating voltage range 170 to 264 VAC (50/60 Hz ±...
Page 67
Chapter 7. INPUT AND OUTPUT MODULES 7.3 Digital Output Module Specifications 7.3.1. 8 -point relay output module Relay Output Module Models Specifications G6Q-RY1A Number of output points 8 points Insulation method Photo coupler Rated load voltage & current 24 VDC 2A(resistance)/point, 5 A/ COM 220 VAC 2A(COSΨ...
Page 68
Chapter 7. INPUT AND OUTPUT MODULES 7.3.2. 16-point relay output module Relay Output Module Models Specifications G6Q-RY2A Number of output points 16 points Insulation method Photo coupler Rated load voltage & current 24 VDC 2A(resistance)/point, 5 A/ COM 220 VAC 2A(COSΨ = `1)/point, 5A/COM Minimum load vol tage/current 5 VDC / 1 mA Maximum load voltage/current...
Chapter 7. INPUT AND OUTPUT MODULES 7.3.3 16-point transistor output module (sink type) Transistor Output Module Models Specifications G6Q-TR2A Number of output points 16 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.5 A /point, 4 A / COM Off leakage current...
Page 70
Chapter 7. INPUT AND OUTPUT MODULES 7.3.4 16-point transistor output module (source type) Transistor Output Module Models Specifications G6Q-TR2B Number of output points 16 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.5 A /point, 4 A / COM Off leakage current...
Page 71
Chapter 7. INPUT AND OUTPUT MODULES 7.3.5 32-point transistor output module (sink type) Transistor Output Module Models Specifications G6Q-TR4A Number of output points 32 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.1 A / point, 2 A /COM Off leakage current...
Page 72
Chapter 7. INPUT AND OUTPUT MODULES 7.3.6 32-point transistor output module (source type) Transistor Output Module Models Specifications G6Q-TR4B Number of output points 32 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.1 A / point, 2 A /COM Off leakage current...
Page 73
Chapter 7. INPUT AND OUTPUT MODULES 7.3.7 8-point triac output module Models Triac Output Module Specifications G6Q-SS1A Number of output points 8 points Insulation method Photo coupler Rated load voltage 100 to 240 VAC (50 to 60 Hz) Minimum load voltage 264 VAC Maximum load current 1 A / point, 4 A / 1 COM...
Page 74
Chapter 7. INPUT AND OUTPUT MODULES Chapter. 7 DIGITAL INPUT AND OUTPUT MODULES 7.1 Notes on Selecting Input and Output Modules The followings describe instructions for selection of digital I/O modules that will be used in the GLOFA -GM6 series. 1) The types of digital input are current sink input and current source input.
Page 75
Chapter 7. INPUT AND OUTPUT MODULES 7.2 Digital Input Module Specifications 7.2.1 8-points 12 / 24 VDC input module (source / sink type) Model DC Input Module Specifications G6I-D21A Number of input points 8 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current...
Page 76
Chapter 7. INPUT AND OUTPUT MODULES 7.2.2 16-points 12 / 24 VDC input module (source / sink type) Model DC Input Module Specifications G6I-D22A Number of input points 16 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current 3 mA 7 mA...
Page 77
Chapter 7. INPUT AND OUTPUT MODULES 7.2.3 16-points 24 VDC input module (source type) Model DC Input Module Specifications G6I-D22B Number of input points 16 points Insulation method Photo coupler Rated input voltage 24 VDC Rated input current 7 mA Operating voltage range 20.4 VDC to 28.8 VDC (ripple: less than 5%) Maximum simultaneous input points...
Page 78
Chapter 7. INPUT AND OUTPUT MODULES 7.2.4 32-points 12 / 24 VDC input module (source / sink type) DC Input Module Model Specifications G6I-D24A Number of input points 32 points Insulation method Photo coupler Rated input voltage 12 VDC 24 VDC Rated input current 3 mA 7 mA...
Page 79
Chapter 7. INPUT AND OUTPUT MODULES 7.2.5. 32-points 24 VDC input module (source type) DC Input Module Model Specifications G6I-D24B Number of input points 32 points Insulation method Photo coupler Rated input voltage 24 VDC Rated input current 7 mA Operating voltage range 20.4 to 28.8 VDC (ripple: less than 5%) Maximum simultaneous input points...
Page 80
Chapter 7. INPUT AND OUTPUT MODULES 7.2.6 8-points 110 VAC input module AC Input Module Models Specifications G6I-A11A Number of input points 8 points Insulation method Photo coupler Rated input voltage 100 to 120 VAC (50/60 Hz) Rated input current 11 mA (110 VAC / 60 Hz) Operating voltage range 85 to 132 VAC (50/60 Hz ±...
Page 81
Chapter 7. INPUT AND OUTPUT MODULES 7.2.7 8-points 220 VAC input module Model Specifications G6I-A21A Number of input points 8 points Insulati on method Photo coupler Rated input voltage 200 to 240 VAC (50/60 Hz) Rated input current 11 mA (220 VAC / 60 Hz) Operating voltage range 170 to 264 VAC (50/60 Hz ±...
Page 82
Chapter 7. INPUT AND OUTPUT MODULES 7.3 Digital Output Module Specifications 7.3.1. 8 -point relay output module Relay Output Module Models Specifications G6Q-RY1A Number of output points 8 points Insulation method Photo coupler Rated load voltage & current 24 VDC 2A(resistance)/point, 5 A/ COM 220 VAC 2A(COSΨ...
Page 83
Chapter 7. INPUT AND OUTPUT MODULES 7.3.2. 16-point relay output module Relay Output Module Models Specifications G6Q-RY2A Number of output points 16 points Insulation method Photo coupler Rated load voltage & current 24 VDC 2A(resistance)/point, 5 A/ COM 220 VAC 2A(COSΨ = `1)/point, 5A/COM Minimum load voltage/current 5 VDC / 1 mA Maximum load voltage/current...
Page 84
Chapter 7. INPUT AND OUTPUT MODULES 7.3.3 16-point transistor output module (sink type) Transistor Output Module Models Specifications G6Q-TR2A Number of output points 16 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.5 A /point, 4 A / COM Off leakage current...
Page 85
Chapter 7. INPUT AND OUTPUT MODULES 7.3.4 16-point transistor output module (source type) Transistor Output Module Models Specifications G6Q-TR2B Number of output points 16 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.5 A /point, 4 A / COM Off leakage current...
Page 86
Chapter 7. INPUT AND OUTPUT MODULES 7.3.5 32-point transistor output module (sink type) Transistor Output Module Models Specifications G6Q-TR4A Number of output points 32 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.1 A / point, 2 A /COM Off leakage current...
Page 87
Chapter 7. INPUT AND OUTPUT MODULES 7.3.6 32-point transistor output module (source type) Transistor Output Module Models Specifications G6Q-TR4B Number of output points 32 points Insulation method Photo coupler Rated load voltage/current 12/24 VDC Operating load voltage range 10.2 to 26.4 VDC Maximum load current 0.1 A / point, 2 A /COM Off leakage current...
Page 88
Chapter 7. INPUT AND OUTPUT MODULES 7.3.7 8-point triac output module Models Triac Output Module Specifications G6Q-SS1A Number of output points 8 poi n ts Insulation method Photo coupler Rated load voltage 100 to 240 VAC (50 to 60 Hz) Minimum load voltage 264 VAC Maximum load current...
Page 89
Chapter 8. POWER SUPPLY MODULES Chapter 8. POWER SUPPLY MODULE This chapter describes the selection method, type and specifications of the power supply module. 8.1 Selection of power supply module Selection of the power supply module is determined by the total current consumption of d igital input modules, special modules and communications modules, etc.
Page 90
Chapter 8. POWER SUPPLY MODULES 8.2 Specifications Item GM6-PAFA GM6-PAFB GM6-PDFA GM6-PD3A Input voltage 85 to 264 VAC 85 to 264 VAC 12 / 24VDC 24VDC Input 50 / 60 Hz (47 to 63 Hz) – frequency Input current 0.7 / 0.35 A 0.7 / 0.35 A 1.5A (12VDC) 0.7A (24VDC)
Page 91
Chapter 8. POWER SUPPLY MODULES 8.3 Names of Parts The followings describe names of parts and their purposes of the power supply module. ① ② ③ ④ ⑤ Name Purpose Power LED It used to indicate the 5 VDC power supply. Connect 110 or 220 VAC power.
Page 93
Chapter 10. INSTALLATION AND WIRING Chapter 10. INSTALLATION AND WIRING 10.1 Installation 10.1.1 Installation Environment This unit has high reliability regardless of its installation environment, but be sure to check the following for system reliability and stability. 1) Environment requirements Avoid installing this unit in locations which are subjected or exposed to : (1) Water leakage and dust.
Page 94
Chapter 10. INSTALLATION AND WIRING The following shows the procedure for calculating the PLC system power consumption. 1) PLC system power consumption block diagram 2) Power consumption of each part (1) Power consumption of a power supply module Approximately 70% of the power supply module current is converted into power and 30% of that 70% dissipated as heat, i.e., 3/7 of the output power is actually used.
Page 95
Chapter 10. INSTALLATION AND WIRING (5) Average power consumption of input circuits if input modules (with points simultaneously switched ON) • Win = Iin × E × input points × the rate of points switched on simultaneously (W) Iin : input current (effective value for AC) (A) E: input voltage (actual operating voltage) (V) (6) Power consumption of the special module power supply •...
Page 96
Chapter 10. INSTALLATION AND WIRING 10.1.2 Handling Instructions To installing the temperature-measuring resistor input module, be sure to check the following: • Do not drop it off, and make sure that strong shock should not be applied. • Do not unload the PCB from its case. It can cause faults. •...
Page 97
Chapter 10. INSTALLATION AND WIRING (6) Terminal block Check its fixing. During drilling or wiring, do not allow any wire scraps to enter into the PLC. It can cause malfunction and fault. (7) Be cautious that strong shock does not applied to the I/O module. Do not separate the PCB from its case.
Page 98
Chapter 10. INSTALLATION AND WIRING [Fig.10.2] Clearance from the front device [Fig. 10.3] Vertical mounting [Fig 10.4] Horizontal mounting 10 - 6...
Page 99
Chapter 10. INSTALLATION AND WIRING 10.1.3 Mounting and Dismounting of module The following explains the mounting and dismounting of various modules. 1) Module mounting • Insert the module to mounting slot with sliding guide. • Check that the module is firmly mounted onto the base board. Locking part for Hook Hook Sliding...
Page 100
Chapter 10. INSTALLATION AND WIRING 2) Module dismounting • First, push the locked hook( ① ) and pull the module with direction of arrow ② . ① ② 10 - 8...
Page 101
Chapter 10. INSTALLATION AND WIRING 10.2 Wiring The followings explains the wiring instructions for use of the system. 10.2.1 Power Supply Wiring 1) When voltage fluctuations are larger than the specified value, connect a constant-voltage transformer. Use a power supply which generates minimal noise across wire and across PLC and ground.
Page 102
Chapter 10. INSTALLATION AND WIRING 4) Notes on using 24 VDC output of the power supply module • To protect the power supply modules, do not supply one I/O module with 24 VDDC from several power supply modules connected in parallel. •...
Page 103
Chapter 10. INSTALLATION AND WIRING 10.2.2 Input and Output Devices Wiring 1) Applicable size of wire for I/O wiring is 0.3 to 2 mm . However, it is recommended to use wire of 0.3mm convenience. 2) Separate the input and output lines. 3) I/O signal wires must be at least 100 mm away from high voltage and large current main circuit wires.
Page 104
Chapter 10. INSTALLATION AND WIRING 5) Ground LG (Power Supply Module) separately with FG (Base board). (A) Independent grounding : BEST (B) Joint grounding : GOOD (C) Joint Grounding : Not Allowed 6) If a malfunction occurs depend on grounding point, separate FG (Base Board) with ground. 10.2.4 Cable Specifications for wiring Cable Specifications (㎟) Kinds of external connection...
Page 105
Chapter 11. MAINTENACE Chapter 11. MAINTENANCE Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best conditions. 11.1 Maintenance and Inspection The I/O module mainly consist of semiconductor devices and its service life is semi-permanent. However, periodic inspection is requested for ambient environment may cause damage to the devices.
Page 106
Chapter 11. MAINTENACE 11.3 Periodic I nspection Check the following items once or twice every six months, and perform the needed corrective actions. Check Items Checking Methods Judgment Corrective Actions temperature 0 to 55°C Measure with thermometer Ambient Ambient 5 to 95% RH and hygrometer Measure humidity environment...
Page 107
Chapter 12. TROUBLE SHOOTING Chapter 12. TROUBLE SHOOTING The following explains contents, diagnosis and corrective actions for various errors that can occur during system operation 12.1 Basic Procedures of Troubleshooting System reliability not only depends on reliable equipment but also on short down-times in the event of faults. The short discovery and corrective action is needed for speedy operation of system.
Page 108
Chapter 12. TROUBLE SHOOTING 12.2.1 Troubleshooting flowchart used when the POWER LED turns OFF. The following flowchart explains corrective action procedure used when the power is all l i ed or the POWER LED turns OFF during operation Power LED is turned OFF Is the power Apply the power supply supply operating...
Page 109
Chapter 12. TROUBLE SHOOTING 12.2.2 Troubleshooting flowchart used when the STOP LED is flickering The following flowchart explains corrective action procedure use when the power is applied starts or the STOP LED is flickering during operation Stop LED goes OFF Read the error code in the system flag S/W error.
Page 110
Chapter 12. TROUBLE SHOOTING 12.2.3 Troubleshooting flowchart used when the RUN and STOP LEDs turns off. The following flowchart explains corrective action procedure use when the power is applied starts or the RUN and STOP LED is turned OFF is flickering during operation RUN and STOP LED is turned OFF Turn the power supply module from OFF to ON...
Chapter 12. TROUBLE SHOOTING 12.2.4 Troubleshooting flowchart used when the output load of the output module does not turns on. The following flowchart explains corrective action procedure used when the output load of the output module does not turn ON during operation Output load does not turn Measure the voltage Check the output status in monitor...
Chapter 12. TROUBLE SHOOTING 12.2.5 Troubleshooting flowchart used when a program cannot be written to the CPU module. The following flowchart shows the corrective action procedure used when a program cannot be wri tten to the PLC module Program cannot be written to the PC CPU Set the mode setting switch to the Is the mode setting switch remote STOP mode and execute...
Chapter 12. TROUBLE SHOOTING 12.3 Troubleshooting Questionnaire When problems have been met during operation of the GM6 series PLC, please write down this questionnaires and contact the service center via telephone or facsimile • For errors relating to special or communications modules, use the questionnaire included in the user's Manual of the unit 1.
Chapter 12. TROUBLE SHOOTING 12.4 Troubleshooting Examples Possible troubles with various circuits and their corrective actions are explained. 12.4.1 Input circuit troubles and corrective actions The followings describe possible troubles with input circuits, as well as corrective actions. Condition Cause Corrective Action Input signal close not Leakage current of external device...
Chapter 12. TROUBLE SHOOTING 12.4.2 Output circuit troubles and corrective actions The following desires possible troubles with output circuits, as well as corrective actions Condition Cause Corrective Action When the output is Off, • Load is half-wave rectified inside • Connect registers of tens to hundreds excessive voltage (in some cases, it is true of a solenoid)
Page 116
Chapter 12. TROUBLE SHOOTING Output circuit troubles and corrective actions(continued) Condition Cause Corrective Action The load off response • Over current at Off state • Insert a small L/R magnetic contact time is long [The large solenoid current fluidic load and drive the load using the same (L/R is large) such as is directly driven contact...
Page 117
Chapter 12. TROUBLE SHOOTING 12.5 Error code list STOP Operati Error Cause Corrective Action Diagnosis time start code Flickerin status mode g cycle Contact the servi ce center if it reactively occurs when Defect 0.4 sec When power is applied OS ROM error the power is re -applied.
Chapter 13. Dedicated Cnet communication for GM6 Chapter 13. Dedicated Cnet communication for GM6 13.1 Introduction The GM6 CPU module provides some basic Cnet communication functions without Cnet module. Although all functions of Cnet module are not supported, it will be very useful functions for users to perform simple Cnet communication.
Chapter 13. Dedicated Cnet communication for GM6 13.2 The example of system configuration Generally, the system configuration have two types; the 1:1 communication with PC and the connection with monitoring device (like PMU). The configuration when connected to PC : With this configuration, the communication program of PC can be a user’s own program (written in C or other programming language) or a commercial software like FAM or CIMON.
Chapter 13. Dedicated Cnet communication for GM6 13.3 The pin assignment of RS-232C connector of the GM6 dedicated Cnet communication The 1:1 connection with PC P L C ( G M 6 ) <The pin assignment of RS232C connector which are used the connection of PC and GM6 CPU> The 1:1 connection with the monitoring unit like PMU P M U P L C ( G M 6 )
Chapter 13. Dedicated Cnet communication for GM6 13.4 Frame s tructure Basic structure of frame Request frame(external communication devices→Cnet module) (Max. 256 Bytes) Tail Header Station Type of Frame Command Structurized data area (ENQ) command check(BCC) (EOT) ACK response frame(Cnet module→external communication devices, when data is normally received) (Max.
Page 122
Chapter 13. Dedicated Cnet communication for GM6 Remark Numerical data of all frames is ASCII code of hex value as long as there is not any definition. The contents that is indicated into hex -decimals are as follows : • Station number •...
Page 123
Chapter 13. Dedicated Cnet communication for GM6 Sequence of command frame Sequence of command request frame Station No. Command Formatted data EOT BCC (PLC ACK response) Station No. Command Data or null ETX BCC Station No. Command Error code ETX BCC (PLC NAK response) Sequence of Download/upload frame Station No.
Chapter 13. Dedicated Cnet communication for GM6 13.5 List of commands Commands used in dedicated communication service are as below Table : [Table 13.2 List of commands] Command Main command Command type Contents Sign ASCII code Sign ASCII code Reads direct variables of Bit, Byte, Word, Dword, and Indivi.
Chapter 13. Dedicated Cnet communication for GM6 13.6 Data type When direct variables and named variables are read/written, attention must be paid to data type of direct and named variables. Data type of direct variables Memory device type of GLOFA GM PLC : M(Internal memory), Q(Output), I(Input) Memory device type of GLOFA GK PLC : P, M, L, K, C, D, T, S, F Data type for direct variables is indicated next to direct variable indicating character '%'.
Chapter 13. Dedicated Cnet communication for GM6 13.7 Execution of commands(Ex.) Separately reading(RSS) direct variables Introduction This is a function that reads PLC device memory directly specified in accord with memory data type. Separate device memory can be read up to 4 at a time. Request format(PC-->PLC) Number Format...
Page 127
Chapter 13. Dedicated Cnet communication for GM6 Direct variables available according to PLC type are as follows : Table 13.4 Type of direct variables LONG Type BOOL Byte WORD DOUBLE WORD WORD %ML,% %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID QL,%IL %ML,% %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID...
Page 128
Chapter 13. Dedicated Cnet communication for GM6 Table 13.5 Number of data according to variables Available direct variable Number of data BOOL(X) %MX,%QX,%IX,%(P,M,L,K,F,T,C,D,S)X 1(Only lowest bit of these is available) Byte(B) %MB,%QB,%IB,%(P,M,L,K,F,T,C,D,S)W WORD(W) %MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W DOUBLE WORD(D) %MD,%QD,%ID,%(P,M,L,K,F,T,C,D,S)W • In data area, there are the values of hex data converted to ASCII code. Ex.1 The fact that number of data is H04(ASCII code value:H3034) means that there is hex data of 4 Bytes in data(DOUBLE WORD).
Page 129
Chapter 13. Dedicated Cnet communication for GM6 Example of use • This example supposes when 1 WORD from %MW20 of station No.1 and 1 WORD from %QW0.2.1 address are read. Also it is supposed that H1234 is entered in %MW20, and data of H5678 is entered in %QW0.2.1.
Page 130
Chapter 13. Dedicated Cnet communication for GM6 Continuous reading(RSB) of direct variable Introduction This is a function that reads the PLC device memory directly specified in accord wit h memory data type. With this, data is read from specified address as much as specified. Request format Number of data Format...
Page 131
Chapter 13. Dedicated Cnet communication for GM6 Table 13.6 Readable continuous variable area BOOL Byte WORD DOUBLE WORD LONG WORD %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID...
Page 132
Chapter 13. Dedicated Cnet communication for GM6 Table 13.7 Available direct variabl e s Available direct variable Number of data Byte(B) %MB,%QB,%IB WORD(W) %MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W DOUBLE WORD(D) %MD,%QD,%ID Ex.1 When memory type included in direct variable name of computer request format is W(WORD), and data number of computer request format is 03, data number of PLC ACK response after execution of command is indicated by •...
Page 133
Chapter 13. Dedicated Cnet communication for GM6 Example of use This example supposes when 2 DOUBLE WORDs from %MD0 of station No.10 are read. Also it is supposed that the following data are entered in %MD0 and %MD1 : %MD0 = H12345678 %MD1 = H9ABCDEF0 (Computer request format) Number...
Page 134
Chapter 13. Dedicated Cnet communication for GM6 Separate writing of direct variable (WSS) Introduction This is a function that directly specifies PLC device memory and writes in accord with data type. Device memory can be separately written up to 4 memories at a time. Request format Number Format...
Page 135
Chapter 13. Dedicated Cnet communication for GM6 The following shows direct variables available according to PLC type. Type BOOL Byte WORD DOUBLE WORD GM1/2 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID GM3/4/5 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %MX,%QX,%IX %MB,%QB,%IB...
Page 136
Chapter 13. Dedicated Cnet communication for GM6 Response format(for NAK response) Error code Station Command Format name Header Command Tail Frame check type (Hex 2 Bytes) Frame(Ex.) W(w) H4252 ASCII value H3230 H57(77) H5353 H34323532 • Station number, commands, and type of command are the same as computer request format. •...
Page 137
Chapter 13. Dedicated Cnet communication for GM6 Continuous writing of direct variable(WSB) Introduction This is a function that directly specifies PLC device memory and continuously writes data from specified address as much as specified length. Request format Form- Stat- Comm Number of data Head- Comm-...
Page 138
Chapter 13. Dedicated Cnet communication for GM6 BOOL Byte WORD DOUBLE WORD LONG WORD %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID %ML,%QL,%IL Request format(for ACK response) Format name Header Station No.
Page 139
Chapter 13. Dedicated Cnet communication for GM6 Example of use This supposes that HAA15056F is written in %QD0.0.0 of No.1 address. (Computer request format) Format Head- Station Comm- Command Variable Variable Number Frame Data Tail name type length name of data check Frame HAA150...
Page 140
Chapter 13. Dedicated Cnet communication for GM6 Monitor register(X##) Introduction Monitor register can separately register up to 32 in combination with actual variable reading command, and carries out the registered one through monitor command after registration. Request format Format Station Register Header Command...
Page 141
Chapter 13. Dedicated Cnet communication for GM6 Response format(for PLC ACK response) Format name Header Station No. Command Register No. Tail Frame check Frame(Ex.) X(x) ASCII value H3130 H58(78) H3146 • Station number, command and resister No. are the same as computer request format. •...
Page 142
Chapter 13. Dedicated Cnet communication for GM6 (For PLC ACK response after execution of command) Format name Header Station No. Command Register No. Tail Frame check Frame(Ex.) X(x) ASCII value H3031 H58(78) H3031 (For PLC NAK response after execution of command) Command Error code Format name...
Page 143
Chapter 13. Dedicated Cnet communication for GM6 Monitor execution(Y##) Introduction This is a function that carries out the writing of the variable registered by monitor register. This also specifies registered No. and carries out the writing of the variable registered in the No. Request format Format name Header...
Page 144
Chapter 13. Dedicated Cnet communication for GM6 → In case that the register format of register No. is the reading of named variable Format Station Register Number of Number of Frame Header Command Data Tail name blocks data check Frame Y(y) H9183AABB (Ex.)
Page 145
Chapter 13. Dedicated Cnet communication for GM6 Example of use This supposes that reading the variable registered with register No.’1’ in station No.’1’ is carried out. It is also supposed that the one registered is a named variable reading, the number of blocks is 1, and the data type is DINT.
Page 146
Chapter 13. Dedicated Cnet communication for GM6 13.8 Error code during NAK occurrence(for GM6 dedicated communication) Error Error type Contents Action to take code H0001 PLC system error Interface with PLC impossible Power On/Off Check whether another character than * Error occurred when ASCII data upper and lower cases(‘%’,’...
Page 147
Chapter 14 The RS422/485 communication of GM6-CPUB 14.1 Introductions .................14-1 14.2 Features ................14-1 14.3 Parameter setup ..............14-2 14.4 The status flag..............14-4 14.5 Monitoring ................14-5 14.6 Communication method and termination resistor ...14-6 14.7 RS-422/485 pin assignment..........14-6...
Page 148
Chapter 14. The RS422/485 communication of GM6-CPUB 14 The RS422/485 communication of GM6-CPUB 14.1 Introductions 1) The GM6- CPUB module can be used as the master station of RS422/485 network and applicable for the 1:N network of GLOFA PLCs and/or PC. 2) To operate the GM6-CPUB as the master station, basic parameters and high speed link parameters should be set properly.
Page 149
Chapter 14. The RS422/485 communication of GM6-CPUB 14.3 Parameter setup To start RS422/485 communication, The CPU module type should be a B-type CPU. (GM6-CPUB) Set the communication parameters of the ‘Basic Parameters’ of GMWIN software. Set the ‘High speed link 1’ of the ‘High Speed Link Parameters’ Enable the high speed link 1 with ‘Link Enable…’...
Page 150
Chapter 14. The RS422/485 communication of GM6-CPUB 2) High speed link parameter setup a) Only the ‘High speed link 1’ can be set as GLOFA 422/485 network type. b) The setup is similar as the high speed link parameter setup with other communication modules such as Fnet module.
Page 151
Chapter 14. The RS422/485 communication of GM6-CPUB 14.4 The status flag 1) Communication error counter flag Flag name : _M422_ERR_CNT[n] (Array_Byte Type, n = 0 ~ 31) Description Each byte of the ‘_M422_ERR_CNT[n]’ array indicates how many times communication errors occurred at the relevant station. For example, the _M422_ERR_CNT[5] is the error counter of station 5.
Page 152
Chapter 14. The RS422/485 communication of GM6-CPUB 14.5 Monitoring Users can monitor the communication status of RS422/485 network with the monitor function of the GMWIN software. The high speed link parameter 1 monitoring screen is used for monitoring the RS422/485 network status. The CPU module should be a B-type, and assigned as master station in the basic parameter setting.
Page 153
Chapter 14. The RS422/485 communication of GM6-CPUB 14.6 Communication method and termination resistor 1) Data type Data bit : 8 bits Stop bit : 1 bit Parity : None 2) Communication speed (Baud rate) : Selectable one of 9600, 19200, 38400 bps 3) Termination resistor When use a long cable for connecting two or more PLCs, a termination resistor should be connected at the both ends of network.
Page 154
Chapter 15 The PID function 15.1 Introductions................15-1 15.2 PID control ................. 15-2 15.2.1 Control actions ....................15-2 15.2.2 Realization of PID control on th e PLC............15-13 15.3 Function blocks ..............15-15 15.3.1 The function block for PID operation (PID6CAL)........15-16 15.3.2 The error code of PID6CAL F/B..............15-18 15.3.3 Auto tuning function block (PID6AT) ............15-19 15.3.4 Error codes of auto-tuning function block (PID6AT) .........15-21 15.4 Programming................
Page 155
Chapter 15. The PID functions 15 The PID functions 15.1 Introductions This chapter will provide information about the built-in PID (Proportional Integral Differential) function of B and C type CPU module. (GM6-CPUB and GM6 -CPUC) The GM6 series does not have separated PID module like GM3 and GM4 series, and the PID function is integrated into the CPU module (B and C type) The PID control means a control action in order to keep the object at a set value (SV).
Page 156
Chapter 15. The PID functions 15.2 PID control 15.2.1 Control actions 15.2.1.1 Proportional operation (P operation) 1) P action means a control action that obtain a manipulate value which is proportional to the deviation (E : the difference between SV and PV) 2) The deviation (E) is obtained by multiplying a reference value to the actual difference between SV and PV.
Page 157
Chapter 15. The PID functions Fig. 2.1 When the proportional constant (Kp) is large Fig. 2.1 When the proportional constant (Kp) is small 15-3...
Page 158
Chapter 15. The PID functions 15.2.1.2 Integral operation (I action) 1) With integral operation, the manipulate value (MV) is increased or decreased continuously in accordance time in order to eliminate the deviation between the SV and PV. When the deviation is very small, the proportional operation can not produce a proper manipulate value and an offset remains between PV and SV.
Page 159
Chapter 15. The PID functions 5) Integral action is used in either PI action in which P action combines with I action or PID action in which P and D actions combine with I action. Fig. 2.5 The system response when a long integration time given Fig.
Page 160
Chapter 15. The PID functions 15.2.1.3 Derivative operation (D action) (1) When a deviation occurs due to alteration of SV or external disturbances, D action restrains the changes of the deviation by producing MV which is proportioned wi th the change velocity (a velocity whose deviation changes at every constant interval) in order to eliminate the deviation.
Page 161
Chapter 15. The PID functions D action. 15.2.1.4 PID action 1) PID action controls the control object with the manipulation quantity produced by (P+I+D) action 2) PID action when a given deviation has occurred is shown as the following Fig. 2.8. Fig.
Page 162
Chapter 15. The PID functions 15.2.1.5 Forward / Reverse action 1) PID control has two kind of action, forward action and reverse action. The forward action makes the PV reaches to SV by outputting a positive MV when the PV is less than SV.
Page 163
Chapter 15. The PID functions 15.2.1.6 Reference value In general feedback control system shown as the Figure 2-10, the deviation value is obtained by the difference of PV and SV. P, I, and D operations are performed based on this deviation value. However, each of P, I, and D operations use different deviation values according to the characteristics of each control actions.
Page 164
Chapter 15. The PID functions The figure 2.11 shows the variation of PV according to the several different reference values (b). As shown in the Fig. 2.11, the small reference value produces small deviation value, and it makes the control system response be slow. In general, control system is required to be adaptable to various external / internal changes.
Page 165
Chapter 15. The PID functions The Fig. 2-12 shows the PV and MV of PI control system when the windup occurs. As shown as the Fig. 2 -12, the actuator is saturated because of the large initi al deviation. The integral term increase until the PV reaches to the SV (deviation = 0), and then start to decrease while the PV is larger than SV (deviation <...
Page 166
Chapter 15. The PID functions There are several methods to avoid the windup of actuator. The most popular two methods are adding another feedback system to actuator, and using the model of actuator. The Fig. 2 -13 shows the block diagram of the anti -windup control system using the actuator model.
Page 167
Chapter 15. The PID functions 15.2.2 Realization of PID control on the PLC In this chapter, it will described that how to get the digitized formula of the P, I, and D terms. Then, the pseudo code of PID control will be shown. 15.2.2.1 P control The digitized formula of P control is as following;...
Page 168
Chapter 15. The PID functions 15.2.2.3 D control The continuous formula of derivative term is as following; × − N : high frequency noise depression ration y : the object to be controlled (PV) The digitized formula is as following (Use Tustin approximation method) −...
Page 169
Chapter 15. The PID functions 15.3 Function blocks For the PID operation of GM6-CPUB and GM6 -CPUC, following 2 function blocks are included in the GMWIN software. (version 3.2 or later) Name Description PID6CAL Perform the PID operation PID6AT Perform the auto tuning operation Remarks 1.
Page 170
Chapter 15. The PID functions 15.3.1 The function block for PID operation (PID6CAL) Function block Description Input EN : enable signal of the PID6CAL F/B MAN : manual operation mode ( 0 : auto, 1 : manual ) D / R : select direction of operation ( 0 : forward, 1 : reverse ) SV : set value data input ( input range : 0 ~ 4000 )
Page 171
Chapter 15. The PID functions 1) SV (setting value : the designated value) and PV (process value : present value) of GM6 PID operation have the range 0 ~ 4000. The range is set with the consideration of the resolution of A/D and D/A module of GM6 series (12 bits) and offset value.
Page 172
Chapter 15. The PID functions 15.3.2 The error code of PID6CAL F/B The following table shows error codes and descriptions of PID6CAL function block. Error code Type Description Countermeasure (STAT output) Normal operation SV is out of range Change the SV within 0 ~ 4000 MVMAN is out of range Change the MVMAN within 0 ~ 4000 P_GAIN is out of range...
Page 173
Chapter 15. The PID functions 15.3.3 Auto tuning function block (PID6AT) Function block Description Input EN : enable input of function block SV : set value (goal value) data input (range : 0 ~ 4000) PV : present value input PID6AT (range : 0 ~ 4000) S_TIME : scan time input (sampling interval)
Page 174
Chapter 15. The PID functions 1) SV (setting value : the designated value) and PV (process value : present value) of GM6 PID operation have the range 0 ~ 4000. The range is set with the consideration of the resolution of A/D and D/A module of GM6 series (12 bits) and offset value.
Page 175
Chapter 15. The PID functions 15.3.4 Error codes of auto-tuning function block (PID6AT) The following table shows error codes and descriptions of PID6AT function block. Error code Type Description Countermeasure (STAT output) Normal operation SV is out of range Change the SV within 0 ~ 4000 It may caused by fault of A/D module.
Page 177
Chapter 15. The PID functions 3) A/D module setting a) Channel setting : use channel 0 b) Output data type : – 48 ~ 4047 c) Input p rocessing : Sampling 4) D/A module setting a) Channel setting : use channel 0 15.4.3 Program description 15.4.3.1 Use only PID operation (without A/T function)
Page 178
Chapter 15. The PID functions [ Example program of 15.4.3.1 ] 15-24...
Page 179
Chapter 15. The PID functions [ Example program of 15.4.3.2 ] (continue to next page) 15-25...
Page 180
Chapter 15. The PID functions [ Example program of 15.4.3.2 ] (continued) 15-26...
Page 181
Chapter 16 Built-in high speed counter of GM6-CPUC 16.1. Introductions ........................16-16-1 16.2. Performance specifications ..................16-16-2 16.3. Input specifications.....................16-16-3 16.3.1. Function of input terminals................16-16-3 16.3.2. Names of wiring terminals................16-16-3 16.3.3. External interface circuit ...................16-16-4 16.4. Wiring..........................16-16-5 16.4.1. Wiring instructions .....................16-16-5 16.4.2.
Page 182
Chapter 16. Built-in high speed counter of GM6-CPUC 16. Built-in high speed counter of GM6-CPUC 16.1. Introductions This chapter describes the specification, handling, and programming of built-in high speed counter of GM6-CPUC module. The built-in high speed counter of GM6 -CPUC (Hereafter called HSC) has the following features;...
Page 183
Chapter 16. Built-in high speed counter of GM6-CPUC 16.2. Performance specifications Items Specifications Types Phase A, Phase B, Preset Input Rated level 24VDC (13mA) signal Signal type Voltage input Counting range 0 ~ 16,777,215 (Binary 24 bits) Max. counting speed 50k pps Up / 1-phase...
Page 184
Chapter 16. Built-in high speed counter of GM6-CPUC 16.3. Input specifications 16.3.1. Function of input terminals Items Specifications Rated input 24VDC (13mA) A / B On voltage 14VDC or higher phase Off voltage 2.5VDC or lower Rated input 24VDC (10mA) On voltage 19VDC or higher Preset...
Page 185
Chapter 16. Built-in high speed counter of GM6-CPUC 16.3.3. External interface circuit Internal circuit Signal type Operation voltage terminal 14 ~ 26.4 3.3KΩ A-phase pulse input 24VDC Less than 2.5VDC 14 ~ 26.4 Input 820Ω B-phase pulse input 24VDC Less than 2.5VDC 19 ~...
Page 186
Chapter 16. Built-in high speed counter of GM6-CPUC 16.4. Wiring 16.4.1. Wiring instructions A high speed pulse input is sensitive to the external noise and should be handled with special care. When wiring the built-in high speed counter of GM6 -CPUC, take the foll owing precautions against wiring noise.
Page 187
Chapter 16. Built-in high speed counter of GM6-CPUC 16.5. Programming 16.5.1. Function block (F/B) CHSC_WR CHSC_WR λ FUNCTION BLOCK Description I n p u t REQ : Request signal of F/B execution PHS : Operation modes selection 0 (1-phase counter), 1(2-phase counter) MULT : Assign the multiplication factor CHSC_WR (MULT = 1, 2, or 4)
Page 188
Chapter 16. Built-in high speed counter of GM6-CPUC C H S C _ R D C H S C _ R D Read the current value and operation λ status of HSC FUNCTION BLOCK Description I n p u t REQ : Request signal for F/B execution O u t p u t CHSC_RD...
Page 189
Chapter 16. Built-in high speed counter of GM6-CPUC C H S C _ P R E C H S C _ P R E Set the preset value of HSC λ FUNCTION BLOCK Description I n p u t REQ : Request signal for F/B execution PSET : Set the preset value (0 ~ 16,777,215) CHSC_PRE O u t p u t...
Page 190
Chapter 16. Built-in high speed counter of GM6-CPUC C H S C _ S E T C H S C _ S E T Assign a setting value to be compared λ with the current value of HSC FUNCTION BLOCK Description I n p u t REQ : Request signal for F/B execution...
Page 191
Chapter 16. Built-in high speed counter of GM6-CPUC 16.5.2 Error code of F/B The following table shows error codes appear at the STAT output. E r r o r c o d e D e s c r i p t i o n No error Built-in high speed counter is not found (GM6-CPUA, GM6-CPUB CPU module)
Page 192
Appendix 1. System definitions Appendix 1. System Definitions 1) Basic Parameters The basic parameters are necessary for operation of the PLC and used to allocate memory, set the restart mode and set the scan watch dog time, etc. (1) Configuration (PLC) Name •...
Page 193
Appendix 1. System definitions (4) Resource (CPU) Name • Resource Name is the name that each CPU module configuring the PLC has. When configuring a network system the name is used to designate each CPU module that is used the system. •...
Page 194
Appendix 1. System definitions 2) I/O Configuration Parameters These parameters are used to set the configuration of a system that will be operated. They set the modules that will be mounted and operated onto their own slot in the base unit. If a parameter that has been set and the real mounted module are different, the operation will not be executed.
Page 196
Appendix 1. System definitions 3) Communications Parameters These high speed link parameters are used to set the opposite station for data communications, data and communications cycle when communicating a defined data repeatedly through communication modules. (For detailed descriptions, refer to the User’s Manual relating to data communications) (1) Network type : Used to set the type of the communications module (2) Slot No.
Page 197
Appendix 2. Flag List Appendix 2. Flag List 1) User Flag List Keyword Type Write Name Description Operation error latch Operation error latch flag by the program block(BP). Error indication _LER BOOL Enable flag occurred while executing a program block Operation error latch Operation error flag by the operation function (FN) or function block(FB).
Page 198
Appendix 2. Flag List 3) Representative System Warning Flag List Keyword Type Bit No. Name Description Representa This flag treats the below warning flags relating to continuous operation _CNF _WAR WORD tive System warning in batch. keyword _D_BCK_ER BOOL Bit 1 Data backup error This flag indicates This flag indicates that the program had been stopped during restore...
Page 199
Appendix 2. Flag List 4) Detailed System Error and Warning Flag List Data setting Keyword Type Name Description range This flag detects that I/O configuration parameters of each slot differ The number of slot from the real loaded module configuration or a particular module is _IO_TYER_N UINT 0 to 15...
Page 200
Appendix 2. Flag List 4) Detailed System Error and Warning Flag List (continued) Data setting Keyword Type Name Description range DATE & The f i rst detection date and time of battery voltage drop are written _BAT_ER_TM Batter voltage drop time ...
Page 201
Appendix 2. Flag List 5) System Operation status Information Flag List Data setting Keyword Type Name Description range GM1 : 0, GM2 : 1, (GM3 : 2, GM4 : 3, GM% : 4) _CPU_TYPE Unit 0 to 16 System type (FSM : 5,6), Twofold : 16 _VER_NUM Unit...
Page 202
Appendix 2. Flag List 6) System Configuration status Information Flag (1) User Program Status Information Data setting Keyword Type Name Description range Representative System S/W GM1 : 0, GM2 : 1, (GM3 : 2, GM4 : 3, GM% : 4) keyword configuration information (FSM : 5,6), Twofold : 16...
Page 203
Appendix 2. Flag List 7) Communications Flag - GLOFA Mnet / Fnet / Cnet Flag List (1) Communication Module Information Flag List • n is the number of slot where a communications module is loaded. ( n = 0 to 7) Applicable Keyword Type...
Page 204
Appendix 2. Flag List (1) Communications Module Information Flag List (continued) Applicable Keyword Type Name Description _FSMn_reset Fnet Remote I/O station S/W reset • Requests reset for remote I/O station (Write is enabled) Request can be done individually or wholly complying with the settings in the FSMn_st_no.
Page 205
Appendix 3. Function/Function Block List Appendix 3. Function/Function Block List 1) Function List Size of Processing speed Size of PB Name Function library (µ sec) *3 (byte) *1 (byte) *2 ABS (int) Absolute value operation ADD(int) Addition AND (word) Logical multiplication ...
Page 206
Appendix 3. Function/Function Block List 2) Function Block List Size of library Processing speed (µ sec) Size of PB Name Function Size of instance (byte) *1 Size (byte) *2 memory *3 Addition counter 10.2 12.8 CTUD Addition/subtraction counter 15.6 18.4 F_TRIG Descending edge detection Preference reset table...
Need help?
Do you have a question about the GLOFA GM6 Series and is the answer not in the manual?
Questions and answers