Appendix B Task Codes Specifications
Task code
H28
Timer/counter set value modification Classification
Memory
write
Function
Modifies the set value for the HI-LADDER program timer or counter.
Execution condition
1] CPU
status
CPU
status
STOP RUN HALT
ERROR
×
×
×
×
READ occupancy
Occupancy
{
{
{
{
WRITE occupancy
status
2]
The special internal output R7C7, which allows modifies while running, is on.
3]
Normal scan time is less than 3 seconds while running.
4]
In the case of ERROR, it is not in the severe error status.
While a modification is performed in a status other than STOP or ERROR, the special internal output R7EA (modify in
progress while running) will turn on.
Format
Request
H28 H02
(a)
(b)
(c)
(d)
(e)
(f1)
(f2)
(g1)
(g2)
(a) Subcommand
:
H02
(fixed)
(b) Timer counter number
: H0000 to H01FF (0 to 511)
(c) Change code
: H00 Modify not performed.
H01 Modify time base only.
H02 Modify set value number 1 only.
H03 Modify time base and set value number 1.
H04 Modify set value number 2 only (WDT command).
H05 Modify time base and set value number 2 (WDT command).
H06 Modify set values number 1 and number2 (WDT command).
H07 Modify time base, set value number1 and set value number 2 (WDT command).
Note : When not making modification, set 0 in all digits.
B-24