High−level Instructions
3 − 475
FP0R <In case of high−speed counter>
Channel No. Control flag Elapsed value area Target value area Interrupt program
ch0 R9110 DT90300 to DT90301 DT90302 to DT90303 INT0
ch1 R9111 DT90304 to DT90305 DT90306 to DT90307 INT1
ch2 R9112 DT90308 to DT90309 DT90310 to DT90311 INT3
ch3 R9113 DT90312 to DT90313 DT90314 to DT90315 INT4
ch4 R9114 DT90316 to DT90317 DT90318 to DT90319 INT6
ch5 R9115 DT90320 to DT90321 DT90322 to DT90323 INT7
Precautions during programming
Set the high−speed counter channel by the system register before using this instruction.
Without the setting, an operation error occurs.
The high−speed counter control flag (R9110 to R9115) turns on when the execution condition of this
instruction turns on and remains on until the target value matches.
During this time, the high−speed counter control instructions (F165(CAM0), F166(HC1S), F167(HC1R),
F178(PLSM)) to the high−speed counter of the same channel cannot be executed.
Before the elapsed value matches the target value, the target value and target value match output setting are
not cleared even if a hardware reset is performed (the elapsed value is cleared to ”0”).
A check for double outptu with OT instructions, KP instructions and other applied instructions is not
performed on the outptu Y that is specified for target value match output.
If the control is cleared with F0(MV) S, DT90052 instruction, the control of this instruction is cancelled and the
high−speed countrol flag turns off.
If both the normal program and the interrupt program contain code for the same channel, make sure both are
not executed simultaneously.
The interrupt program is able to be executed, when the high−speed counter elapsed value equals the set
target value. The INT program description and the permission using ICTL instruction is required.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
− Turns on when the area specified using the index modifier exceeds the limit.
− Turns on when n is out of the specified range.
− Turns on when [S]n is out of the specified range.
− Turns on when [D]n is out of the specified range.
− Turns on when the high−speed counter has not been set for the specified
channel by the system register.
FP0R