Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
706
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
32 High Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table
Cautions
This instruction can be executed only once in a program.
If this instruction is programmed two or more times, an operation error is caused by the second instruction and
later, and the instruction will not be executed. (error code: K6765)
This instruction constructs the data table at the END instruction of the first execution of the instruction. Accordingly,
the operation output works after the second scan and later.
With regard to DHSCT (FNC280), DHSCS (FNC 53), DHSCR (FNC 54) and DHSZ (FNC 55) instructions, up to 32
instructions can be executed in one operation cycle. An operation error is caused by the 33rd instruction and later,
and the instruction will not be executed. (error code: K6705)
If an output (Y) is specified in , the output processing is executed immediately without waiting for the output
refresh executed by END instruction.
When specifying an output (Y), make sure that the least significant digit of the device number is “0”.
Examples: Y000, Y010 and Y020
When a high speed counter specified in is indexed with index, all high speed counters are handled as
software counters.
For this instruction, only one comparison point (one line) is handled as the comparison target at one time.
Processing will not move to the next comparison point until the current counter value becomes equivalent to the
comparison point currently selected as the comparison target.
If the current value of a high speed counter executes up counting using the comparison data table shown in the
operation example on the previous page, make sure to execute the instruction while the current value of the high
speed counter is smaller than the comparison value in comparison point No. 1.
When the DHSCT instruction is used with a hardware counter (C235, C236, C237, C238, C239, C240, C244 (OP),
C245 (OP), C246, C248 (OP), C251, C253), the hardware counter is automatically switched to a software counter,
and the maximum frequency and total frequency are affected.
Errors
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
When any devices other than high speed counters C235 to C255 are specified in (error code: K6706)
When the “3m-1”th device from a device specified in exceeds the last number of the device (error code:
K6706)
When the “n”th device from a device specified in exceeds the last number of the device (error code: K6706)
When this instruction is used two or more times in a program (error code: K6765)
With regard to DHSCT (FNC280), DHSCS (FNC 53), DHSCR (FNC 54) and DHSZ (FNC 55) instructions, up to 32
instructions can be executed in one operation cycle. An operation error is caused by the 33rd instruction and later,
and the instruction will not be executed. (error code: K6705)
D
S
2
S
2
S
1
D