7 Applied Instructions
7.6 High Speed Processing
287
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
4. Specifying input and output variables
When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the case
of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
5. Precedence of DHSCS, DHSCR and DHSZ instructions to one particular high speed counter
→ Refer to caution 6 in "Common cautions on using instructions for high speed counter" which is
described in Section 7.6.4.
6. Reset operation by an external terminal
→ Refer to caution 5 in "Common cautions on using instructions for high speed counter" which is
described in Section 7.6.4.
7. Other cautions on use
→ Refer to caution in "Common cautions on using instructions for high speed counter" which is
described in Section 7.6.4.
Program examples
1. Example of self-reset circuit
When the current value of C255 becomes "400", C255 is immediately reset. Its current value becomes "0",
and the output contact is set to OFF.
*1. VER_01 is a global label and is defined as K400.
Reset value of DHSCR
400
Count-up value
300
Current value
of C255
Output contact
of C255
[Structured ladder]
M8000
RUN
monitor
DHSCR
EN
s1
s2
ENO
d
VAR_01
*1
CC255
CC255
OUT_C_32
EN
CCoil
CValue
ENO
CC255
K300
Comparison source
Comparison value
Output
destination
[ST]
OUT_C_32(M8000,CC255,K300);
DHSCR(M8000,VAR_01,CC255,CC255);