G3,4,6F Hsca
G3,4,6F Hsca
GLOFA G3F-HSCA
G4F-HSCA
MASTER-K G6F-HSCA
LG Industrial Systems
CONTENTS
Chapter 1. INTRODUCTION
Chapter 2. SPECIFICATIONS
4.1 Insertion of the Function Block for Hgh Speed Counter on the GMWIN 4-1
Chapter 5. GM PROGRAMMING
Chapter 7. MK PROGRAMMING
Chapter 8. TROUBLESHOOTING
The precautions explained here only apply to the high-speed counting module.
For safety precautions on the PLC system, see the GLOFA PLC GM3/4/6 and MASTER-K200S/300S/1000S CPU
User’s Manuals.
A precaution is given with a hazard alert triangular symbol to call your attention, and precautions are represented
as follows according to the degree of hazard.
However, a precaution followed with ! CAUTION can also result in serious conditions.
Both of two symbols indicate that an important content is mentioned, therefore, be sure to observe it.
Design Precautions
! CAUTION
! CAUTION
Installation Precautions
! CAUTION
Operate the PLC in the environment conditions given in the general specifications.
If operated in other environment not specified in the general specifications, it can cause an
electric shock, a fire, malfunction or damage or degradation of the module
Make sure the module fixing projections is inserted into the module fixing hole and fixed.
Improper installation of the module can cause malfunction, disorder or falling.
Wiring Precautions
! CAUTION
! WARNING
! CAUTION
! CAUTION
Chapter 1. INTRODUCTION
This manual describes the specifications, handling instructions, and programming information for the
G3F– HSCA, the G4F– HSCA and the G6F-HSCA.
It is the high speed counting module used with CPU of the GLOFA PLC GM1/2/3/4/6 series and the
MASTER-K200S/300S/1000S series.
The G3F-HSCA is used for GM1/2/3 series and K1000S series, and the G4F-HSCA for GM4 series
and K300S series, the G6F-HSCA for GM6 series and K200S series.
The G3F- HSCA, the G4F-HSCA and the G6F-HSCA consist of 24bit counting part which performs in-
crement or decrement count, an external input part, a comparison part which compares the set value
specified by the user with the current counting value, and an output part which outputs the comparison
results.
1- 1
Chapter 2. SPECIFICATION S
Chapter 2. SPECIFICATIONS
Table 2.1 shows general specifications of the GLOFA GM series and MASTER-K series.
No Item Specifications Standards
IEC 61131-2
Electrostatic discharge Voltage :4kV(contact discharge)
IEC 1000-4-2
Radiated electromagnetic field 27 ~ 500 MHz, 10 V/m IEC 61131-2
IEC 1000-4-3
7 Noise immunity Digital Digital I/Os
I/Os (Ue < 24 V)
Severity All power
( Ue Analog I/Os IEC 61131-2
Fast transient burst noise Level modules
≥ communication IEC 1000-4-4
24 V) I/Os
Voltage 2 kV 1 kV 0.25 kV
8 Operating Free from corrosive gases and excessive dust
atmosphere
9 Altitude for use Up to 2,000m(6,562ft)
10 Pollution degree 2 or lower
11 Cooling method Self-cooling
Remark
1) IEC(International Electrotechnical Commission)
: The international civilian organization which produces standards for electrical and electronics industry.
2) Pollution degree
: It indicates a standard of operating ambient pollution level.
The pollution degree 2 means the condition in which normally, only non-conductive pollution occurs.
Occasionally, however, a temporary conductivity caused by condensation shall be expected.
2 - 1
Chapter 2. SPECIFICATION S
The following show various specifications of the High-speed counting module including basic performance
specifications, input specifications, limit switch input specifications and transistor output specifications.
Specifications
Item
G3F - HSCA G4F - HSCA G6F - HSCA
2 - 2
Chapter 2. SPECIFICATION S
Item Specifications
5 VD C (7 mA)
24 VD C (13 mA)
5 VD C 4.5 V or more
24 VD C 14 V or more
5 VD C 0.8 or less
24 VD C 2.5 V or less
Item Specifications
Input voltage 24 VD C
Item Specifications
2 - 3
Chapter 2. SPECIFICATION S
The names of parts and functions of the high speed counter module are shown as below
LED
Indicators
Input/
output
terminal
block
Dip switch
Setting part
2 - 4
Chapter 2. SPECIFICATION S
LED
Indicators
Dip switch
setting part
Input/
output
terminal
block
3) G6F-
READY L/S
A PRESET
B OUT1 LED
Z OUT2 Indicators
K3F-HSCA
G6F-HSCA
24V
12V
A
5V
COM
24V
12V
B
5V
Input/
COM
24V
12V output
Z
5V Connector
COM
24V
L/S
0V
24V
PRE
-SET 0V
OUT1
OUT2
+ 24V
0V
-
GK3F-HSCA
6F-HSCA
2 - 5
Chapter 2. SPECIFICATION S
No. Description
G3F-HSCA
Power LED
POWER E R R OR Turns On when the power is applied.
Error LED
Turns on for 0.5 sec when the power is applied and
then turns off if the system is normally running.
LIMIT
Flickers with 0.1 sec, 0.2 sec or 0.3 sec cycle
according to the error content, If an error has
occurred.
Phase A pulse in p u t L E D
Turns on when voltage is applied to phase A input
terminal.
Phase B pulse in p u t L E D
Turns on when voltage is applied to phase B input
terminal
Phase Z pulse in p u t L E D
Turns on when voltage is applied to phase B input
terminal
Limit switch in p u t L E D
Turns on when voltage is applied to limit switch
input terminal
G4F-HSCA OUT1 o u t p u t L E D
Indicate the magnitude comparison result of CMP 1
POWE
R OUT2 o u t p u t L E D
ERRO Indicate the magnitude comparison result of CMP 2
R
Preset S w i t c h I n p u t (PRESET)
Turns on when voltage is applied to preset switch
input terminal
READY L/S
A PRESET
B OUT1
C OUT2
G6F-HSCA
K3F-HSCA
2 - 6
Chapter 2. SPECIFICATION S
The DIP Switch settings are used for phase-2/ phase-1 operation mode specification, Increment /
Decrement count method specification at 1-phase operation, and multiplication specification at 2-phase
operation.
G3F-HSCA G4F-HSCA/G6F-HSCA
Channel 0
Channel 1
Switch Functions
G3F - H S C A
G4 F - H S C A,
channel G6F-HSCA
0
channel 1 Status Descriptions
On
Specifies multiplicate 2
SW 3 SW 7 SW 3 Off
Off
No multiplication is applied
SW 4 SW 8 SW 4 On
Off
Specifies multiplicate 4
Off
2 - 7
Chapter 2. SPECIFICATION S
2 - 8
Chapter 2. SPECIFICATION S
1) G3F-HSCA/G4F-HSCA
Remark
The above input/output terminals the CH0 and CH1 of the G3F– HSCA use the same input/output
terminals as shown above.
The G4F– HSCA input/output terminal’ s configuration is also same as above.
2 - 9
Chapter 2. SPECIFICATION S
2) G6F-HSCA
24V
1
12V
37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20
2
24V
5
12V
6
B 5V
Phase Z pulse Input Terminal
7
COM
One of 24V, 12V and 5V is selected
8
24V
19 18 17 16 15 14 13 12 11 10 9
12V
Z 5V
Limit Switch Input Terminal
COM
24VD C
24V
L/S 0V
24V
Preset Switch Input Terminal
PRE 0V
24VDC
OUT1
OUT2
24V
Comparison Output Terminal
0V
Transistor Open Collector Output
Remark
2 - 10
Chapter 2. SPECIFICATION S
Table 2.1 and Table 2.2 shows the list for interface with external devices.
1) G3F-HSCA/G4F-HSCA
Termina
Input
l No. Operatio
I/O Internal Current Signal Name guarantied
CH C n
Voltage
0 H1
24 V, Phase A On 14~26.4 V
1 21
pulse input Off 2.5 V
12 V, Phase A On 11~13.2 V
2 22
pulse input Off 1.5 V
330Ω On 4.5~5.5 V
5 V, Phase A
3 23 0.8 V or
pulse input Off
less
4 24 COM
24 V, Phase B On 14~26.4 V
5 25
pulse input Off 2.5 V
12 V, Phase B On 11~13.2 V
330Ω 6 26
pulse input Off 1.5 V
Input
On 4.5~5.5 V
5 V, Phase B
7 27 0.8 V or
pulse input Off
less
8 28 COM
24 V, Phase Z On 14~26.4 V
9 29
330Ω pulse input Off 2.5 V
12 V, Phase Z On 11~13.2 V
10 30
pulse input Off 1.5 V
On 4.5~5.5 V
5 V, Phase Z
11 31 0.8 V or
pulse input Off
less
12 32 COM
Output External
power supply
17 37
output
24 V Input voltage
10.2 ~ 30 V
2 - 11
Chapter 2. SPECIFICATION S
External
power supply
18 38
COM
0V
[Table 2.1] External interface list ( G3F-HSCA / G4F-HSCA )
2) G6F-HSCA
Input
Terminal Operatio
I/O Internal Current Signal Name guarantied
pin No. n
Voltage
24 V, Phase On 14~26.4 V
3.3 1
A pulse input Off 2.5 V
1.2 12 V, Phase On 11~13.2 V
2
A pulse input Off 1.5 V
330 On 4.5~5.5 V
5 V, Phase A
3 0.8 V or
pulse input Off
820 less
4 COM
3.3
24 V, Phase On 14~26.4 V
5
1.2 B pulse input Off 2.5 V
12 V, Phase On 11~13.2 V
6 B
Input
330 Off 1.5 V
pulse input
820 On 4.5~5.5 V
5 V, Phase B
7 0.8 V or
pulse input Off
3.3 less
8 COM
1.2 24 V, Phase On 14~26.4 V
9
Z pulse input Off 2.5 V
330
12 V, Phase On 11~13.2 V
10
Z pulse input Off 1.5 V
820
On 4.5~5.5 V
5 V, Phase Z
11 0.8 V or
pulse input Off
less
12 COM
2.2 L/S input 24 On 19~26.4 V
13
V Off 6 V or less
270
14 L/S COM
Input 2.2
Preset input On 19~26.4 V
15
270 24V Off 6 V or less
16 L/S COM
Open
Rated output:
Output 17 collector
24VDC, 200 mA
output OUT1
Response time:
Open Off→On 50 or less
18 collector
On→Off 50 or less
output OUT2
2 - 12
Chapter 2. SPECIFICATION S
External
power supply
37
output
24 V Input voltage
External 10.2 ~ 30 V
power supply
19
COM
0V
[Table 2.2] External interface list ( G6F-HSCA )
2 - 13
Chapter 2. SPECIFICATION S
24V phase A, B or Z
pulse input
0V
Voltage output
24 V phase A, B or
Z pulse input
2 - 14
Chapter 2. SPECIFICATION S
The High-speed counting module can count high-speed pulse which cannot be proceed with the CPU
counting instructions (CTU,CTUD, etc.). Up to 24 bits binary (16,777,215) can be counted.
Pulse input mode is classified into 1-Phase (Phase A) pulse input and 2-Phase (Phase B) pulse input. In
1-Phase pulse input mode, there are two kinds of increment/decrement count methods. One is specified by
program and the other is specified by phase B pulse input signal. In 2-Phase pulse input mode, the
increment/decrement count method is specified by the phase difference between phase A and B pulsed.
Phase A pulse
input
Decrement counter
specification signal
Counter
value Increme Decrement Incremen
nt t
Phase A pulse
input
Phase B
pulse input
2 - 15
Chapter 2. SPECIFICATION S
When Phase A pulse-input leads Phase B, the counter performs increment count when phase B
pulse-input leads phase A, it performs decrement count.
If Phase B pulse input is low when Phase A pulse input rises, the counter performs increment
count.
If Phase B pulse input is low when phase A pulse input falls, it performs decrement count.
A-phase pulse
input
B-phase pulse
input
Counter
value
Increment Decrement
When Phase A pulse-input leads Phase B, the counter performs increment count when phase B
pulse-input leads phase A, it performs decrement count.
If Phase B pulse input is low when Phase A pulse input rises or it is high when phase A pulse
input falls, the counter performs increment count.
If Phase B pulse input is high when Phase A pulse input rises or it is low when phase A pulse
input falls, the counter performs decrement count.
A-phase pulse
input
B-phase pulse
input
Counter
value Increment Decrement
2 - 16
Chapter 2. SPECIFICATION S
When Phase A pulse input leads Phase B pulse input, the counter performs increment count.
When the other leads the one, it performs decrement count.
The counting is performed when the Phase A and B pulse inputs rise or fall.
A-phase pulse
input
B-phase pulse
input
Counter
value Increment Decrement
The counting module has the function of comparison output, which outputs the result of
magnitude comparison between the Current value (=current value) and a comparison value.
There are two outputs in the comparison output and they can be used separately.
The magnitude comparison mode can be set as shown in the below table.
7 Always On
The results as shown above will be indicated on the OUT1 LED or OUT2 LED regardless of the
output. Output to the external terminal block is performed only when the output enable signal is
ON.
2 - 17
Chapter 2. SPECIFICATION S
1) Example When the Comparison Mode Is Set to ‘ Current Value < Setting Value’
Current value
Setting
v alue
< Signal
LED status
Output Enable
signal
External output
2) Example When the Comparison Mode Is Set to ‘ Current Value Setting Value’
Current value
Setting
v alue
> Signal
LED status
Output Enable
signal
External output
2 - 18
Chapter 2. SPECIFICATION S
3) Example When the Comparison Mode Is Set to ‘ Current Value = Setting Value’
Contrary to the ‘ >(GT)” and ‘ <(LT)’ signals, once the coincidence (=) signal is turned ON,
it
retains the ON state until the coincidence reset signal is turned ON.
The LED status is same as the coincidence signal. Output is performed only when the output
enable signal is turned ON.
Current
value
Setting
value
Coincidence (=)
signal
Coincidence (=)
Reset signal
LED status
Output enable
signal
External output
Home signal is operated only when the HOME-LATCH enable signal is turned on.
Home signal turns on when both of phase Z pulse input and limit switch input is turned on.
The count value retains ‘ 0’ until the HOME-LATCH enable signal turns OFF though the
counter continuos its counting operation.
Phase Z pulse
input
Limit switch
Home Latch
enable signal
Home signal
Current value
2 - 19
Chapter 2. SPECIFICATION S
The carry signal appears when the counter value changes from 16,777,215 to 0 during increment
counting. The carry signal retains its ON State until the carry reset signal turns on. If the home
signal is input, the carry signal will be cleared.
Current
value
Carry signal
Carry Reset
signal
The borrow signal appears when the counter value changes from 0 to 16,777,215 during
decrement
counting. The borrow signal retains its ON State until the borrow reset signal turns on. If the
home
signal is input, the borrow signal will be cleared. The borrow reset signal is used together with
the
carry reset signal.
Current
value
Borrow
signal
Borrow
Reset signal
2 - 20
Chapter 2. SPECIFICATION S
2 - 21
Chapter 3. INSTALLATION AND WIRING
3.1 Installation
1) Ambience Requirements
Avoid installing this module in locations, which are subjected or exposed to:
Water leakage and dust a large amount of dust, powder and other conductive power, oil mist, salt, of organic solvent
Mechanical vibrations of impacts transmitted directly to the module body.
Direct sunlight.
Dew condensation due to sudden temperature change.
High or low temperatures (outside the range of 0-55 )
When using High-speed inputs, take the following precautions against noise in wiring.
1) Be sure to use shielded twisted pair cables and provided class 3 grounding.
2) Separate a twisted pair cable from power cables or I/O line that may generate noise.
3 - 1
Chapter 3. INSTALLATION AND WIRING
G3F-HSCA/G4F-HSCA/G6F-HSCA Encoder
External
Power
Shield Cable
820
External
Power
Shield Cable
820
Shield Cable
820
L/S Switch
Input +24V
270
External
Power
3 - 2
Chapter 3. INSTALLATION AND WIRING
G3F-HSCA/G4F-HSCA/G6F-HSCA
Encoder
*1 1.5K 1W
+24V
820 1/4W
OUT
COM
*1
1.5K 1W
+24V
Shield E
820 1/4W
OUT
COM
*1 Shield E
1.5K 1W
+24V
820 1/4W
OUT
COM
Shield E
+24V
DC 24V
0V
0V
External Power
Supply
3 - 3
Chapter 3. INSTALLATION AND WIRING
Encoder
G3F-HSCA/G4F-HSCA/G6F-HSCA
*1 1.5K 1W
+24V
820 1/4W
0V
COM
*1
1.5K 1W
+24V
Shield E
B 1.2K 1/4W
+12V
Phase OUT
330 1/4W
+5V Shield Cable
820 1/4W
0V
COM
*1 Shield E
1.5K 1W
+24V
Z 1.2K 1/4W
+12V
Phase OUT
330 1/4W
+5V Shield Cable
820 1/4W
0V
COM
Shield E
+24V
DC 24V
0V
0V
3 - 4
Chapter 4. FUNCTION BLOCK
This shows function block for high speed counter module on the GMWIN.
A kind of function block is as follows.
4 HSC_RD HSCR1RD HSC_RD HSCR0RD HSC_RD HSCR6ARD Operation status value reading
4.1 Insertion of the Function Block for High Speed Counter Module on the GMWIN
Function Block is inserted on the execution of the GMWIN according to following procedure.
Function block can be inserted only in the open condition of the Project.
Library insert
4 - 1
Chapter 4. FUNCTION BLOCK
Specifying preset (Initial) value for the applicable channel of the High Speed Counter Module.
4 - 2
Chapter 4. FUNCTION BLOCK
INPUT
BASE : Base location No. for the loaded high speed counting
module.
(GM1 : 0~31, GM2 : 0~7, GM3/4 : 0~3, GM6 : 0)
SLOT : Slot location No. for the loaded high speed counting
module.
(0 ~ 7)
OUTPUT
Specifies the reference value, which will be compared with the current value for the corresponding channel
of the High Speed Counter Module.
4 - 3
Chapter 4. FUNCTION BLOCK
INPUT
OUTPUT 4 - 4
Specifies the run status control information for the corresponding channel of the High Speed Counter
Module.
HSC_WR
INPUT
BOO REQ NDR BOO
L L
USIN BAS ERR BOO
REQ : Function block execution request.( )
T E L BASE : Base location No. for the loaded high speed counting module.
USIN SLO STA USIN
T T T T (GM1 : 0~31, GM2 : 0~7, GM3/4 : 0~3, GM6 : 0)
USIN CH * 1 SLOT : Slot location No. for the loaded high speed counting module.
T
BOO OT_ ( 0 ~ 7)
L E
BOO HOM
CH : Specifies the operating channel No.( 0 ~ 1)
L E OT_E: Specifies output enable/disable (0:disable, 1:enable)
BOO CY_
L R HOME :Specifies Home-Latch enable/disable (0:disable, 1:enable)
BOO
L
EQ_R CY_R: Specifies carry/borrow reset enable/disable (0:disable,
BOO DOWN 1:enable)
L
BOO CT_
EQ_R: Specifies coincidence reset enable/disable (0:disable, 1:enable)
L E DOWN: Specifies the increment/decrement (0:increment, 1:decrement)
BOO PRE
L _ *2 CT_E : Specifies counting enable/disable (0:disable, 1:enable)
I/E
PRE_I/E : Specifies external preset input usable
(0 : external preset input disable,
1 : external preset input usable)
OUTPUT
DONE : Turns on when the function block has finished without error.
The On state is kept until next request.
However, turns off if error occurs during execution of the
function block.
STAT : Indicates the error that occurs during execution of the function
block.
4 - 5
Chapter 4. FUNCTION BLOCK
Reads the current value and operating status for the corresponding channel of the High Speed Counter
Module.
INPUT
HSC_RD
OUT2
UP
HOME OUTPUT
CY DONE : Turns on when the function block has finished without error.
The On state is kept until next request.
BW However, turns off if error occurs during execution of the
function block.
STAT : Indicates the error that occurs during execution of the function
block.
C N T : Current count value read from the High Speed Counter Module
(0~16,777,215)
OUT1: OUT1 status ( 0:Off. 1:On)
OUT2: OUT2 status ( 0:Off, 1:On)
UP : Increment/decrement status (0:decrement, 1:increment)
HOME: Home signal input status ( 0:Off, 1:On)
CY :Carry signal status ( 0:Off, 1:On)
BW :Borrow signal status ( 0:Off, 1:On)
4 - 6
Chapter 4. FUNCTION BLOCK
INPUT
OUTPUT
NDR : Turns on when the function block has finished without error.
Turns off at next scan.
ERR : Turns on when an error occurs during execution of the function
block.
STAT : Indicates the error that occurs during execution of the function
block.
4 - 7
Chapter 4. FUNCTION BLOCK
Specifies the reference value, which will be compared with the current value for the corresponding channel
of the High Speed Counter Module mounted on a remote station.
INPUT
OUTPUT
NDR : Turns on when the function block has finished without error.
Turns off at next scan.
ERR : Turns on when an error occurs during execution of the
function block.
STAT : Indicates the error that occurs during execution of the
function block.
4 - 8
Chapter 4. FUNCTION BLOCK
Specifies the control information of the operating status for the corresponding channel of the High Speed
Counter Module mounted on the remote station.
4 - 9
Chapter 4. FUNCTION BLOCK
HSCR1W *1 INPUT
BOO REQ NDR BOO
L L
USIN NET- ERR BOO
REQ : Function block execution request at rising edge.( )
NO
T L NET_NO : Location No.(0 ~ 7) of the slot where the local
USIN ST- STA USIN
T N T T communication modules (G3L – FUEA, G4L – FUEA, G3L –
O
USIN
T
BAS
E
FUOA) is loaded to which the function block will be sent.
USIN SLO St_ N O : Station No.(0 ~ 63) of the communication modules(G3L –
T T
USIN CH * 2
RBEA, G4L – RBOA, G4L – BBEA) mounted on the remote
T I/O station.
BOO OT_
L E BASE: Location No. of the base unit where the High Speed Counter
BOO
L
HOM
E
Module is loaded.
BOO CY_ (GM1 : 0~31, GM2 : 0~7, GM3/4 : 0~3, GM6 : 0)
L R
BOO EQ_
SLOT: Location No. of the slot in the base unit where the High
L R Speed Counter Module is loaded.(0 ~ 7)
BOO DOW
L N CH : Specifies operating channel No. (0 ~ 1)
BOO
L
CT_
E
OT_E: Specifies output enable/disable (0:disable, 1:enable)
BOO PRE
*3
HOME :Specifies Home-Latch enable/disable (0:disable, 1:enable)
L _
I/E CY_R: Specifies carry/borrow reset enable/disable (0:disable,
1:enable)
EQ_R: Specifies coincidence reset enable/disable (0:disable,
1:enable)
DOWN: Specifies the increment/decrement (0:increment, 1:decrement)
CT_E : Specifies counting enable/disable (0:disable, 1:enable)
PRE_I/E : Specifies external preset input usable
(0 : external preset input disable,
1 : external preset input usable)
OUTPUT
NDR : Turns on when the function block has finished without error.
Turns off at next scan.
ERR : Turns on when an error occurs during execution of the
function block.
STAT : Indicates the error that occurs during execution of the
function block.
Reads the current value and operating status for the corresponding channel of the High Speed Counter
Module mounted on the remote station.
4 - 10
Chapter 4. FUNCTION BLOCK
INPUT
OUTPUT
NDR : Turns on when the function block has finished without error.
Turns off at next scan.
ERR : Turns on when an error occurs during execution of the
function block.
STAT : Indicates the error that occurs during execution of the
function block.
CNT : Current count value read from the High Speed Counter
Module
(0~16,777,215)
OUT1: OUT1 status ( 0:Off. 1:On)
OUT2: OUT2 status ( 0:Off, 1:On)
UP :Increment/decrement status (0:decrement, 1:increment)
HOME : Home signal input status ( 0:Off, 1:On)
CY :Carry signal status ( 0:Off, 1:On)
BW :Borrow signal status ( 0:Off, 1:On)
4 - 11
Chapter 4. FUNCTION BLOCK
This shows the errors on the output variable “STAT” of variables and the resolutions in accordance with them.
STAT Local/
Descriptions Resolutions
No. Remote
0 Operating with no fault -
1 The base location number is exceeding the proper Correct the number in accordance with the proper range(See
setting range Section 4.2)
2 H/W error of the base Contact the service station.
3 The slot location number is exceeding the proper Set the right number to the slot mounting the high speed
setting range counter module.
4 The high speed counter module on the slot is empty Mount the high speed counter module to the specified slot
Local
5 The module loaded isn't the high speed counter
Mount the high speed counter module to the specified slot
module
6 The channel number is exceeding the proper range Specify the available channel correctly
7 H/W error of the high speed counter module Contact the service station.
8 The high speed counter module's shared memory Contact the service station.
error
9 Make a correct specification of the available channel on the
The available channels are not specified
initialization function block
128 H/W error of the communication module for remote See the manual for the remote communication module
129 The base location number is exceeding the proper Corsets the number in accordance with the proper range(See
setting range Section 4.2)
131 The slot location number is exceeding the proper Set the right number to the slot mounting the high speed
setting range counter module
133 Remote The module loaded isn't the high speed counter
Mount the high speed counter module to the specified slot
module
135 H/W error of the high speed counter module Contact the service station.
136 The high speed counter module's shared memory Contact the service station.
error
137 Make a correct specification of the available channel on the
The available channels are not specified
initialization function block
4 - 12
Chapter 5. GM PROGRAMMING
Chapter 5. GM PROGRAMMING
If not especially noted, this section explains programming examples in reference with the G4F – HSCA
that is loaded onto the system given below
System configuration
5 - 1
Chapter 5. GM PROGRAMMING
Timing Diagram
5 - 2
Chapter 5. GM PROGRAMMING
5.1.2 Preset
Timing diagram
5 - 3
Chapter 5. GM PROGRAMMING
Timing Diagram
*1. The function block HSC_CMP will be processed for one scan.
5 - 4
Chapter 5. GM PROGRAMMING
Timing Diagram
5 - 5
Chapter 5. GM PROGRAMMING
Timing Diagram
External input
Signal (OA)
*1.The current count value (CNT) is read only when the COUNTER_EN is turned on.
5 - 6
Chapter 5. GM PROGRAMMING
Timing Diagram
5 - 7
Chapter 5. GM PROGRAMMING
Timing Diagram
*1.This occurs only when the comparison values 1 and 2 are set to “ =” , “ ≥ “ , or “ ≤
“ and the current count value (CNT) equal to the comparison value (CMPD)
5 - 8
Chapter 5. GM PROGRAMMING
Timing diagram
External input
Timing diagram
Timing Diagram
Signal (OA)
Output disable
*1. Carry, Borrow signal occurs when the Current count value changes from 16,777,215 to 0
or from 0 to 16,777,215
5 - 9
Chapter 5. GM PROGRAMMING
Moving
object Mot Encod
or er
L/S
Terminal signal
block High speed
Counting
Timing diagram
L/S
signal
Phase-Z
signal
5 - 10
Chapter 5. GM PROGRAMMING
5.1.10 Read/ Write when the high speed counter module I s mounted onto the remote
station
System configuration
o o
NET-NO : The number of the slot where the G4L – FUEA is loaded = 1
ST-N O : G4L-RBEA Station No. = 3
BASE : The number of the base unit where the G4F – HSCA is loaded = 1
SLOT : The number of the slot where the G4F – HSCA is loaded = 2
Program
5 - 11
Chapter 5. GM PROGRAMMING
Timing Diagram
*1. It is normal communication complete cycle, and it extents in proportion with quantity of
communication data and the number of stations connected to the communication module.
5 - 12
Chapter 5. GM PROGRAMMING
System
Configuration
Forward rotation
CAR Reverse rotation
Encoder
Inverter
Forward rotation
Output
Reverse rotation
Start command
5 - 13
Chapter 5. GM PROGRAMMING
Operation Description
The motor for moving the cart rotates with start command, and makes the cart stop at the first stop
position with the High-speed counting module counting the encoder signals from the motor.
Then, if the first work complete signal turns ON, the motor moves the cart to stop at the second stop
position. When the second work complete signal turns on, the motor return the cart to the start position.
%Q0.1.0 : Motor forward rotation signal (On : forward rotation , Off : Stop)
%Q0.1.1 : Motor reverse rotation Signal (On : Backward rotation, Off : Stop)
Output
%Q0.1.16 - % Q0.1.31 : Indicates the current count value(BCD) of
the High-speed counting module.
Driving mode
Motor
Forward
Speed reducing position
rotation Speed reducing position
Start position
D(pulse)
Motor
reverse Speed reducing position
rotation
*1. 100(Difference between stop position and speed reducing position) is an interval
delayed by reducing timing of the inverter.
5 - 14
Chapter 5. GM PROGRAMMING
Operation
Timing
Start command
%I0.0.0
First work
complete signal
%I0.0.1
Second work
complete signal
%I0.0.2
OUT1
Motor forward
rotation
%Q0.1.0
Motor reverse
rotation
%Q0.1.1
Used Variable
List
5 - 15
Chapter 5. GM PROGRAMMING
Program
5 - 16
Chapter 5. GM PROGRAMMING
Write/read are
executed whenever
COUNT_ENABLE = ON
5 - 17
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
1) G3F-HSCA
OUT 1
OUT 2
Carry Signal
Borrow Signal
Terminal Block
The above shows the operation block diagram where the I/O word number of the G3F-HSCA is
0
6 - 1
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
2) G4F-HSCA / G6F-HSCA
G4F-HSCA / G6F- PLC CPU
HSCA Buffer Memory data
send/receive by PUT/GET.
OUT 1
OUT 2
Increment/Decrement Count
Set
Carry Signal
Borrow Signal
Terminal Block
The above shows the operation block diagram where the I/O word number of the G4F-HSCA /
G6F-
HSCA is 0.
6 - 2
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
6.2.1 G3F-HSCA
P(N)0 OUT 1
P(N)1 OUT 2
P(N)7 Unused
P(N)8 OUT 1
P(N)9 OUT 2
P(N)F Unused
‘ N ’ means the I/O word number of the High Speed Counter module.
6 - 3
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
‘ N ’ means the I/O word number of the High Speed Counter module.
6 - 4
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
P(N)0 OUT 1
P(N)1 OUT 2
P(N)7 Unused
‘ N ’ means the I/O word number of the High Speed Counter module.
6 - 5
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
1) Input Signals
OUT 1
A data among ‘ >’ , ‘ =’ and ‘ <’ is selected and if the current comparison result conforms to the
selected data this input signal will be set to high (On).
OUT 2
A data among ‘ >’ , ‘ =’ and ‘ <’ is selected and if the current comparison result conforms to the
selected data this input signal will be set to high (On).
C a r r y Signal
If the current count value is ‘ 16,777,215’ and increments by one pulse, the current value
becomes ‘ ’ and the carry signal turns On.
Borrow Signal
If the current count value is ‘ ’ and decrements by one pulse, the current value becomes
‘ 16,777,215’ and the borrow signal turns On.
2) Output Signal
6 - 6
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
6 - 7
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
The high speed counting module has a Buffer Memory for data write/read to/from the PLC CPU. The
PUT and PUTP instructions write data from the PLC CPU to the Buffer Memory. The GET and GETP
instruction reads data. (Refer to the Manuals relating to the instructions.)
The followings explain the structure of the Buffer Memory and the data configuration.
Address
(Decimal
) Preset Value(Lower)
0000
0001 Preset Value(Upper)
0002 Set Value(Lower)
Channel
0003 Set Value(Upper) 0
0004 Out Data
0005 Current Value
0006 (Lower)
Current Value
6 - 8
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
The followings explain them in reference with the channel 0. For the channel 1, only address is different
and contents are same as the channel 0.
0000 Lower
0001 Upper
O :Usable X :Unusable
0002 Lower
0003 Upper
O :Usable X :Unusable
Used to store the set value which will be compared with the current count value.
The set value setting range is 0 to h00FFFFFF(16,777,215 as decimal). If the set value exceeds the
setting range, the input signal P(N)6 turns On.
For the channel 1, the lower address is 0012 and the upper address 0013. If the set value exceeds
the setting range the input signal P(N)E turns On.
If a set value exceeds the setting range, the ERR LED flickers with 0.5 sec cycle.
6 - 9
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
0004
O :Usable X :Unusable
Only bits 0, 1, 2, 8, 9 and 10 are usable. If other bit is used, the input signal P(N)6 turns On and
the ERR LED flickers with 0.5 sec cycle.
Bit 0 On : If current count value < set value, OUT1 will be turned On. (output enable)
Bit 1 On : If current count value = set value, OUT1 will be turned On. (output enable)
Bit 2 On : If current count value > set value, OUT1 will be turned On. (output enable)
Bit 8 On : If current count value < set value, OUT2 will be turned On. (output enable)
Bit 9 On : If current count value = set value, OUT2 will be turned On. (output enable)
Bit 10 On : If current count value > set value, OUT2 will be turned On. (output enable)
Bits 0, 1 and 2 can be used in combination.
[Example]
Bits 1 and 2 On : If current count value ≥ set value, OUT1 will be turned On. (output enable)
Bits 0 and 1 On : If current count value ≤ set value, OUT1 will be turned On. (output enable)
Bits 0 and 2 On : If current count value ≠ set value, OUT1 will be turned On. (output enable)
If bits 8, 9 and 10 are used in combination as shown above, the results same as above will be
output to the OUT2.
0005 Lower
0006 Upper
O :Usable X :Unusable
6 - 10
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
If the counter operation enable signal turns On, the current count value to pulse inputs will be
stored to these addresses.
6 - 11
Chapter 6. BUFFER MEMORY AND I/O SIGNAL CONFIGURATON
If a Carry occurs, the P(N)4 will turn On for the CH0 and the P(N)C for the CH1.
If a Borrow occurs, the P(N)5 will turn On for the CH0 and the P(N)D for the CH1.
6 - 12
Chapter 7. MK PROGRAMMING
Chapter 7. MK PROGRAMMING
This chapter explains the programming method for using the high speed counter module.
The followings explain the read/write of the PLC CPU from/to the Buffer Memory.
7.1.1 Read from the Buffer Memory(GET,GETP)
The instruction given below are used to read data from the Buffer Memory of the high speed counter
module to the CPU. The data read can be stored to the CPU memory(F area is not excluded.).
Always executed when the execution condition
GET
is in the On state. .
N o . of the
Head
head
Number of address
word of Number of
the slot of the
the CPU words of
where the Buffer
Content memory the read
special Memory
area data.
module is where the
where the (1~50)
loaded data is
read data
stored.
is stored.
Usable Integer M,P,K,L,
memory Integer (Decimal T, C, D Integer
area /Hex) or #D
Power
slot 0
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7
slot 0
slot 1
slot 2
slot 3
slot 4
slot 5
slot 6
slot 7
CPU
(n 1 ) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Point n 1 is calculate d from 8 for the first expansion base board, from 16 for the second and from 24
for the third.
[Fig 7.2] Method for Obtaining n1.
7 - 1
Chapter 7. MK PROGRAMMING
Example 1
When the high speed counter module is mounted on the first expansion base and the data at address 5 of
the
Buffer Memory is read to the two words D15 and D16.
High Speed Counter Module
CPU
Buffer Memory
Register (address)
Read
(Data) 5 Current count value of
D15 (Data)
CH0
D16 (Data) (Data) 6
Execution Condition
GET 8 5 D0015 2
Example 2
When the same data as the example 1 is read but a pulse relay is used.
Execution Condition
D M0008
M0008
GETP 8 5 D0015
2
Example 3
When the high speed counter module is mounted on the slot 4 of the main base and the 6-word data
from address 6 of the Buffer Memory are read to the D1 to D6.
Execution Condition
GET 4 10 D1 6
7 - 2
Chapter 7. MK PROGRAMMING
7.1.2 W r i t e t o t h e B u f f e r Memory(PUT,PUTP)
Besides the data stored in the CPU memory area, decimal integer(ΟΟ) and hexadecimal
integer(HΟΟ) can be used as the data that can be written from the CPU to the Buffer Memory of the
high speed counter module.
Always executed when the execution condition
PUT
is in the On state. .
Format
PUT n1 n2 S n3
Integer or,
Head N o . of the
Number of address head
Number of
the slot of the word of
words of
where the Buffer the CPU
Content the write
special Memory memory
data.
module is where the area
(1~50)
loaded data is where the
stored. write data
is stored.
Usable Integer M,P,K,L,
memory Integer (Decimal T, C, D Integer
area /Hex) or #D
7 - 3
Chapter 7. MK PROGRAMMING
Example 1
l 16-bit data Write
When the High Speed Counter Module is mounted on the slot 2 of the first expansion base unit and 1-word
data stored in the data register D90 is written to the address 0 of the Buffer Memory.
High Speed Counter
CPU Module
(Data Register) Write (Address)
Data Data
D90 0:CH0 Preset Value
Execution Condition
PUT 5 0 D0090 1
Example 2
l 32-bit data Write
When the High Speed Counter Module is mounted on the slot 5 of the main base and 2-word(32-bit) data
stored in the data registers D51 and D52 is written to the addresses 2 and 3 of the Buffer Memory.
High Speed Counter
CPU Module
(Data Register) Write Buffer Memory
D51 Data (Lower) Data (Lower) 2
D52 Data (Upper) Data (Upper) 3 CH0 Set Value
Execution Condition
PUT 5 2 D0051 2
Example 3
l Integer Write
When the High Speed Counter Module is mounted on the slot 5 of the main base and H0402 is written to the
address 4 of the Buffer Memory.
Execution Condition
PUT 5 4 h0402 1
7 - 4
Chapter 7. MK PROGRAMMING
System configuration
Preset
Execution condition (CH1)
Value
7 - 5
Chapter 7. MK PROGRAMMING
External Preset
Condition
[ DMOVP 100
If external Preset
condition
turn On, writing ‘ 100’ to
[ PUTP 2 0 D200
the Buffer Memory
address 0.
If external connector
Preset
signal(Pin No. 15) is
inputed,
Timing Chart
External Preset
Condition
0 100 100
Buffer Memory
Value
External
Connector
Preset Signal
(Pin No. 15)
Counter present 0 100 100
Value
7 - 6
Chapter 7. MK PROGRAMMING
Set Value
Execution
condition
(CH0) DMOVP
Writing a set value 30000 to the
Buffer Memory
Setting for comparison is
performed.
Set Value (1 Pulse On)
CH0 Counter Set Signal
Execution
condition
(CH1) DMOVP
Writing a set value 2500 to the
Buffer Memory
Setting for comparison is
performed.
(1 Pulse On)
CH1 Counter Set Signal
Out Data
Execution
condition out data to the Buffer
Writing
(CH0) Memory so that output is enabled
f o r O U T 1 w h e n “ =” matched, and
f o r O U T 2 w h e n “ >” m a t c h e s .
Out Data
Execution
condition out data to the Buffer
Writing
(CH1) Memory so that output is enabled
f o r O U T 1 w h e n “ ” matched, and
f o r O U T 2 w h e n “ <” m a t c h e s .
7 - 7
Chapter 7. MK PROGRAMMING
Command for
reading the
current count
value (CH0) The current count value will
be read to the D0205
(Lower) and D0206 (Upper).
Counting proceeds only
when the counter operation
enable signal is On.
Counter Operation Enable
Command for signal
reading the
current count
value (CH1) The current count value will
15
be read to the D0215
(Lower) and D0216 (Upper).
Counting proceeds only
when the counter operation
enable signal is On.
Counter Operation Enable
signal
Turn On the P044 and P04C to enable outputs to the external terminals OUT1 and OUT2.
Output enable
Command
(CH0)
7 - 8
Chapter 7. MK PROGRAMMING
Home Latch enable signal is used to set the current count value to 0 (zero) when the mechanical
reference point has been reached.
Moving object
Motor Encoder
L/S signal
Terminal block
Phase Z signal
High speed
counting module
Home Latch
Enable command
CH0
• Timing Chart
Home Latch
Enable signal
L/S signal
Phase Z
signal
Home input
signal
7 - 9
Chapter 7. MK PROGRAMMING
Coincidence reset
command for the
CH0
Carry/Borrow
Reset command (CH0)
P047
Carry/Borrow reset signal for the CH0
Carry/Borrow
Reset command (CH1)
Output disable P04F
Carry/Borrow reset signal for the CH1
7 - 10
Chapter 7. MK PROGRAMMING
• System Configuration
Forward rotation
Cart Reverse rotation
Start position First stop position (1000 pulse) Second stop position (1800 pulse)
First work Second work
Motor
Encoder
Inverter
GM3- K7P- G3I- G3Q- G3F-
PA2A 3 0 A S D22A TR4A HSCA
P0010 Forward rotation
P0011 Output
Reverse rotation
P0020~P002F
P0000 Start command
P0001
First work complete signal
P0002
Second work complete signal
7 - 11
Chapter 7. MK PROGRAMMING
Operation explanation
The motor for moving the cart rotates with start command, and makes the cart stop at the first stop position
with the High Speed Counter Module counting the encoder signals from the motor.
Then, if the first work complete signal turns On, the motor moves the cart to stop at the second stop
position. When the second work complete signal turns On, the motor return the cart to the start position.
P0010 : Motor forward rotation signal (On : Forward rotation , Off : Stop)
P0011 : Motor reverse rotation Signal (On : Revese rotation, Off : Stop) Output
P0020 ~ P002F : Indicates the current count value(BCD) of the High Speed Counter Module.
D Register Allocation
D0000 : High-speed counter Current count Value
7 - 12
Chapter 7. MK PROGRAMMING
Operation pattern
*1. 100(Difference between stop position and speed reducing position) is an interval
delayed by reducing timing of the inverter
Motor
Forward
rotation Speed reducing position Speed reducing position
Start position
D(pulse)
Start command
(P0000)
First work
complete signal
(P0001)
Second work
complete signal
(P0002)
OUT1
(P0030)
Motor forward
Rotation.(P0010)
Motor reverse
Rotation.(P0011)
7 - 13
Chapter 7. MK PROGRAMMING
Program
Preset signal
Out1 : “>”
Out1 : “<”
7 - 14
Chapter 7. MK PROGRAMMING
Reading
the current count value
7 - 15
Chapter 7. MK PROGRAMMING
7.3.2 Program for Control of the Constant Angle rotation of the Turntable.
• System Configuration
Drill
Turntable
Motor
Change-speed
device
GM4- K4P- G4I- G4I- G4F- G4Q- High-speed
PA2A 15AS D 2 2 A D22A HSCA TR2A
Low-speed Output
Stop
Start switch
7 - 16
Chapter 7. MK PROGRAMMING
• Operation Description
If the start switch is pushed, the turntable rotates as much as the rotation angle set (60 ) and
completes drilling.
If the drilling work complete signal turns On, it rotates again 60 . If repeating the above operations
has finished six drilling works, all processing will be finished.
• Operation Format
Speed
High speed
• Program
00000 1 Pulse On
start switch
Conversion of the rotation angle
00003 60 from BCD type to BIN type
Preset value = 0
Set signal
7 - 17
Chapter 7. MK PROGRAMMING
High-speed operation
Process complete signal turns On.
Preset signal
turns On.
7 - 18
Chapter 8. TROUBLESHOOTING
Chapter 8. TROUBLESHOOTING
The following explains troubles and corrections when using the High Speed Counter Module.
F o r troubleshooting relating to the CPU module, refer to the CPU module user’ s manual.
8.1 Troubleshooting
8.1.2 The co u n t i n g st a t u s o f H i g h S p e e d C o u n t e r M o d u l e
See Section
Changes of count value do not conform to the operation status.
8.1.3 The ou t p u t st a t u s o f H i g h S p e e d C o u n t e r M o d u l e
See Section
8 - 1
Chapter 8. TROUBLESHOOTING
LED abnormal
No
Is the PWR LED
turned on?
Yes
Is voltage of the No
power supply
module normal?
No
Is normal other No
modules onto their
slots?
Yes
Is data formatting
No
signal on?
No changes of ERR No
8 - 2
Chapter 8. TROUBLESHOOTING
Yes
Is the Phase A No
LED flickering?
When voltage
Yes given on No
Is external counter input
Yes wiring? terminal, is A,B
normal ? phase ?
No
Yes
No
HW Fault
8 - 3
Chapter 8. TROUBLESHOOTING
Yes
Yes
Have adequate No
measures been taken R emove noise the sources
against noise.
Yes
Yes
Yes
No
HW Fault
8 - 4
Chapter 8. TROUBLESHOOTING
Yes
No
Connect the output line so
Is the voltage that it conforms to the output
conforming to the specifications.
output specifications?
Yes
No
Is output wiring Correct the wiring
normal?
Yes
Yes
Is OUT1 and OUT2 No Is the set value set
LEDs correctly
operating? every scan?
Correct the program so that
Yes the set value is set only
when the value is changed.
HW Fault
No
Is turned the Correct the program to set
the output enable signal ON.
output enable
Yes
No Correct the program for
Is output data
proper output data.
correct?
Yes
Yes
Yes
No
HW Fault
8 - 5
Chapter 8. TROUBLESHOOTING
8 - 6
Chapter 9. D I M E N S I O N S
Chapter 9. DIEMENSIONS
9.1 Dimensions
G3F-HSCA
1) G3F-HSCA Unit: mm
Unit: mm
G3F-HSCA
POWER ERROR
LIMI
9 - 1
Chapter 9. D I M E N S I O N S
2) G4F-HSCA Unit: mm
G4F-HSCA
POWER
ERROR
9 - 2
Chapter 9. D I M E N S I O N S
3) G6F-HSCA
Unit: mm
READY L/S
A PRESET
B OUT1
C OUT2
GK3F-HSCA
6F-
HSCA
24V
12V
A
5V
COM
24V
12V 110
B 5V
COM
24V
12V
Z
5V
COM
24V
L/S 0V
24V
PRE
-SET 0V
OUT1
OUT2
+ 24V
0V
-
G6F-
K3F-HSCA
HSCA
38 35
90
9 - 3