
18-3
(3)
Count the number of production by counting the number of execution of the processing program and
assigned to
a variable.
Preconditions:
Variable the production count is to be assigned to:
GI001,
Processing program:
WORK01.prg
Production count program
:
Prog0001.prg
1
CALL WORK01.prg
Execute the processing program.
2
INC GI001
Add “1” to GI001.
Counter reset program
:
Prog0002.prg
◎
To reset the value of the variable, execute a program (Counter reset program) to assign “0” to the variable.
1
SET GI001 = 0
Assign “0” to GI001.
・
You can use the counter reset program every morning if you want to count the production of a day, or use it at the
beginning of each month if you want to count the production of a month.
To see the value of the variable:
Click
>>
>>
View
>>
Display
change
>>
Display
variable