7
PROGRAMMING
7.2 Program Example when GX Configurator-CT is not Used
7.2.1 Program example when dedicated instructions are used
7
- 8
1
OVE
R
VI
EW
2
SYS
TEM
CONFIGURA
T
ION
3
SP
ECIFI
C
A
T
IO
N
S
4
PRO
C
EDURES AND
SETT
ING
S
BEFO
RE
O
PERA
T
IO
N
5
FUNCTIONS
6
UTIL
IT
Y P
A
C
K
A
G
E
(G
X Conf
igu
rat
or-CT)
7
PROGRA
MMING
8
T
R
OUB
L
ES
HO
O
T
ING
Set only when the
periodic pulse
counter function
is used.
Set only when the
linear counter
function is used.
<Present value storage>
Module
READY
Present value
read signal
<Processing at count coincidence>
Module
READY
CH1
Counter
value
coincidence
<Preset execution>
Module
READY
Preset
command
signal
<Periodic pulse counter function>
Module
READY
<Overflow detection processing>
Module
READY
PPCVRD1
Completion
device
PPCVRD1
Completion
status
indication
device
Periodic
pulse
count data
read
command
Periodic pulse
count start
command
Overflow
status
storage
Overflow
occurrence
confirmation
LED signal
Overflow
status
storage
CH1 Periodic
pulse counter
start command
Previous
periodic
pulse count
value storage
PPCVRD1
Completion
device
CH1 Preset
command
CH1
Coincidence
signal reset
command
CH1
Coincidence
signal reset
command
Coincidence
confirmation
LED signal
Present
value
storage
CH1
Present
value A
PPCVRD1
System area
PPCVRD1
Previous
periodic pulse
count value
CH1
Overflow
detection flag
CH1
Coincidence
signal reset
command
CH1
Counter
value
coincidence
Coincidence
LED clear
signal
CH1
Counter
value
coincidence
CH1
Coincidence
signal reset
command
\
\