GLOFA GM6 Series: User's Manual
GLOFA GM6 Series: User's Manual
LG Industrial Systems
◎ CONTENTS ◎
Chapter 1. GENERAL
Chapter 5. BATTERY
10.2 Wiring………………………………………………………………………………… 10 - 9
10.2.1 Power Supply Wiring …………………………………………………………… 10 - 9
10.2.2 Input and Output Devices Wiring …………………………………………………10 - 11
10.2.3 Grounding ………………………………………………………………………10 - 11
10.2.4 Cable Specification for wiring ………………………………………………… 10 - 12
13.3 The pin assignment of RS-232C connector of the GM6 dedicated Cnet communication … 13- 3
13.8 Error code during NAK occurrence (for GM6 dedicated communication) ……………… 13- 29
APPENDICES
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.
RUN
STOP
GM6-CPUA
RUN
PAU/REM
STOP
GMW
IN
Battery
PO
GM6-PAFA
G6F-AD2A G6L-FUEA
G6I-D22B G6I-RY2A
2-1
Chapter 2. SYSTEM CONFIGURATION
2-2
Chapter 2. SYSTEM CONFIGURATION
2-3
Chapter 2. SYSTEM CONFIGURATION
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.
Slot number 0 1 2 3 4 5 6 7
CPU
~ ~ ~ ~ ~ ~ ~ ~
Base Board
• To use A/D, D/A conversion module, be sure to select GM6-PAFB power supply
Note for power supply module selection module that supplies ±15VDC instead of 24VDC. ±15VDC power is need for operation
of internal analog circuit of A/D and D/A conversion modules.
2-4
Chapter 2. SYSTEM CONFIGURATION
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 GM6 series. For details of computer link
module, refer to related User's Manual.
The Network system adapted in the GLOFA series a Fnet system that satisfies the IEC/ISA field bus
specifications. Fnet system as a network system is used for data communications between CPU modules
and control of remote I/O modules so that distribution of control and concentration of supervision could be
easy. For details, refer to Fnet system user's manual.
2-5
Chapter 3. GENERAL SPECIFICATIONS
REMARK
1) IEC(International Electromechanical Commission) : An international civilian institute who establishes
international standards in area of electric's and electronics.
2)Pollution : An indicator which indicates pollution degree which determine insulation performance of equipment.
Pollution 2 means that non-conductive pollution usually occurs but temporal conduction occurs with condensing
3-1
Chapter 4. CPU module
Specifications
Items Remarks
GM6-CPUA GM6-CPUB GM6-CPUC
Operation method Cyclic operation of stored program, Interrupt task operation
I/O control method Scan synchronized batch processing method(Refresh method)
Ladder Diagram(LD)
Programming language Instruction List(IL)
Sequential Function Chart(SFC)
Operator LD : 13, IL : 21
Number of Basic function 194
instructions Basic function block 11
Special function block Each special module have their own special function blocks
Operator
Processing
Basic function Refer to Appendix 3.
speed
Basic function block
Programming memory capacity 68 k bytes(17 k steps)
I/O points 256 points
Direct variable area 2 to 8 k bytes
Data memory
Symbolic variable area 30 k bytes – Direct variable area
No limitations in points. 1 point occupies 20 bytes
Timer
Time range : 0.01 to 4294967.29 sec(1193 hours) of symbolic variable area.
No limitations in points 1 point occupies 8 bytes
Counter
Counting range: -32768 to +32767 of symbolic variable area.
Numbers of program blocks 100
Initialization programs 1 (_INIT)
Program
Time driven tasks 0~8 Total : 8
types
Task (The type of task is
External interrupt tasks 0~8
Programs variable, however, total
Internal task 0~8 numbers of tasks is 8.)
Operation modes RUN, STOP, PAUSE and DEBUG
Restart modes Cold, Warm
Watch dog timer, Memory error detection, I/O error detection, Battery
Self-diagnostic functions
error detection, Power supply error detection, etc.
Data protection method at power failure Set to 'Retain' variables at data declaration.
RS-232C
RS-422/485
RTC
Built-in special functions RS-232C RTC
PID control
PID control
High Speed Counter
Internal current consumption 170mA 210mA 170mA
Weight 0.11Kg 0.11 Kg 0.12Kg
4-1
Chapter 4. CPU module
Operation Start -
• Stage for the start of a scan processing. it is executed only one time when
the power is applied or reset is executed. It executes the following processing.
Initialization
4I/O modules reset 4Execution of self-diagnosis
4Data clear 4I/O module address allocation or type registration
• Input module conditions are read and stored into the input image area before
Input image area refresh operation processing of a program.
• Program is sequentially executed from the first step to the last step
Program operation processing
Program start
~
Program end
• The contents stored in the output image area is output to output modules when
Output image area refresh operation processing of a program is finished.
• Stage for return processing after the CPU module has finished 1 scan. The
END processing following processing are executed.
4Self-diagnosis
4Change of the present values of timer and counter, etc.
4Processing data communications between computer link module and
communications module.
4Checking the switch for mode setting.
4-2
Chapter 4. CPU module
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
If a situation occurs which is requested to be urgently processed during execution of a PLC program, this
operation method processes immediately the operation which corresponds to interrupt program. The signal
which informs the CPU module of those urgent conditions is called interrupt signal. The GM6 CPU module has
two kind of interrupt operation methods, which are internal and external interrupt signal methods.
The CPU module detects any momentary power failure when the input line voltage to the power supply
When the CPU module detects any momentary power failure, the following operations will be executed.
(3) The output voltage of the power supply module retains the defined value.
(4) The watch dog timer(WDT) keeps timing and interrupt timing normally
REMARK
1) Momentary power failure
The PLC defining power failure is a state that the voltage of power has been lowered outside the allowable variation
range of it. The momentary power failure is a power failure of short interval(several to tens ms).
4-3
Chapter 4. CPU module
The processing time from a 0 step to the next0 step is called scan time.
(1) Scan time = Scan program processing time + Task program processing time + PLC internal processing time
• Scan program processing time = The processing time used to process a user program that is not specified to a task program.
• Task program processing time = Total of the processing times of task programs executed during one scan.
• PLC internal processing time = Self-diagnosis time + I/O refresh time + Internal data processing time + Communications
(2) Scan time differs in accordance with the execution or non-execution of task programs and communications processing, etc.
2) Flag
(1) Scan time is stored in the following system flag area.
REMARK
4-4
Chapter 4. CPU module
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’.
4-5
Chapter 4. CPU module
4) Timer error
The maximum timer error is ‘1 scan time + time from the start of scan to execution of the timer function
block".
4-6
Chapter 4. CPU module
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’.
• The Increment counter is a counter which increment the present counting value
• The Decrement counter is a counter which decrement the present counting value
• The Increment-Decrement counter is a counter which compares the counting values of two input conditions.
PV
• If the counting value (CV) increments and reaches the setting value(PV) the output contact (Q) turns
on.
When the reset signal is turn on, the counting value is set to ‘0’ and the output contact (Q) turns off.
(2) Decrement Counter
• It should have input condition (CD), load (LD) and setting value (PV).
CD
LD
• If the counting value (CV) decrements and reaches ‘0’, the output contact (Q) turns on.
If the load(LD) signal is turned on, the counting value is set to the setting value and the output
contact (Q) turns off.
4-7
Chapter 4. CPU module
NAME
CTUD
BOOL ▶CU QU BOOL
BOOL ▶CD QD BOOL
BOOL R
BOOL LD
INT PV CV INT
2) Counting speed
• The counting speed is decided by scan time and it will be counted when on time or off time of input
condition is larger than each scan time.
T1 T2
4-8
Chapter 4. CPU module
4.3 Program
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.
Function
Processing Operation
Elements
• Executed when the power is applied or the CPU operation is transited to the RUN
Initialization mode.
program • Executes the initial/fixes data setting for execution of scan program and the
initialization of peripheral devices on special modules.
Scan program • Processes the constantly repeated signals which are executed every scan.
• When the following time conditional processing is required the program is executed
complying with the time interval setting.
4In case that the processing need a shorter interval than that of average one scan
Time driven task
processing time.
program
4In case that the processing need a longer interval than that of average one scan
processing time.
4In case that the processing should be executed by the specified time interval.
4-9
Chapter 4. CPU module
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
END processing
REMARK
1) *1 : In the GLOFA PLC, the time driven interrupt task programs and event driven interrupt task
programs are called task program.
Event driven programs are classified into single task(internal interrupt) or interrupt task (external
interrupt) according to the S/W and H/W interrupt signaling method.
4 - 10
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) Scan program
(1) Function
• In order to process signals which repeats constantly, the program executes its sequential operation
repeatedly from the first step to the end step.
• If the interrupt task execution condition has been satisfied by a time driven task or event driven task
module during scan program execution, the program that is under execution will be temporary stopped
and the corresponding task program will be executed.
• If the scan program has been completely executed, the single task(internal interrupt) execution condition
will be checked and the corresponding task program will be executed.
(2) configuration
• Up to 100 scan programs can be used.
(If task programs are used, the usable number is reduced as many as that of the used task programs)
• Program has been not specified to initialization or task program when writing that program, it will be
automatically specified to scan program.
• Scan program has lowest execution priority and the priorities of scan program are determined their
registration sequence in the GMWIN screen when writing those programs.
4 - 11
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
• Task programs are classified into the three types as below.
4 Time driven task program : Up to 8 programs are applicable
4 Single (internal) task program : Up to 8 programs are applicable
4 Interrupt (external) task program : Up to 8 programs are applicable
• Time driven task program
4 The program is executed by the time internal set before
• Single (internal) task program
4 The corresponding program will be executed at the rising edge and on state of internal contact in the
program.
4 The detection of the start up condition will be executed after the scan program has been processed.
• Interrupt (external) task program
4 The program is executed according to the external signal a input to the interrupt module
REMARK
1) Refer to section 4.3.3 task for details of task program.
2) For interrupt signal processing, the GM6 series use general digital input module instead of external
interrupt input module. Refer 4.3.3. task for details.
4 - 12
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
Function
Program 3
Program Block
Program 4
Task 2
Function Block ( program 3)
*1
Program 5
Program Block
Task 3
Program 6 ( program 7)
Function
Program 1
Program Block
REMARK
1) A task executes the some function as the control panel
which are used to execute programs. Each task consists
of one or more program blocks in the three types of
program. Those programs are called task programs A
program to which a task has not been specified as
marked with '*1' will be automatically specified to scan
program
4 - 13
Chapter 4. CPU module
4 - 14
Chapter 4. CPU module
4 - 15
Chapter 4. CPU module
4 - 16
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.
6) Task processing at momentary power failure
• In case of the power failure of 20 ms or less, the ready tasks before the power failure will be executed, a
time driven task will be invoked with calculation of the power failure time, and time driven tasks invoked
repeatedly before the power failure will be ignored.
7) Examination on task program
After writing down a task program, be sure to examine the following items.
(1) Task setting has been correctly done?
If tasks are invoked more frequently than necessary or several tasks are invoked simultaneously within one
scan, the scan time become longer and irregular. In case that the task setting cannot be changed, check
the maximum scan time.
(2) Task priorities are properly arranged?
The lower priority tasks still may not be processed after its time due to delay by higher priority tasks. In
some cases, if the prior tasks have been delayed and next task occurs task collision can occur. Set the
priority with due consideration of items such as urgency and execution time of a task.
(3) Task programs are written as shortly as possible?
If execution time of a task program is long, the scan time may become longer and irregular and also
collision of task programs may occur. Therefore, write task programs as shortly as possible.
(4) Protection of lower priority programs against higher priority program isn’t needed during execution of those
programs.
If the priority of a task program (or a scan program) has been set to lower priority and other tasks must not
interrupt during its execution, use the function ‘DI’ and ‘EI’ to protect the program partly. When processing
global variables used commonly in other programs, special modules or communications modules, problems
can occur.
REMARK
1) For examination on processing speed of scan program and task program, refer to the ‘Scan time
Calculation Example in the Section 4.2.3 ‘Scan Time’.
4 - 17
Chapter 4. CPU module
4 - 18
Chapter 4. CPU module
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.
The main factors that occurs the PLC system error are given as followings.
• PLC hardware defect
• System configuration error
•Operation error during execution of the user programs
• External device malfunction
REMARK
1) In occurrence of a fatal error the state is to be stored in the representative system error flags,
and an ordinary error in the representative system warning flags.
2) For details of flags, refer to Appendix 2. Flag List.
4 - 19
Chapter 4. CPU module
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.
(2) Function blocks are largely of two types. ‘Initialization’ function block for initializing special modules and
‘control’ function block for control of the operations of special modules. Function block functions as an
interface between the user program data and the special modules. As it includes the function that
watches the operation status of special modules and indicates the error status, other separate error
detection program does not have to be written.
(For detailed description of function block, refer to the User’s Manuals of special modules and GLOFA-
GM instructions.)
1) As the initialization should be finished before the scan program starts its execution, its program
should be written in the restart program (initialization task program).
1) If a power failure occurs in the base unit where special units are loaded, special modules data are
removed. Therefore, data should be newly written down in the program.
4 - 20
Chapter 4. CPU module
• As cold/warm restart makes the whole system restart, the ‘cold/warm restart program’ consists of
only initialization program of special module.
(2) program
• Project Configuration : Restart.prj
4 - 21
Chapter 4. CPU module
Variable
Variable Name Data type Initial value Description
type
INI_START VAR BOOL - Start condition of initialization
AD2INI.ACT VAR ARRAY[4] OF BOOL - Shows active channel
AD01_DT VAR ARRAY[4] OF BOOL Set by parameter Select digital output type
AD01_CH VAR ARRAY[4] OF BOOL Set by parameter Select channel to be used
AD2INI VAR FB Instance -
AD2INI.STAT VAR USINT - Shows error status
AD01_FE VAR ARRAY[4] OF BOOL - Enable/Disable average function
AVG_NUM VAR ARRAY[4] OF BOOL Set by parameter
4 - 22
Chapter 4. CPU module
STAT
Variable
Variable Name Data type Description
type
READ VAR FB Instance
AD_CH VAR ARRAY[4] OF BOOL Assign a channel of AD module to be used
READ.DONE VAR ARRAY[4] OF BOOL Indicates the reading operation is completed
READ.STAT VAR USINT Shows the error status of AD read FB
READ.ACT VAR ARRAY[4] OF BOOL Shows the error status of AD read FB
READ.DATA VAR ARRAY[4] OF INT Digital data converted from analog input
WRITE_1 VAR FB Instance
DA01_DT VAR ARRAY[4] OF INT Digital data to be output
WRITE_1.DONE VAR BOOL Indicates the write operation is completed
WRITE_1.STAT VAR USINT Shows the error status of DA write FB
WRITE_2 VAR FB Instance
DA02_DT VAR ARRAY[4] OF INT Digital data to be output
WRITE_2.DONE VAR BOOL Indicates the write operation is completed
WRITE_2.STAT VAR USINT Shows the error status of DA write FB
4 - 23
Chapter 4. CPU module
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
4 - 24
Chapter 4. CPU module
In this mode, the program operation is temporarily stopped. If it returns to the RUN mode, the operation
continues from the state before the stop.
1) Processing when the operation mode changes
Data area clear and input image clear are not executed and the operating conditions just before the mode
change is maintain.
2) Operation processing contents
(1) I/O refresh is executed.
(2) Normal or abnormal operation and mounting conditions of the loaded module are checked.
(3) Communications service or other internal operations are processed.
In this mode, errors of a program are searched and the operation sequence is traced. Changing into this
mode is only possible in the STOP mode. In this mode, a program can be checked with examination on its
execution state and contents of each data.
1) Processing when the operation mode changes
(1) Data area is initialized at the starting time of the mode change complying with the restart mode, which
has been set on the parameters.
(2) The output image area is cleared and output refresh is executed.
2) Operation processing contents
(1) I/O refresh is executed by one time every scan.
(2) Communications service or other internal operations are processed.
4 - 25
Chapter 4. CPU module
4) Operation method
(1) Execute the operation after the debug operation conditions have been set in the GMWIN.
(2) In task programs, each task can be specified to operation enable/disable.(For detailed operation
method, refer to the GMWIN User’s Manual Chapter 9.
REMARK
1) If the operation mode changes from RUN mode to local RUN mode by the mode setting switch, the
PLC operates continuously without stop.
2) If Local PAUSE disable(or Local PAUSE enable) is set by parameter in GMWIN, it operated as
Remote RUN(or Local PAUSE).
4 - 26
Chapter 4. CPU module
4 - 27
Chapter 4. CPU module
4.5 Functions
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.
(For details, refer to the ‘4.5.1 Basic Parameters Edit’ of the GMWIN User’s Manual Section 4.5 Parameters
Edit.
1) Cold Restart
(1) It is executed when the restart mode parameter has been set to the cold restart mode.
(2) All data are cleared with ‘0’ and only the variables to which their initial value has been defined will be
set to their initial value.
(3) Though the parameter has been set to the warm restart mode, cold restart will be executed at the first
execution of a program after it has been changed.
(4) In case of selection ‘Reset’ command in the GMWIN, it restarts in accordance with setting in parameter
and in case of selection ‘Overall Reset’ command, it restarts as cold restart mode.
2) Warm Restart
(1) It is executed when the restart mode parameter has been set to the warm restart mode.
(2) A data which set as retain & initial will be retain and a data which set as initial value will be set with
default value during the warm restart. All other data will be cleared with ‘0’.
(3) Though the parameter has been set to the warm restart mode, cold restart will be executed at the first
execution of a program after it has been stopped due to its download or error.
(4) Though the parameter has been set to the warm restart mode, cold restart will be executed if data
contents are abnormal (i.e., the data does not remain at a power failure)
4 - 28
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
RUN
Abnormal
Data that remains at
power failure
Normal
Cold Restart
Restart mode
Warm Restart
RUN mode
REMARK
1) Definitions
(1)Default variable : A variable whose initial value is not defined or previous value will not be retained.
(2)Initialization variable : A variable whose initial value is defined.
(3)Retain variable : A variable whose previous value will be retained.
4 - 29
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. If an error is detected, the system stops operation to prevent faulty PLC
operation.
2) Error flag
If an error occurs, it will be stored to the following flags and the STOP LED flickers.
• Representative system error flag : _CNT_ER
• Representative system warning flag : _CNF_WAR
REMARK
1) Refer to 12.5 Error Code List of Chapter 12. Troubleshooting for details of contents of self-diagnosis
and corrective actions.
4 - 30
Chapter 4. CPU module
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.
(2) This function is convenient when the CPU module is located on the place where it is difficult to control the
CPU module or the user want to control the CPU module in the control panel from outside.
2) Remote PAUSE
(1) The remote PAUSE permits external operations to execute PAUSE operations under the condition that the
mode setting switch of CPU module is in the remote position. The PAUSE operations stop the CPU module
operation processing while maintaining the On/Off state of the output module.
(2) This function is convenient when the user wants to maintain the ON state of the output module under the
condition the CPU module has been stopped.
3) Remote DEBUG
(1) This function permits external operations to execute DEBUG operations under the condition that the mode
setting switch of CPU module is in the remote position. The DEBUG operations execute programs complying
with the specified operation conditions.
(2) This function is convenient when program execution or contents of any data are checked for debugging of
the program.
4) Remote reset
(1) This function permits remote operations to reset the CPU module, which locates in the place where direct
operations cannot be applied, when an error has occurred.
REMARK
1) For remote function operations, refer to the GMWIN User’s Manual Chapter 7. On-line.
4 - 31
Chapter 4. CPU module
(4) Precautions
• Turning the power off and on, change of the operation mode or operation by reset switch(GM3) does
not change the previous force on/off setting data. They remain within the CPU module and operation is
executed with the same data.
• Force I/O data will not be cleared even in the STOP mode.
• If a program is downloaded or its backup breaks, the force on/off setting data will be cleared. The
operating program in memory differs from the program in the flash memory so that if operation restarts
with the program in the flash memory the on/off setting data will be also cleared.
• When setting new data, disable every I/O settings using the setting data ‘clear’ function and set the
new data.
REMARK
1) For detailed operation, refer to the GMWIN User’s Manual Chapter 7 ‘Force I/O setting.
4 - 32
Chapter 4. CPU module
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
• Record the mode change time, operation mode, and restart mode when a operation mode is changed.
3) Power failure
• Record the occurrence time and total occurrence number when the AC failure occur while the CPU is
in RUN mode.
Flags are given for the user to implement easily the program in which the error detection of external
devices and system stop and warning are coded. By use of these flags, error indication of external devices
is possible without complex programming and monitoring of the error location can be done without special
tools (GMWIN, etc.) or source programs.
1) External device fault detection and classification
(1) The user program detects external device faults. The faults are classified into fatal fault( error), where
the PLC stops its operation, and ordinary fault(warning), where operation continues.
(2) The flag ANC_ERR[n] is used to indicate error. The flag ANC_WN[n] is used to indicate warning.
2) External Device Fatal-fault (Error) Processing.
(1) If an error of external device is detected and the error type, where other value than 0 is used, is written
to the system flag ANC_ERR[n], the flag will checked at the time that scan program finishes its
execution. If an error is indicated on the flag, it will be also indicated on the _ANNUN_ER of the
representative system error flag _CNF_ER, the PLC turns all output modules off and the error state
will be same as the PLC self-diagnosis.
(2) The user can know the cause of error by use of the GMWIN, and also by direct monitoring of the flag
_ANC_ERR[n].
(3) As the flag _ANC_ERR[n] has sixteen elements(n : 0 to 15), the user can classify error states largely.
User defined error No. can be written to the elements. A number of 1 to 65535 is usable.
Error detection
Example) MOV
10
4 - 33
Chapter 4. CPU module
4 - 34
Chapter 4. CPU module
_ANNUN_WR = 1 If the user program had detected a system fault and set
= 10 _ANC_WB[10] to ON, the states of _ANNUN_WR and
= 0 _ANN_WAR [0..7] will be shown as left after the scan has been
_ANC finished
= 0
_WAR[0] = 0
= 0
= 0
_ANC = 0
_WAR[1] = 0
_ANNUN_WR = 1 After the next scan has been finished, if the numbers 1, 2, 3, 10, 15 ,
= 10 40 , 50, 60 and 75 of _ANC_WB[n] are tuned on _ANC_WAR[n] will be
= 0 shown as left
_ANC = 0
_WAR[0]
= 0 As the number 10 has turned on (has occurred) in the previous scan,
= 0 though the number 10 has lower priority than the numbers 1, 2 and 3, it
= 0 will be the lower element of _ANC_WAR[n]. The _ANC_WB[75] is not
_ANC = 0 indicated as it is turned on and the warning that occurred before has
_WAR[1] = 0 written to the _ANC_WAR[n].
_ANNUN_WR = 1 After the next scan has been finished, if the numbers 1, 2, 3, 10, 15 ,
= 10 40 , 50, 60 and 75 of _ANC_WB[n] are tuned on _ANC_WAR[n] will be
= 0 shown as left.
_ANC = 0
_WAR[0]
= 0 The No. 10 warning has been released the content of _ANC_WAR[0] will
= 0 be cleared and the contents of _ANC_WAR[1..7] will shift into the lower
= 0 elements. The content of _ANC_WAR[7] will has been cleared by the
_ANC = 0 shifting and the content of _ANC_WB[75] will be written to _ANC_WAR[7].
_WAR[1] = 0
4 - 35
Chapter 4. CPU module
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.
1) Program memory configuration
The table given below shows the contents to be stored and the storage capacity of program memory.
Item Memory Capacity
Overall program memory area 68 k bytes
Parameter area
• Basic parameter area
• I/O parameter area 2 k bytes
• High speed link parameter area
• Interrupt setting information area
Program area
• Scan program area
• Task program area
• User defined function/function block area
66 k bytes
• Standard library area
• Access variable are
• Variable initialization information area
• Protective variable specification information area
4 - 36
Chapter 4. CPU module
3) Purpose
4 - 37
Chapter 4. CPU module
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.
Input : % I X 0. 0. 0
Output :% Q X 0. 1. 15
Base number. 1)
0~1
REMARK
1) Although there is no expansion base, A base having more than 8 I/O slot which has a plan to develop
set by 1 as base number.
4 - 38
Chapter 4. CPU module
The following describes the names and functions of parts of the CPU module.
③
GM6
④
⑤
⑥
• On : when the mode setting switch is in the local or remote STOP state.
• Off : when the followings occur
2 STOP LED The mode setting switch is in the local RUN or local PAUSE state.
The operation state is in the RUM/PAUSE/DEBUG state.
• Flickering : when an error is detected by self-diagnosis during operation.
4 - 39
Chapter 4. CPU module
RDA φA 24V
Terminal block for built-in
6
special function RDB φB 24V
SDA COM
SDB PRE 24V
SG PRE 0V
Operation Mode
REMARK
The followings shows the LED status complying with the operation mode, and the operation mode complying with
the position of the mode setting switch.
2) Operation mode complying with the position of the mode setting switch.
Position of Mode switch Operation Mode
STOP PAU/REM
Remote Stop
l Change of remote mode is available only after the operation mode has entered into the remote STOP mode.
4 - 40
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
Backup battery needs periodic exchange. When the battery exchange, it should be done at power on, otherwise
some or all data will be lost.
The following shows the battery replacement procedure.
Battery replacement
Release the existing battery from the holder and disconnect the connector.
Insert a new battery into the holder in the exact direction and connect the
connector.
No
Stop LED flickering?
Yes
Complete
Battery error
5-1
Chapter 6. MEMORY MODULE
6.1 Structure
Flash memory
Read / Write is available to flash memory in accordance with selection of DIP switch.
User program can be written to flash memory at the PLC stop mode and then the selection of switch is ignored.
6-1
Chapter 7. 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.
When selecting DC input modules consider the specifications of those input devices as the wiring method of
the external input power supply varies complying with the type of digital input.
In the GM6 series, the types are dedicated source input and source/sink common DC input.
2) Maximum simultaneous input points differs with the type of a module. Check the specifications of the input
module to be applied before use.
3) Use transistor or triac output modules with a load that is frequently opened and closed or with an inductive load
as, in those cases, the life span of a relay output module will become shorter than specified.
7- 1
Chapter 7. INPUT AND OUTPUT MODULES
R 00
07
COM 8 Internal 01
9 Circuit 02
03
DC12/24V
04
05
06
07
COM
7- 2
Chapter 7. INPUT AND OUTPUT MODULES
00 1 DC5V
R
G6I-D22A
R 00
01
07 8 02
COM Internal 03
04
9
Circuit 05
06
DC12 / 24V 07
COM
08 10 08
09
10
11
12
13
15 17 14
15
COM
COM 18
7- 3
Chapter 7. INPUT AND OUTPUT MODULES
00 1 DC5V
R
G6I-D22B
R 00
01
07 8 02
COM Internal 03
9 04
Circuit 05
06
DC24V 07
COM
08 10 08
09
10
11
12
13
15 17 14
15
COM
COM 18
7- 4
Chapter 7. INPUT AND OUTPUT MODULES
00 1 DC5V
R 00
1
20
01 2 12
02 21
03
R 04
05
3
4
22
06 23
07 5
08 24
Internal 09 6
10 25
11 7
12 26
13
Circuit
8
14 27
15 9
16 28
17 10
18 1 29
19 11
20 30
21 12
22 31
23 13
24
32
25
14
31 26
27
15
33
35 28
34
29 16
17 30
35
31
36 COM
17
36
18 18
37
37 19
19
7- 5
Chapter 7. INPUT AND OUTPUT MODULES
00 1 DC5V
R 00
1
20
01 2 12
02 21
03
R 04
05
3
4
22
06 23
07 5
08 24
Internal 09 6
10 25
11 7
12 26
13
Circuit
8
14 27
15 9
16 28
17 10
18 1 29
19 11
20 30
21 12
22 31
23 13
24
32
25
14
31 26
27
15
33
35 28
34
29 16
17 30
35
31
36 COM
17
36
18 18
37
37 19
19
DC24V
Connector Pin Number
7- 6
Chapter 7. INPUT AND OUTPUT MODULES
00 1 DC5V
R
G6I-A11A
R
R 00
01
Internal
02
Circuit 03
04
05
06
07 07
8
COM
9
COM
AC 110V
Terminal Block Number
7- 7
Chapter 7. INPUT AND OUTPUT MODULES
Model GM4
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 ± 3 Hz)
Maximum simultaneous input points 100%(8 points / COM) simultaneously ON
Surge input current 600 mA, 0.12 ms or lower (264 VAC)
ON voltage/ON current 80 VAC or higher / 5 mA or higher
OFF voltage/OFF current 30 VAC or lower / 2 mA or lower
Input impedance Approx. 20 kΩ
OFF → ON 15 ms or less
Response time
ON → OFF 25 ms or less
Common terminal 8 points/COM
Internal current consumption 41 mA
Operating indicator LED turns on at ON state of input
External connections 9-point terminal block connector(M3 × 6 screws)
Weight 0.14 kg
00 1 DC5V
R
G6I-A21A
R
R 00
01
Internal
02
Circuit 03
04
05
06
07 07
8
COM
9
COM
AC 220V
Terminal Block Number
7- 8
Chapter 7. INPUT AND OUTPUT MODULES
DC5V 1 00
DC5V
L
2
G6Q-RY1A
Coil
00
R Relay
L
COM
L 01
COM
AC110/220V
L 02
COM
L
03
Internal R
COM
04
Circuit
L
COM
L 05
15 07
COM
L 06
L COM
16 L 07
COM
NC
NC
17
18 NC
Terminal
Block No.
7- 9
Chapter 7. INPUT AND OUTPUT MODULES
DC5V 1 00
DC5V L
G6Q-RY2A
Coil
L 00
R Relay 01
02
8 07 03
L 04
9
05
Internal 06
110/220 VAC 07
R
Circuit 10 08 COM
08
L L
09
10
11
12
13
14
17 15 15
L COM
18
110/220 VAC
Terminal Block Number
7- 10
Chapter 7. INPUT AND OUTPUT MODULES
17
DC5V
1 00 G6Q-TR2A
R L
L 00
01
02
03
04
05
R 06
Internal 07
08
Circuit 09
10
11
12
13
14
16 15
15
L
18
COM
DC 24V
Terminal Block Number
7- 11
Chapter 7. INPUT AND OUTPUT MODULES
DC5V Transistor
G6Q-TR2B
R
R 1 00 L 00
Photo 01
Coupler
L 02
03
04
05
06
Internal 07
08
Circuit 09
10
11
12
1 15 13
L 14
17 15
COM
18
7- 12
Chapter 7. INPUT AND OUTPUT MODULES
00
L 1
DC5V 17 01 20
18 02 2
03 21
00 04 3
R 1 L 05 22
R
Internal
24 14
Circuit 25 32
26 14
27 33
31 28 15
29 34
16 L 30
19 16
36
L 31 35
17
37 36
18
37
19
Connector Pin Number
7- 13
Chapter 7. INPUT AND OUTPUT MODULES
DC5V
1
00
20
01
1
00 02
03
2
21
R
3
L
04 22
05 4
06 23
07 5
08 24
09 6
10 25
11 7
12 26
13 8
14 27
15 9
16 28
17 10
Internal circuit 18 1 29
19 11
20 30
R
21 12
22 31
23 13
24 32
25 14
26 33
35 31 28
27
15
34
17 L 30 31
29 16
35
17
COM 36
18
36
COM 18
19
37
19
37
:17,18,36
The total current of each 8 points (0~7,8~15,16~23,and 24~31) should be lower than 600mA.
7- 14
Chapter 7. INPUT AND OUTPUT MODULES
DC5V DC5V 1 00
L G6Q-SS1A
R 00
L
R
01
R 8 07
L 02
9
03
Circuit 05
06
07
COM
7- 15
Chapter 8. POWER SUPPLY MODULES
This chapter describes the selection method, type and specifications of the power supply module.
Selection of the power supply module is determined by the total current consumption of digital input modules,
special modules and communications modules, etc. whose powers are supplied by the power supply module.
If total load overrun the rated output capacity , the system will not normally operate. When configuring a
system, select a power supply module with due consideration of current consumption of each module.
1) Current consumption GM6 series modules (unit: mA)
Current Current
Modules Models Modules Models
Consumption Consumption
GM6-CPUA 170 G6Q-TR2A 180
G6L-DSQA 240
8- 1
Chapter 8. POWER SUPPLY MODULES
8.2 Specifications
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)
Efficiency 70% or more (rated load, 110/220 VAC) 60% or more (rated input, rated load)
Weight 0.4 kg
REMARK
To use A/D and D/A modules (G6F-AD2A, G6F-DA2V, G6F-DA2I), choose the GM6-PAFB power module.
8- 2
Chapter 8. POWER SUPPLY MODULES
The followings describe names of parts and their purposes of the power supply module.
③
④
⑤
8- 3
Chapter 9. BASE BOARD AND EXPANSION CABLE
9.1 Specifications
1) GM6
Models
GM6-B04M GM6-B06M GM6-B08M
Items
Mounting I/O modules 4 modules 6 modules 8 modules
Outer dimensions (mm) 244 × 110 × 62 314 × 110 × 62 384 × 110 × 62
Panel installation hole size φ4.5 (for M4 screw)
Weight (kg) 0.24 0.35 0.75
9-1
Chapter 10. INSTALLATION AND WIRING
10.1 Installation
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.
(2) Continuous shocks or vibrations.
(3) Direct sunlight.
(4) Dew condensation due to rapid temperature change.
(5) Higher or lower temperatures outside the range of 0 to 55 °C
(6) Relative humidity outside the range of 5 to 95 %
(7) Corrosive or flammable gases
10 - 1
Chapter 10. INSTALLATION AND WIRING
The following shows the procedure for calculating the PLC system power consumption.
1) PLC system power consumption block diagram
10 - 2
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
• Ws = I5V × 5 + I24V × 24 + I100V × 100 (W)
The sum of the above values is the power consumption of the entire PLC system.
• W = WPW + W5V + W24V + WOUT + WIN + WS (W)
Check the temperature rise within the control panel with calculation of that total power consumption(W).
10 - 3
Chapter 10. INSTALLATION AND WIRING
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.
• During wiring, be sure to check any foreign matter like wire scraps should not enter into the upper side of the
PLC. If any foreign matter has entered into it, always eliminate it.
• Do not load or unload the module while the power supply is being connected.
1) I/O module handling instructions
The followings explains instructions for handling or installing the input module.
(1) I/O module specifications re-check
Re-check the input voltage for the input module. If a voltage over the maximum switching capacity is
applied, it can cause faults, destruction or fire.
(2) Used wire
Select the wire with due consideration of ambient temperature and rated current. Its minimum
specifications should be AWG22(0.3 mm2) or more.
(3) Environment
When wiring the I/O module, if it locates near a device generating an cause short circuit, destruction or
malfunction.
(4) Polarity
Before applying the power to a module that has polarities, be sure to check its polarities.
(5) Wiring
• Wiring I/O wires with high voltage cable or power supply line can cause malfunction or disorder.
• Be sure that any wire does not pass across during input LED (I/O status will not be clearly identified.
• If an inductive load has been connected to output module, connect parallel surge killer or diode to a
load. Connect the cathode part of diode to the + part of the power supply.
10 - 4
Chapter 10. INSTALLATION AND WIRING
board
board
10 - 5
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
Chapter 10. INSTALLATION AND WIRING
1) Module mounting
• Insert the module to mounting slot with sliding guide.
• Check that the module is firmly mounted onto the base board.
Sliding
Locked Hook
Note : The CPU module should be mounted on the next of the power module. If the CPU module is mounted other slot
when a power module that has ± 15VDC output (GM6-PAFB), the CPU module will be damaged. Therefore, please be
sure to mount CPU module on the proper slot.
10 - 7
Chapter 10. INSTALLATION AND WIRING
2) Module dismounting
• First, push the locked hook(①) and pull the module with direction of arrow ②.
10 - 8
Chapter 10. INSTALLATION AND WIRING
10.2 Wiring
The followings explains the wiring instructions for use of the system.
1) When voltage fluctuations are larger than the specified value, connect a constant-voltage transformer.
2) Use a power supply which generates minimal noise across wire and across PLC and
ground. (When excessive noise is generated, connect an insulating transformer)
3) When wiring, separate the PLC power supply from the I/O and power device as shown
below.
10 - 9
Chapter 10. INSTALLATION AND WIRING
5) Twist the 110 VAC, 220 VAC, and 24 VDC cables as closely as possible. Connect modules with the
shortest possible wire lengths.
7) To minimize voltage drop, use the thickest (max. 2 mm2 ) wires possible for the 100 VAC, 200VAC and
24 VDC cables.
8) Do not bundles the 100 VAC and 24 VDC cables with main-circuit(high voltage, large current) wires or
the I/O signal wires. If possible, provide more than 100 mm distance between the cables and wires.
8) As a lightning-protection measure, connect a surge absorber as shown below.
REMARK
1) Ground the surge absorber (E1) and the PLC(E2) separately from each other.
2) Select a surge absorber making allowances for power voltage rises.
9) Use a insulating transformer or noise filter for protection against noise .
10) Twist every input power supply wires as closely as possible. Do not allow the transformer or noise filter
across the duct.
10 - 10
Chapter 10. INSTALLATION AND WIRING
1) Applicable size of wire for I/O wiring is 0.3 to 2 mm2. However, it is recommended to use wire of 0.3mm2 for
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.
4) When the I/O signal wires cannot be separated from the main circuit wires and power wires, ground on the
PLC side with batch-shielded cables.
10.2.3 Grounding
1) This PLC has sufficient protection against noise, so it can be used without grounding except for special
much noise. However, when grounding it should be done conforming to below items.
2) Ground the PLC as independently as possible. Class 3 grounding should be used (grounding resistance
100 Ω or less).
3) When independent grounding is impossible, use the joint grounding method as shown in the figure below (B).
(A) Independent grounding : Best (B) Joint grounding : Good (C) Joint grounding : Not allowed
4) Use 2 mm2 or more wire for grounding line. Make the distance as short as possible with the grounding point
located to nearest to the PLC.
10 - 11
Chapter 10. INSTALLATION AND WIRING
(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 - 12
Chapter 11. MAINTENACE
Be sure to perform daily and periodic maintenance and inspection in order to maintain the PLC in the best
conditions.
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. When inspecting
one or two times per six months, check the following items.
Check Items Judgment Corrective Actions
Ambient Temperature 0 to +55°C Adjust the operating temperature and
environment Humidity 5 to 95%RH humidity with the defined range
Vibration No vibration Use vibration resisting rubber or the
vibration prevention method
Play of modules No play allowed Securely enrage the hook
Connecting conditions of No loose allowed Retighten terminal screws
terminal screws
Change rate of input voltage -15% to 15% Hold it with the allowable range
Spare parts Check the number of spare parts Cover the shortage and improve the storage
and their storage conditions condition
The following table shows the inspection and items which are to be checked daily
Corrective
Check Items Check points Judgment
Actions
Base unit mounting
Check for loose mounting screws The base unit should be securely mounted Retighten Screws
conditions
Mounting conditions of • Check if the hook is securely engaged Securely engage
The hook should be securely engaged
I/O modules • Check if the upper cover is securely mounted the hook
Retighten
Check for loose terminal screws Screws should not be loose
Connecting conditions terminal screws
of terminal block or Check the distance between solderless
Proper clearance should be provided Correct
extension cable terminals
Check connectors of extension cable Connectors should not be loose Correct
Power LED Check that the LED is ON ON(OFF indicates an error) See chapter 12
Indic Run LED Check that the LED is ON during Run ON(ON or flickering indicates an error) "
atin Stop LED Check that the LED is OFF during Run OFF(ON indicates an error) "
g
LED Input LED Check that the LED turns ON and OFF ON when input is ON, OFF when input is off "
ON when output is ON.
Output LED Check that the LED turns ON and OFF
OFF when output is OFF "
11 - 1
Chapter 11. MAINTENACE
Check the following items once or twice every six months, and perform the needed corrective actions.
11 - 2
Chapter 12. TROUBLE SHOOTING
12.2 Troubleshooting
This section explains the procedure for determining the cause of troubles as well as the errors and corrective
actions for the error codes.
Occurrence of error
Is the power LED turned OFF? Flowchart used when the POWER LED is turned OFF
Is the stop LED flickering ? Flowchart used when the STOP LED is flickering
Are the RUN and STOP LED turned OFF? Flowchart used when the RUN and STOP LED is turned OFF
I/O module dose not operate properly Flowchart used when the output load of the output module dose not turn on
Program cannot be written Flowchart used when a program cannot be written to the PLC
12 - 1
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 lied or the POWER
LED turns OFF during operation
No
Is the power
Apply the power supply
supply operating
Yes No Yes
Does the Power
LED turn ON?
Yes No Yes
Does the Power
LED turn ON?
Yes
Is Fuse disconnected ? Replace the fuse
No No Yes
Does the Power
LED turn ON?
No
Is the power supply module Fix the power supply module correctly
Fixed to the base?
Yes No Yes
Does the Power
LED turn ON?
Yes
Over current protection 1) Eliminate the excess current
Device activated? 2) Switch the input power OFF, then ON
No
No Yes
Does the Power
LED turn ON?
Write down the troubleshooting questionnaires
and contact the nearest service center
Complete
12 - 2
Chapter 12. TROUBLE SHOOTING
The following flowchart explains corrective action procedure use when the power is applied starts or the
STOP LED is flickering during operation
No
No
12 - 3
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
No
Are RUN and STOP
LED Turned OFF?
Yes
12 - 4
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
No
Check the output status in monitor Measure the voltage
Is the indicator LED of the across module input
mode of the peripheral devices
output module ON terminal and CPU
terminal
Yes
Yes
REMARK
1) If the input or load signals are not switched OFF, see Section 12.4.1
12 - 5
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 written to the
PLC module
Yes
12 - 6
Chapter 12. TROUBLE SHOOTING
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. Telephone & FAX No. Tel)
FAX)
2. Used Equipment ( )
3. Details of used Equipment
- CPU module : - OS version No.( ), - Serial No.( )
- GMWIN version No. used to compile programs
4. General description of the device or system used as the control object
12 - 7
Chapter 12. TROUBLE SHOOTING
Possible troubles with various circuits and their corrective actions are explained.
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 • Connect an appropriate register and
turn OFF (such as a drive by non-contact switch) capacity which will make the voltage
across the terminals of the input module
lower than
Input signal does not Leakage current of external device • Connect an appropriate register which
turn OFF (Drive by switch with LED indicator) will make the voltage across input
module terminal and common higher
than the OFF voltage, as shown below
Input signal does not • Sneak current due to the use of two • Use only one power supply
turn OFF different power supplies • Connect a sneak current prevention
diode, as shown below
12 - 8
Chapter 12. TROUBLE SHOOTING
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 is (in some cases, it is true of a solenoid) kΩ across the load in parallel
applied to the load • When the polarity of the power supply
is as shown in À, C is charged. When
the polarity is as shown inÁ, the voltage
charged in C plus the line voltage are
applied across D. Max voltage is approx.
When the load is C-R • Leakage current by surge absorbing • Drive the relay using a contact and
type timer, time constant circuit which is connected to output drive the C-R type timer using the since
fluctuates element in parallel contact
• Use other timer than the C-R contact
Some timers have half-ware rectified internal
circuits therefore, be cautious .
The load does not turn • Sneak current due to the use of two • Use only one power supply
OFF different power supplies • Connect a sneak current prevention
diode(Figure below)
12 - 9
Chapter 12. TROUBLE SHOOTING
12 - 10
Chapter 12. TROUBLE SHOOTING
12 - 11
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. If your needs are read/write variables (I,Q,M devices) and Monitoring, you don’ t need to buy Cnet
module. It will save your money and slot for Cnet module.
The Cnet functions provided by CPU (A-type) module are as following;
n Individual read instruction
n Continuous read instruction
n Individual write instruction
n Continuous write instruction
n Monitoring variables registration
n Monitoring execution
n 1:1 communication only (dedicated protocol)
n RS-232 communication only
Note Because the dedicated Cnet communication for GM6 does not support all functions of Cnet
module, there are some limitations as following comparison with using Cnet module.
1) At the pressing time, the RS-422 protocol is not supported. Only RS-232C protocol is supported. (RS422
protocol will be available with the next version of GM6 CPU.)
2) Only the 1:1 communication is available. The 1:N communication (multi-drop) which have Master & Slave
station will be available with the next version of GM6 CPU.
3) Because the GM6 CPUA module has only one serial port supports RS-232C, the general RS-232C cable
can not be used. Also the cable for Cnet module can not be used with GM6 CPUA module. See the chapter
13.3 of this manual for the detailed pin assign for GM6 CPUA module.
13 - 1
Chapter 13. Dedicated Cnet communication for GM6
Generally, the system configuration have two types; the 1:1 communication with PC and the connection with
monitoring device (like PMU).
G L O F A PLC(GM6)
P C O
P I
W U
U N
R T
GM6
IBM
Compatible
PC
RS-232C Interface
P C O
P I
W U
U N
R T
GM6
PMU(LGIS)
RS-232C Interface
13 - 2
Chapter 13. Dedicated Cnet communication for GM6
13.3 The pin assignment of RS-232C connector of the GM6 dedicated Cnet communication
PC PLC(GM6)
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
<The pin assignment of RS232C connector which are used the connection of PC and GM6 CPU>
PMU PLC(GM6)
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
<The pin assignment of RS232C connector which are used the connection of PMU and GM6 CPU>
13 - 3
Chapter 13. Dedicated Cnet communication for GM6
(2) ACK response frame(Cnet module→external communication devices, when data is normally received)
(3) NAK response frame(Cnet module→external communication devices, when data is abnormally received)
Remark
The contents of the code used are as below Table. Control characters are importantly used during serial
13 - 4
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
• Station number
• Command type in case that command type is numerical(means data type) when main commands are R(r) and W(w).
• Command type(register number) for monitor register and execution command M(n).
Remark
For hex-decimal data, ‘ H’ such as H01, H12345, H34, H12, or H89AB indicates that the data is a type of hex-decimal.
13 - 5
Chapter 13. Dedicated Cnet communication for GM6
ENQ Station No. Command Formatted data EOT BCC (PLC ACK response)
ENQ Station No. Command Formatted data EOT BCC (Down/upload command frame No. H0001)
ENQ Station No. Command Formatted data EOT BCC (Down/upload end command frame No. HFFFF)
13 - 6
Chapter 13. Dedicated Cnet communication for GM6
Command
Main command Command type Contents
Sign ASCII code Sign ASCII code
H72 Reads direct variables of Bit, Byte, Word, Dword, and
Indivi. r (R) SS 5353
Direct (H52) Lword type.
var. Reads direct variables of Byte, Word, Dword, and
H72
Reading Contin. r (R) SB 5342 Lword type in block unit.
(H52)
(Continuous reading Bit is unavailable)
Reads data according to data type of named variable.
H72 H00-
Indivi. r (R) 3030-3134 (Variable to be read must be one registered in access
Named (H52) H14
variable area.)
Var.
Reads data of array named variable.
Reading 1 H72 H15-
Array r (R) 3135-3237 (Variable to be read must be one registered in access
(H52) H27
variable area.)
H77 Writes data to direct variable of Bit, Byte, Word,
Indivi. w(W) SS 5353
Direct (H57) Dword, Lword type.
var. Writes data to direct variable of Byte, Word, Dword,
H77
Writing Contin. w(W) SB 5342 Lword type in block unit.
(H57)
(Continuous reading Bit is unavailable)
Writes variable of each data type using variable
H77 H00- name.
Indivi. w(W) 3030-3134
Named (H57) H14 (Variable to be read must be one registered in access
Var. variable area.)
Writing 2 Writes data to array named variable.
H77 H15-
Array w(W) 3135-3237 (Variable to be read must be one registered in access
(H57) H27
variable area.)
Monitor Register variable to be monitored. If registered
H78 H00-
Var. x(X) 3030-3331 variable is named one, variable to be read must be
(H58) H31
Register one registered in access variable area.
Monitor
H79 H00-
Executi- y(Y) 3030-3331 Carries out the registered variable to monitor.
(H59) H31
on
Remark
In the main command, the capital and small letter have different meaning. In other field, however, it doesn’ t care letters
are capital or small. For example, %mW100 and %mw100 are exactly same command.
1
The CPU-A type does not support this function.
13 - 7
Chapter 13. Dedicated Cnet communication for GM6
When direct variables and named variables are read/written, attention must be paid to data type of direct and
named variables.
Data type for direct variables is indicated next to direct variable indicating character '%'.
Remark
1) The read/write of named variables will be available with the next version of CPU-A type.
2
The CPU-A type does not support this function.
13 - 8
Chapter 13. Dedicated Cnet communication for GM6
This is a function that reads PLC device memory directly specified in accord with memory data type.
• BCC : When command is one of lower case(r), only one lower byte of the value resulted by adding 1 Byte each to
ASCII values from ENQ to EOT is converted into ASCII and added to BCC.
• Number of blocks : This specifies how much of the blocks composed of '[Variable length][Variable name]' are in
this request format. This can be set up to 4. Therefore, the value of [Number of blocks] must be
• Variable length(Name length of direct variable) : This indicates the number of name's characters that means
direct variable, which is allowable up to 16 characters. This value is one of ASCII converted from hex
• Direct variables : Address to be actually read is entered. This must be ASCII value within 16 characters, and in
this name, digits, upper/lower case, '%' and '.' only are allowable to be entered.
Remark
1) Numerical data of frame(Ex.) is hex value, and 'H' is unnecessary during preparing real frame.
13 - 9
Chapter 13. Dedicated Cnet communication for GM6
LONG
Type BOOL Byte WORD DOUBLE WORD
WORD
%ML,%
GM1 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID
QL,%IL
%ML,%
GM2 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID
QL,%IL
GM3 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID --
GM4 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID --
GM5 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID --
GM6 %MX,%QX,%IX %MB,%QB,%IB %MW,%QW,%IW %MD,%QD,%ID --
For how to specify the area of each device in GLOFA GM and GK series, see GLOFA PLC technical data.
Remark
Device data type of each must be same. If data type of the first block is WORD, and the second block is DOUBLE
1 block(Max. 4 blocks)
• Station number, commands, type of command, and number of blocks are the same as computer request format.
• BCC : When command is one of lower case(r), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
• Number of data means Byte number of hex type, and is converted into ASCII. This number is determined
according to memory type(X,B,W,D,L) included in direct variable name of computer request format.
13 - 10
Chapter 13. Dedicated Cnet communication for GM6
Byte(B) %MB,%QB,%IB,%(P,M,L,K,F,T,C,D,S)W 1
WORD(W) %MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W 2
• 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
Ex.2
If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31 32 33 34 35 36 37 38",
and this contents is entered in data area. Namely, highest value is first, lowest value is last.
Remark
If data type is BOOL, data read is indicated by one Byte of hex. Namely, if Bit value is 0, it indicated by H00, and if 1, by
H01.
• Station number, commands, and type of command are the same as computer request format.
• BCC : When command is one of lower case(r), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see Appendix
13 - 11
Chapter 13. Dedicated Cnet communication for GM6
• 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.
13 - 12
Chapter 13. Dedicated Cnet communication for GM6
(1) Introduction
This is a function that reads the PLC device memory directly specified in accord with memory data type. With
Remark
Number of data specifies the number according to the type of direct variable. Namely, if the data type of direct variable
is double word, and number of data is 5, it means that read 5 DOUBLE WORDs.
• BCC : When command is one of lower case(r), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from ENQ to EOT is converted into ASCII, added to BCC.
• Name length of direct variable : This indicates the number of name's characters that means direct variable, which
is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the range is from
• Direct variables : Address to be actually read is entered in this. This must be ASCII value within 16 characters,
and in this name, digits, upper/lower case, '%' and '.' only are allowable to be entered. Continuous reading of
13 - 13
Chapter 13. Dedicated Cnet communication for GM6
• Station number, main commands, and type of command are the same as computer request format.
• BCC : When main command is lower case(like ‘r’), only one lower byte of the value resulted by adding ASCII
values from ACK to ETX is converted into ASCII, added to BCC, and sent.
• Number of data means Byte number of hex type, and is converted into ASCII. This number is determined by
multiplying the data number of computer request format by the data size(in below Table) according to memory
13 - 14
Chapter 13. Dedicated Cnet communication for GM6
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
• In data area, the value converted from hex data to ASCII code is entered.
Ex.2
In just above example, when data contents of 3 WORDs are 1234, 5678, and 9ABC in order, actual ASCII code
converted values are 31323334 35363738 39414243, and the contents is to be entered in data area.
• Station number, commands, and type of command are the same as computer request format.
• BCC : When main command is lower case(like ‘r’), only one lower byte of the value resulted by adding ASCII
values from NAK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see Appendix
13 - 15
Chapter 13. Dedicated Cnet communication for GM6
This example supposes when 2 DOUBLE WORDs from %MD0 of station No.10 are read. Also it is supposed
%MD0 = H12345678
%MD1 = H9ABCDEF0
13 - 16
Chapter 13. Dedicated Cnet communication for GM6
(1) Introduction
This is a function that directly specifies PLC device memory and writes in accord with data type. Device
Number
Format Statin Command Variable Variable Frame
Headr Command of Data Tail
name No. type length name check
blocks .........
Frame EO
ENQ H20 W(w) SS H01 H06 %MW100 H00E2 BCC
(Ex.) T
ASCII H57 H254D57 H3030
H05 H3230 H5354 H3031 H3036 H04
value (77) 313030 4532
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC, and sent.
• Number of blocks : This specifies how much of the blocks composed of '[Variable length][Variable name]'
are in this request format. This can set up to 4 blocks. Therefore, the value of [Number of blocks]
• Variable length(Name length of direct variable) : This indicates the number of the name's characters that
registered in direct variable of PLC, which is allowable up to 16 characters. This value is one of
ASCII converted from hex type, and the range is from H01(ASCII value:3031) to H10(ASCII
value:3130).
• Direct variable : This is an address of variable to be actually read. This must be ASCII value within 16
characters, and in this name, digits, upper/lower case, '%' and '.' only are allowable to be entered.
• Data : If the value to be written in %MW100 area is H A, the data format must be H000A. If the value to be
written in %MD100 area is H A, the data format must be H0000000A. In data area, the ASCII value
13 - 17
Chapter 13. Dedicated Cnet communication for GM6
Ex.1
If type of data to be currently written is DOUBLE WORD, the data is H12345678, ASCII code converted value of this is
"3132333435363738", and this content must be entered in data area. Namely, most significant value must be sent first,
Remark
2) If data type is BOOL, the data to be written is indicated by 1 Byte of hex. Namely, if Bit value is 0, it must be
Format name Header Station No. Command Command type Tail Frame check
Frame(Ex.) ACK H20 W(w) SS ETX BCC
ASCII value H06 H3230 H57(77) H5353 H03
• Station number, commands, and type of command are the same as computer request format.
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
13 - 18
Chapter 13. Dedicated Cnet communication for GM6
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see
13 - 19
Chapter 13. Dedicated Cnet communication for GM6
(1) Introduction
This is a function that directly specifies PLC device memory and continuously writes data from specified
Remark
1) Number of data specifies the number according to the type of direct variable. Namely, if the data type of direct
variable is DOUBLE WORD, and number of data is 5, it means that write 5 DOUBLE WORDs.
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC.
• Protocol of continuous writing function of direct variable has not [Number of blocks].
• Name length of direct variable : This indicates the number of name's characters that means direct variable,
which is allowable up to 16 characters. This value is one of ASCII converted from hex type, and the
• Direct variables : Address to be actually read is entered in this. This must be ASCII value within 16
characters, and in this name, digits, upper/lower case, '%' and '.' only are allowable to be entered.
13 - 20
Chapter 13. Dedicated Cnet communication for GM6
Format name Header Station No. Command Command type Tail Frame check
Frame
ACK H10 W(w) SB ETX BCC
(Ex.)
ASCII value H06 H3130 H57(77) H5342 H03
• Station number, command and command type are the same as computer request format.
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
• Station number, command and command type are the same as computer request format.
• BCC : When command is one of lower case(w), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see
13 - 21
Chapter 13. Dedicated Cnet communication for GM6
Format Station
Header Command Command type Tail Frame check
name No.
Frame
ACK H01 W(w) SB ETX BCC
(Ex.)
ASCII H06 H3031 H57(77) H5342 H03
value
Format Station
Header Command Command type Error code Tail Frame check
name No.
Frame
NAK 01 W(w) SB Error code(2) ETX BCC
(Ex.)
ASCII
H15 H3031 H57(77) H5342 Error code(4) H03
value
13 - 22
Chapter 13. Dedicated Cnet communication for GM6
5) Monitor register(X##)
(1) 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.
• BCC : When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC, and sent.
• Register No. : This can be registered up to 32(0-31, H00-H1F), and if an already registered No. is
• Register format : This is used to before EOT in command of formats of separate reading of direct variable,
※ Register format : Register format of request formats must select and use only one of the followings.
1 block(Max. 4 blocks)
13 - 23
Chapter 13. Dedicated Cnet communication for GM6
Format name Header Station No. Command Register No. Tail Frame check
Frame(Ex.) ACK H10 X(x) H1F ETX BCC
ASCII value H06 H3130 H58(78) H3146 H03
• Station number, command and resister No. are the same as computer request format.
• BCC : When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
Format Station
Header Command Register No. Error code(Hex 2 Bytes) Tail Frame check
name No.
Frame
ACK H10 X(x) H1F H1132 ETX BCC
(Ex.)
ASCII
H06 H3130 H58(78) H3146 H31313332 H03
value
• Station number, main commands, and resister No. are the same as computer request format.
• BCC : When command is one of lower case(x), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see Appendix
This supposes that the variable which data type of station No.’ 1’ is UINT and the variable name is “ ASDF” is
13 - 24
Chapter 13. Dedicated Cnet communication for GM6
Format name Header Station No. Command Register No. Tail Frame check
Frame(Ex.) ACK H01 X(x) H01 ETX BCC
ASCII value H06 H3031 H58(78) H3031 H03
13 - 25
Chapter 13. Dedicated Cnet communication for GM6
6) Monitor execution(Y##)
(1) 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.
Format name Header Station No. Command Register No. Tail Frame check
Frame(Ex.) ENQ H10 Y(y) H1F EOT BCC
ASCII value H05 H3130 H59(79) H3146 H03
• Register No. uses the same No. as the No. registered during monitor register for monitor execution.
• BCC : When main command is one of lower case(y), only one lower byte of the value resulted by adding 1
Byte each to ASCII values from ENQ to EOT is converted into ASCII, added to BCC, and sent.
¬ In case that the register format of register No. is the separate reading of direct variable
- In case that the register format of register No. is the continuous reading of direct variable
13 - 26
Chapter 13. Dedicated Cnet communication for GM6
® In case that the register format of register No. is the reading of named variable
• Data format such as number of blocks and number of data is the same as the contents of variable writing.
• Station number, commands, and register No. are the same as computer request format.
• BCC : When main command is one of lower case(y), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, added to BCC, and sent.
Format Frame
Header Station No. Command Register No. Error code (Hex 2 Bytes) Tail
name check
Frame
NAK H10 Y(y) H1F H1132 ETX BCC
(Ex.)
ASCII
H15 H3130 H59(79) H3146 H31313332 H03
value
• Station number, commands, and register No. are the same as computer request format.
• BCC : When command is one of lower case(y), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from NAK to ETX is converted into ASCII, added to BCC, and sent.
• Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see Appendix
13 - 27
Chapter 13. Dedicated Cnet communication for GM6
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.
Format
Header Station No. Command Register No. Tail Frame check
name
Frame(Ex.) ENQ H01 Y(y) H01 EOT BCC
ASCII value H05 H3031 H59(79) H3031 H04
Format
Header Station No. Command Register No. Error code Tail Frame check
name
Frame(Ex.) NAK H01 Y(y) H01 Error code(2) ETX BCC
ASCII value H15 H3031 H59(79) H3031 Error code(4) H03
13 - 28
Chapter 13. Dedicated Cnet communication for GM6
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
H0011 Data error upper and lower cases(‘ %’ ,’ -’ , ’ .’ ), and digits
value is converted into digits
has been used, correct, and execute again.
H0021 Instruction error * Using wrong instruction Inspect instruction
H0031 Instruction type error * Instruction is used in wrong type Inspect instruction type
H1132 Device memory error * Wrong specified device memory Inspect device type
* Execution data number ex-
H1232 Data size error Correct data length
ceeding 120 Bytes
* Data type mismatch with actual Equalize variable and data type of PLC
H2432 Data type error
variable program
Inspect format, correct, and then execute
H7132 Variable request format error * ‘ %’ is missing
again.
H2232 Area exceeding error * M,I,Q area exceeding error Inspect area difinition and execute again
Execute again after adjusting monitor
H0190 Monitor execution error Registered number exceeding range
registration number to 31 or less.
Execute again after adjusting monitor
H0290 Monitor registration error Registered number exceeding range
registration number to 31 or less.
H6001 Syntax error_6001 Not available instruction is used
H6010 Syntax error_6010 Over-run, Frame error Check the system is in stop mode
H6020 Syntax error_6020 Time out error Check the connection of RS-232C port
H6030 Syntax error_6030 Instructino syntax error Check each frame has ENQ, EOT
Devide the text into several frames as a text
H6040 Syntax error_6040 Text of one frame exceed 256byte
does not exceed 256 byte
H6050 Syntax error_6050 BCC error Check the BCC is correct
13 - 29
Chapter 14 The RS422/485 communication of GM6-CPUB
14.5 Monitoring............................................................................14-5
14.1 Introductions
1) The GM6-CPUB module can be used as the master station of RS422/485 network and applicable for
2) To operate the GM6-CPUB as the master station, basic parameters and high speed link parameters
4) The GM6-CPUA and GM6-CPUC does not support the master station function.
14.2 Features
3) According to the parameter setting, the operation mode and error code of slave stations is stored at the
relevant flag.
4) The communication status can be monitored with the monitoring function of GMWIN software.
14-1
Chapter 14. The RS422/485 communication of GM6-CPUB
- Set the ‘High speed link 1’ of the ‘High Speed Link Parameters’
a) Station number : Assign the station number of master station in the range of 0 ~ 31
c) Master/Slave : Only GM6-CPUB can be set as master station. If the CPU is selected as
master station, the network type of high speed link 1 is automatically set as GLOFA 422/485.
d) Timeout : Set the period that the interval until a timeout error occurs. The default value is
e) Read status of slave PLC : If check this item, the master station reads the status of slave
14-2
Chapter 14. The RS422/485 communication of GM6-CPUB
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
- The size of data block is assigned by the unit of word, and the Max. size is 60 words.
- Area setup
Send From : I / Q / M To : Q / M
Receive From : I / Q / M To : Q / M
14-3
Chapter 14. The RS422/485 communication of GM6-CPUB
- Description
- Description
- Description
- Description
Bit 0 : Turn on when the CPU module is assigned as master station but it is not B type
(GM6-CPUB)
Bit 1 : Turn on when the master station number of basic parameter setting is duplicated
with one of the slave station numbers of high speed link parameters setting.
Bit 2 : Turn on when the M area of high speed link parameter setting is out of the range.
Remark
Scan time : A total time of the processing time of the all parameter settings. (From the execution of the first
parameter setting to the next execution)
14-4
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
- The CPU module should be a B-type, and assigned as master station in the basic
parameter setting. Otherwise, the monitor screen will show the status of high speed link
service.
No., Type, From, To, Size The contents of high speed link 1 parameters
14-5
Chapter 14. The RS422/485 communication of GM6-CPUB
1) Data type
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. Otherwise, the communication can be disturbed by the
reflected wave of cable. The termination resistor should be 1/2W grade and have the equivalent
resistance with the characteristic impedance of cable. (When use the RS-422 protocol, connect
two termination resistors between SDA and SDB, RDA and RDB. With the RS-485 protocol,
connect a termination resistor between RDA and RDB, or SDA and SDB.)
1) The RS-422 network is connected with 5-pin connector. The following table shows the name,
1 RDA SDA
2 RDB SDB
3 SDA RDA
4 SDB RDB
5 SG SG
2) When using RS-485 interface, connect cable as RS-422 interface, then interconnect RDA and
SDA, RDB and SDB. With the RS-485 interface, the send / receive signals share one line and
14-6
Chapter 15 The PID function
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). It
compares the SV with a sensor measured value (PV : Present Value) and when a
difference between them (E : the deviation) is detected, the controller output the
manipulate value (MV) to the actuator to eliminate the difference. The PID control consists
of three control actions that are proportional (P), integral (I), and differential (D).
15-1
Chapter 15. The PID functions
MV = Kp × [b × SV − PV ]
Kp : the proportional constant (gain)
b : reference value
SV : set value
PV : present value
3) If the Kp is too large, the PV reaches to the SV swiftly, but it may causes a bad
effect like oscillations shown in the Fig. 2.1.
4) If the Kp is too small, oscillation will not occur. However, the PV reaches to the SV
slowly and an offset may appear between PV and SV shown in the Fig. 2.2.
5) The manipulation value (MV) varies from 0 to 4,000. User can define the maximum
value of MV (MV_MAX) and minimum value (MV_MIN) within the range 0 ~ 4,000.
6) When an offset remains after the system is stabilized, the PV can be reached to the
SV by adding a certain value. This value is called as bias value, and user can
define the bias value with GM-WIN software.
15-2
Chapter 15. The PID functions
15-3
Chapter 15. The PID functions
Kp
Ti ∫
MV = Edt
15-4
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. 2.6 The system response when a short integration time given
15-5
Chapter 15. The PID functions
dE
MV = Kp × Td
dt
(5) Derivative action is used only in PID action in which P and I actions combine with
15-6
Chapter 15. The PID functions
D 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.
15-7
Chapter 15. The PID functions
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.
2) A diagram in which forward and reverse actions are drawn using MV, PV and SV is
shown as Fig. 2.9.
3) Fig 2.10 shows examples of process control by forward and reverse actions,
respectively.
15-8
Chapter 15. The PID functions
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. The expression of PID
control is as following;
MV = K Ep + ∫ Ei( s) ds + Td
1 t dEd
Ti 0 dt
MV : Manipulate value
K : Proportional gain
Ti : Integral time
Td : Derivative time
Ep : Deviation value for proportional action
Ei : Deviation value for integral action
Ed : Deviation value for derivative action
Ep = b × SV − PV
Ei = SV − PV
Ed = − PV
The b of the first equation is called as reference value. It can be varied according to
the load disturbance of measurement noise.
SV PID MV PV
+ controller
Process
-1
15-9
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. Especially, it should shows a stable transient response with the sudden
change of the SV to be robust to load disturbances and/or measurement noise.
PV
SV
b=1 b=0.1
b=0.5
b=0.7
Time
Figure 2-11 The PI control with several reference values
All devices to be controlled, actuator, has limitation of operation. The motor has speed
limit, the valve can not flow over the maximum value. When the control system has
wide PV range, the PV can be over the maximum output value of actuator. At this time,
the actuator keeps the maximum output regardless the change of PV while the PV is
over the maximum output value of actuator. It can shorten the lifetime of actuator.
When the I control action is used, the deviation term is integrated continuously. It
makes the output of I control action very large, especially when the response
characteristic of system is slow.
This situation that the output of actuator is saturated, is called as ‘windup’. It takes a
long time that the actuator returns to normal operating state after the windup was
occurred.
15-10
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 initial 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 < 0). However, the MV
keeps the saturated status until the integral term is small enough to cancel the windup
of actuator. As the result of the windup, the actuator will output positive value for a
while after the PV reached to the SV, and the system show a large overshoot. A large
initial deviation, load disturbance, or mis-operation of devices can cause windup of
actuator.
PV
PV
SV
Time
MV
SV
Time
MV (without windup)
MV (with windup)
Integral term
Proportional term
15-11
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.
As shown in the Fig. 2-13, the anti-windup system feedback the multiplication of gain
(1/Tt) and Es to the input of integral term. The Es is obtained as the difference value
between actuator output (U) and manipulation value of PID controller (MV). The Tt of
the feedback gain is tracking time constant, and it is in inverse proportion with the
resetting speed of integral term. Smaller Tt will cancel the windup of actuator faster,
but too small Tt can cause anti-windup operation in derivative operation. The Fig. 2-14
shows several Tt value and PV in the PI control system.
E = -PV K × Td
Actuator model
MV U
E = SV-PV K + Actuator
– +
k / Ti + +
Es
1 / Tt
Tt = 3
PV Tt = 2
Tt = 1
Tt = 0.1
SV
Time
15-12
Chapter 15. The PID functions
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;
P( n) = K [b × SV ( n) − PV ( n) ] n : sampling number
K : proportional gain constant
b : reference value
SV : set value
PV : present value
15.2.2.2 I control
The continuous formula of I control is as following;
K t
Ti ∫0
I (t ) = e( s )ds I(t) : integral term
dI K
= e e = (SV – PV) : deviation value
dt Ti
I (n + 1) − I ( n) K
= e( n) h : sampling period
h Ti
Kh
I ( n + 1) = I ( n) + e( n)
Ti
15-13
Chapter 15. The PID functions
15.2.2.3 D control
The continuous formula of derivative term is as following;
Td d dy
× D + D = −KTd
N dt dt
N : high frequency noise depression ration
y : the object to be controlled (PV)
2Td − hN
D( n) = D( n − 1) −
2 KTdN
[ y ( n) − y (n − 1)]
2Td + hN 2Td + hN
h
Bi = K × : integral gain
Ti
( 2 × Td − N × h)
Ad = : derivation gain
( 2 × Td + N × h)
(2 × K × N × Td )
Bd =
( 2 × Td + N × h)
h
A0 = : anti-windup gain
Tt
Step 2 : Read SV and PV value
PV = adin(ch1)
Step 3: Calculate the proportional term.
P = K × (b × SV – PV)
Step 4 : Update the derivative term. (initial value of D = 0)
D = As × D – Bd × (PV – PV_old)
Step 5 : Calculate the MV. (initial value of I = 0)
MV = P + I + D
Step 6 : Check the actuator is saturated or not.
U = sat(MV, U_low, U_high)
Step 7 : Output the MV value to the D/A module
Step 8 : Update the integral term.
I = I + bi × (SV – PV) + A0 × (U – MV)
Step 9 : Update the PV_old value.
PV_old = PV
15-14
Chapter 15. The PID functions
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)
No Name Description
1 PID6CAL Perform the PID operation
2 PID6AT Perform the auto tuning operation
Remarks
1. GM6 PID function blocks do not support array type.
2. Refer the GMWIN manual for the registration and running of function block.
3. GM6-CPUA does not support PID operation.
15-15
Chapter 15. The PID functions
Output
DONE : completion flag of PID operation
MV : output manipulation value
( range : 0 ~ 4000 )
STAT : error code output
Q_MAX : shows MV is limited with maximum value
Q_MIN : shows MV is limited with minimum value
15-16
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.
2) The BIAS data is used for the compensation of offset in the proportional control.
3) In GM6-CPUB and GM6-CPUC, only the following 4 operation modes are available.
Other operation modes, such as PD or I, are not permitted.
4) The GM6 CPU module can handle only integer, not the floating point type.
Therefore, to enhance the accuracy of PID operation, the PID6CAL function block is
designed to input the P_GAIN data as the 100 times scaled up. For example, if the
designated P_GAIN is 98, actual input data of P_GAIN should be 9800. If the
designated P_GAIN is 10.99, input 1099 to the P_GAIN.
5) I_TIME and D_TIME are 10 times scaled up. For example, input 18894 if the
designated I_TIME value is 1889.4. The range of actual input is 0 ~ 20000.
6) S_TIME is the period of reading data (sampling), and also 10 times scaled up.
Generally, it should be synchronized with external trigger input (EN input of function
block) to perform proper PID operation. The range of sampling time is 0.1 ~ 10
seconds, and actual input range is 0 ~ 100.
7) REF may be useful parameter according to the control system type, especially
velocity, pressure, or flux control system. The REF input is also 10 times scaled up,
and the actual range is 0 ~ 10.
8) TT (tracking time constant) parameter is used to cancel anti-windup operation. The
range of TT is 0.01 ~ 10 and the actual input range that are 100 times scaled up is
0 ~ 1000.
9) N (high frequency noise depression ratio) parameter is used for derivative control
operation, and shows the ratio of high frequency noise depression. If there is a lot
of high frequency noise in the control system, select the N value as higher value.
Otherwise, leave the N parameter as 1. The range of N is 0 ~ 10 and it is not scaled
up, so input the designated value directly.
15-17
Chapter 15. The PID functions
The following table shows error codes and descriptions of PID6CAL function block.
Error code
Type Description Countermeasure
(STAT output)
0 Normal operation
Remarks
1. Please be careful to input 100 times scaled up values for P_GAIN and TT.
2. I_TIME, D_TIME, S_TIME, and REF are 10 times scaled up, not 100 times.
15-18
Chapter 15. The PID functions
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)
AT
BOOL DONE BOOL
S_TIME : scan time input (sampling interval)
EN
MV INT
(range : 0 ~ 100)
INT RIPPLE RIPPLE : select the wave form to be used for auto
STAT USINT
INT SP
tuning operation. Select 1 in general case.
END BOOL
Output
INT PV
P UINT DONE : Turn on whenever the auto tuning operation
UINT S_TIME I UINT is completed.
D UINT END : Turns on when the F/B operation is
completed with no error, and keep the status
until next F/B execution
STAT : shows the error code
MV : the manipulated value of current loop on which
the auto tuning operation is performed.
(range : 0 ~ 4000)
P : the proportional gain constant obtained by auto
tuning operation. (range : 0.01 ~ 100.00)
I : the integral time constant obtained by auto tuning
operation.
D : the derivative time constant obtained by auto
tuning operation
15-19
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. When setting the SV or PV, please be careful convert the analog
value of control object (temperature, velocity, etc.) to digital value that are the
output of A/D convert module. For example, assume that PID control is used for
temperature control with Pt100 (operation range : 0 °C ~ 250 °C), and the goal
value is 100 °C. The equivalent digital output of A/D module (voltage output
range : 1 ~ 5V) is 1600 if the A/D module outputs 0 (1V) with 0 °C, and 4000(5V)
with 250 °C. Therefore, the input of SV should be 1600, not 2.
2) S_TIME is the period of reading data (sampling), and 10 times scaled up for more
precious operation. Generally, it should be synchronized with external trigger input
(EN input of function block) to perform proper PID operation. The range of
sampling time is 0.1 ~ 10 seconds, and actual input range is 0 ~ 100.
3) The GM6-CPUB and GM6-CPUC module perform auto-tuning operation based on
the frequency response method. PID parameters are obtained by On/Off operation
during 1 cycle of PV variation. The RIPPLE parameter shows at which cycle the
CPU module will perform auto-tuning operation. If 0 is selected, the CPU will get
PID parameters during the first cycle of PV variation. If 1 is selected, the second
cycle will be used. (refer Fig. 12-15 for detailed information) Other choice of
RIPPLE parameter is not allowed. In general case, select 1 for proper auto-tuning
operation. The On/Off operation will be occur at the 80% of PV value.
Perform A/T operation at the 1st cycle Perform A/T operation at the 2nd cycle
(When the RIPPLE = 0) (When the RIPPLE = 1)
80% of PV
15-20
Chapter 15. The PID functions
The following table shows error codes and descriptions of PID6AT function block.
Error code
Type Description Countermeasure
(STAT output)
0 Normal operation
15-21
Chapter 15. The PID functions
15.4 Programming
GM6- GM6-
PAFB CPUB Input Output A/D Input D/A Output
or module module module module module module
+5V GM6-
+15V CPUC
GMWIN
(V3.2 or later) PV : DC4 ~ 20mA
RS-232C (1 ~ 5V)
Electric oven
(0 ~ 200°C)
heater
Power converter
15-22
Chapter 15. The PID functions
15-23
Chapter 15. The PID functions
15-24
Chapter 15. The PID functions
15-25
Chapter 15. The PID functions
15-26
Chapter 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;
- 3 counter functions as followings
- 1-phase up / down counter : Up / down is selected by user program
- 1-phase up / down counter : Up / down is selected by external B phase input
- 2-phase up / down counter : Up / down is automatically selected by the phase
difference between phase A and B.
- Multiplication (1, 2, or 4) with 2-phase counter
- 2-phase pulse input multiplied by one : Counts the pulse at the leading edge of phase A.
- 2-phase pulse input multiplied by two : Counts the pulse at the leading / falling edge of
phase A.
- 2-phase pulse input multiplied by four : Counts the pulse at the leading / falling edge of
phase A and B
16-1
Chapter 16. Built-in high speed counter of GM6-CPUC
Items Specifications
16-2
Chapter 16. Built-in high speed counter of GM6-CPUC
Items Specifications
RUN
STOP
GM6-CPUC
No. of
Input signal
1 2
ROM MODE
ON
16-3
Chapter 16. Built-in high speed counter of GM6-CPUC
No. of
Internal circuit Signal type Operation voltage
terminal
14 ~ 26.4
3.3KΩ ON
A-phase pulse VDC
1
input 24VDC Less than
OFF
2.5VDC
14 ~ 26.4
Input ON
820Ω B-phase pulse VDC
2
input 24VDC Less than
OFF
2.5VDC
3 COM
19 ~
3.3KΩ ON 26.4
Preset input V
4
24V 6 V
Input OFF or
270Ω less
5 Preset COM
16-4
Chapter 16. Built-in high speed counter of GM6-CPUC
16.4. Wiring
1) Be sure to use shielded twisted pair cables. Also provide Class 3 grounding.
2) Do not run a twisted pair cable in parallel with power cables or other I/O lines which
may generate noise.
3) Before applying a power source for pulse generator, be sure to use a noise-
protected power supply.
4) For 1-phase input, connect the count input signal only to the phase A input; for 2-
phase input, connect to phases A and B.
24V
Pulse Generator
CHSC
COM
24VG
24V
CHSC
Pulse Generator COM
24VG
16-5
Chapter 16. Built-in high speed counter of GM6-CPUC
16.5. Programming
CHSC_WR
CHSC_WR
GM1 GM2 GM3 GM4 GM5 GM6
l
Output
DONE : Turns on after the F/B is executed with no
error.
STAT : Indicate the operation status of F/B
- The MULT input will be dummy input when the HSC is set as 1-phase counter (PHS =
0). When the HSC is set as 2-phase counter, the U/D_I/E and DOWN input will be
dummy input. (PHS = 1)
- The current value of HSC will be cleared as 0 when the CT_E (counter enable) is 0.
16-6
Chapter 16. Built-in high speed counter of GM6-CPUC
CHSC_RD
CHSC_RD
Read the current value and operation GM1 GM2 GM3 GM4 GM5 GM6
l
status of HSC
CHSC_RD Output
DONE : Turns on after the F/B is executed with no
BOOL REQ DONE BOOL
error.
STAT : Indicates the operation status of F/B
STAT USINT CNT : The current value of HSC
(0 ~ 16,777,215)
CNT UDINT CY : Carry flag (0 : OFF, 1 : ON)
CY BOOL
16-7
Chapter 16. Built-in high speed counter of GM6-CPUC
CHSC_PRE
CHSC_PRE
Set the preset value of HSC GM1 GM2 GM3 GM4 GM5 GM6
l
CHSC_PRE
Output
BOOL REQ DONE BOOL
DONE : Turns on after the F/B is executed with no
error.
UDINT PSET STAT USINT STAT : Indicates the operation status of F/B
- When the PRE_I/E is set as 0 (Preset input by sequence program), the current
value of HSC is changed as the assigned preset value with the rising edge of REQ
input.
- When the PRE_I/E is set as 1 (Preset input by external preset input), the current
value of HSC is changed as the assigned preset value with the rising edge of
external preset input. At this time, the REQ input of CHSC_PRE is ignored.
- The CY output is set off while the CHSC_PRE F/B is executing.
- The CHSC_PRE F/B is disabled while the CT_E input of CHSC_WR F/B is 0 (Counter
disabled).
16-8
Chapter 16. Built-in high speed counter of GM6-CPUC
CHSC_SET
CHSC_SET
Assign a setting value to be compared GM1 GM2 GM3 GM4 GM5 GM6
with the current value of HSC l
CHSC_SET
Output
BOOL REQ DONE BOOL DONE : Turns on after the F/B is executed with no
error.
UDINT SET STAT USINT STAT : Indicates the operation status of F/B
Run a task program when the current value of HSC reaches to the setting value.
To run a task program, define a high speed counter task program as following figure,
and write a task program.
HSC
16-9
Chapter 16. Built-in high speed counter of GM6-CPUC
16-10
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.
APP1 - 1
Appendix 1. System definitions
APP1 - 2
Appendix 1. System definitions
APP1 - 3
Appendix 1. System definitions
APP1 - 4
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. : Location number of slot where the communications module has been mounted.
(3) Local No. : Local number of the module which executes high speed link communications.
(1) Station type : Type of the communications module in the opposite station. Local or remote will be set.
(2) Station No. : Used to indicate the station that has invoked data during communications.
(3) Mode : Used to set the communications mode to Send or Receive.
(4) Block No. : Designating number for identification of a data block in the same communications
module.
(5) Data communications cycle : Used to set the cycle of sending and receiving of data.
(6) Area: I, Q and M areas should be set by the decimal number or word.
(7) Size : Number of words that will be sent and received.
APP1 - 5
Appendix 2. Flag List
Module This representative flag indicates that module configuration of each slot
_IO _DEER BOOL Bit 2 loading/unloading has been changed during operation. (Refer to _IO_DEER_N and
error _IO_DEER[n])
Fuse disconnection This representative flag indicates that one of fuses of slots including them
_FUSE _ER BOOL Bit 3
error has disconnection. (Refer to _FUSE_ER_N and _FUSE_ER[n])
I/O module This representative flag indicates that a I/O module does normally
_IO _RWER BOOL Bit 4
read/write error executes read/write. (Refer to _IP_RWER_N and _IP_IFER[n])
APP2 - 1
Appendix 2. Flag List
This flag detects and indicates that the voltage of the battery, which is
_BAT_ERR BOOL Bit 5 Battery fault used to backup user programs and data memory, is lower than the
defined value.
This representative flag indicates that the user program has detected an
External device
_ANNUN_WR BOOL Bit 6 ordinary fault of external devices and has written it to the flag _ANC_WB
warning detection [n].
− − Bit 7 − −
High speed link
_HSPMT1_ER BOOL Bit 8
parameter 1 error
High speed link
_HSPMT2_ER BOOL Bit 9 This representative flag detects error of each high speed link parameter
parameter 2 error
when the high link has been enabled and indicates that high speed link
High speed link cannot be executed. It will be reset when the high speed link is disabled.
_HSPMT3_ER BOOL Bit 10
parameter 3 error
High speed link
_HSPMT4_ER BOOL Bit 11
parameter 4 error
APP2 - 2
Appendix 2. Flag List
The number of slot This flag detects that fuses of fuse-mounted modules has broken,
_FUSE_ER_N UINT 0 to 15
where fuse breaks. and indicates the lowest slot No. of the detected slot numbers.
The location of slot This flag detects that fuses of fuse-mounted modules has broken,
_FUSE_ERR[n] BYTE n: 0 to 1
where fuse breaks. and indicates the slot locations in the bit map of base units.
The number of slot This flag detects that input modules of a slot cannot be normally
_IO_RWER_N UINT 0 to 15 where I/O module read from or written to, and indicates the lowest slot No. of the
read/write occurred. detected slot numbers.
The location of slot This flag detects that input modules of a slot cannot be normally
_IO_RWERR[n] BYTE n: 0 to 1 where I/O module read from or written to, and indicates the slot locations in the bit map
read/write occurred. of base units.
This flag detects fatal error of external devices and its content is
External device fatal written to this flag. A number that identifies error type will be written
_ANC_ERR[n] UINT n : 0 to 7
error to each of the sixteen locations. (The number 0 is not allowed)
External device The user program detects ordinary error of external device and the
_ANC_WB[n] BIT n: 0 to 127
ordinary error bit map errors are indicated on a bit map. (The number 0 is not allowed)
The flag detects that task collision has occurred because, while a
task was being executed or ready for execution, an execution
_TC_BMAP[n] BIT n : 0 to 7 Task collision bit map
request has occurred for the same task, indicates the errors on a bit
map.
This flag detects task collision occurrence time for each task when
_TC_CNT[n] UINT n : 0 to 7 Task collision counter executing a user program, indicates the task collision occurrence
time.
APP2 - 3
Appendix 2. Flag List
Momentary power The accumulated momentary power failure occurrence times during
_AC_F_CNT UINT 0 to 65535
failure occurrence count operation in the RUN mode is written to this flag.
The times and error codes of the latest sixteen errors are written to
this flag.
_ERR_HIS[n] n : 0 to 15 Error history
• Stop time : DATE & TIME (8 bytes)
• Error code : UINT (2 bytes)
The times, operation modes and restart modes of the latest sixteen
operation mode changes are written to this flag
Operation mode • Change time : DATE & TIME (8 bytes)
_MODE_HIS[n] n : 0 to 15
change history
• Operation mode : UINT (2 bytes)
• Restart : UINT (2 bytes)
APP2 - 4
Appendix 2. Flag List
APP2 - 5
Appendix 2. Flag List
Bit 0 Basic parameter error Checks and indicates Basic parameter error
I/O configuration
Bit 1 Checks and indicates I/O configuration parameter error
_DOMAN_ST BYTE parameter error
Bit 2 Program error Checks and indicates Program error
Bit 3 Access variable error Checks and indicates Access variable error
High speed link
Bit 4 Checks and indicates High speed link parameter error
parameter error
_KEY_STATE BYTE Bit 0 KEY_STOP Indicates that the mode setting switch is in the STOP state.
Bit 1 KEY_RUN Indicates that the mode setting switch is in the RUN state.
Indicates that the mode setting switch is in the PAUSE/REMOTE
Bit 2 KEY_PAUSE/REMOTE
state.
APP2 - 6
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 Name Description
Net
_CnVERNO UINT Mnet/Fnet/Cnet Communications module • Communications module O/S version No.
version No.
_CnSTNOH UINT Mnet/Fnet/Cnet Communications module station • Indicates the number which is set on communications module station switch.
_CnSTNOL UDINT No. Mnet : MAC station No. marked on the front of communication module.
Fnet : Station switch No. marked on the front of communications module.
Cnet : Station No. set by the frame editor
_CnSTNOH : Station No. set on the side of RS-232C
_CnSTNOL : Station No. set on the side of RS-422
_CnTXECNT UINT Mnet/Fnet/Cnet Communications frame sending • Increments by one whenever sending error of communications frame occurs.
error • Connection condition of network is evaluated by this value.
• In Cnet, this value is the sum of errors occurred during receiving through RS-
232 and RS-422.
_CnRXECNT UINT Mnet/Fnet/Cnet Communications frame • Increments by one whenever communications service fails.
receiving error • Connection condition of network is evaluated by this value. Overall network
communications quantity and program stability are also evaluated by this
value.
_CnSVCFCNT UINT Mnet/Fnet/Cnet Communications service • Indicates the maximum time that is spent until every station connected to
processing error network has the token at least one time and sends a sending frame.
_CnSCANAV UINT Mnet/Fnet/Cnet Maximum communications scan • Indicates the average time that is spent until every station connected to
time (unit : 1 ms) network has the token at least one time and sends a sending frame.
_CnSCANMN UINT Mnet/Fnet/Cnet Average communications scan • Indicates the minimum time that is spent until every station connected to
time (unit : 1 ms) network has the token at least one time and sends a sending frame.
_CnLINF UINT Mnet/Fnet/Cnet Minimum communications scan • Indicates operation state of communications module with a word.
time (unit : 1 ms)
_CnLNKMOD BIT 15 Operation mode (RUN=1, • Indicates that operation mode of communications module is in the normal
TEST=0) operation mode or test mode.
_CnINRING BIT 14 In-ring (IN_RING = 1) • Indicates that the communications module can communicates(IN_RING = 1)
with other station or not.
_CnIFERR BIT 13 Interface error (error = 1) • Indicates that interface with communications modules has been stopped.
APP2 - 7
Appendix 2. Flag List
• Once this flag is turned on, it maintains that state as long as link enable does
not make that state stopped.
_HSmLTRBL Bit Fnet/Mnet High speed link trouble • This flag turns on when, under the condition that _HSmRLINK is turned on,
information communications of the stations and data blocks set in the parameter is under
the following conditions.
1) A station set in the parameter is not in the RUN mode, or
2) A station set in the parameter has an error, or
3) The communications of data blocks set in the parameter does not normally
operate.
• This flag turns on if the above conditions 1), 2) and 3) occur. If those
conditions are restored, it will turn off again.
_HSmSTATE[k] Bit Fnet/Mnet K Data Block overall • Indicates overall communications state of every blocks of the parameters set.
(k = 0 to 63, Array communications state _HSmSTATE[k] = _HSmMOD[k] & _HSmTRX[k] & _HSmERR[k]
k:Station No.) information
_HSmMOD[k] Bit Fnet/Mnet K Data Block setting stations • Indicates the operation modes of stations set the K data block of parameters.
(k = 0 to 63, Array mode information. (RUN = 1,
k:Station No.) others =-0)
_HSmTRX[k] Bit Fnet/Mnet K Data Block communications • Indicates that communications of the K data block of parameters are normally
(k = 0 to 63, Array state information (Normal = 1, operating as set or not. .
k:Station No.) abnormal = 0)
_HSmERR[k] Bit Fnet/Mnet K Data Block setting stations • Indicates that the stations set in the K data block of parameters have an error
(k = 0 to 63, Array state information. (Normal = 1, or not.
k:Station No.) abnormal = 0)
APP2 - 8
Appendix 3. Function/Function Block List
REMARK
1)The items marked with ‘ *’ has following meaning.
*1 : The size of the program memory which a program occupies when it uses the function once.
*2 : The size of the program memory which a program occupies only one time though it uses the function many times.
*3: of IL programs (2 input variables, 10 strings)
2)The above shows the function list when programs are written with IL(Instruction List) language. If programs are written with LD(Ladder diagram),
the following differences occur.
(1) 16 byte will be added to the size of the PB.
(2) In non-execution, 0.4 will be added to the processing speed. In execution, 0.8 µsec will be added.
APP3 - 1
Appendix 3. Function/Function Block List
REMARK
1) The items marked with ‘ *’ has following meaning.
*1 : The size of the program memory which a program occupies when it uses the function once.
*2 : The size of the program memory which a program occupies only one time though it uses the function many times.
*3: The size of the program memory which a program occupies whenever it uses the function block once.
2) The occupied memory size and processing speed of IL programs are same as LD programs.
APP3 - 2
Appendix 4. Outer Dimensions
1) CPU module
RUN
STOP
GM6-CPUA
RUN
PAU/REM
STOP
110
38 35
90
2)I/O Module
110
38 35
90
APP4 - 1
Appendix 4. Outer Dimensions
POWER ○
GM6-PAFA
110
38 45
90
B
E
(Unit : mm)
A B C D E
APP4 - 2
Appendix 4. Outer Dimensions
APP4 - 3