Mitsubishi FX3U Series Programming Manual page 89

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. Examples in applied instructions
For the full use of counters as numeric devices, refer to the explanation of applied instructions later.
*1
*1. Make sure to use 32-bit operation instructions for 32-bit counters.
FNC 12
C 20
D 10
MOV
FNC 10
K100
C 30
M 0
CMP
FNC 18
C 10 K2Y000
BCD
FNC 22
C 5
K 2 D4(D5)
MUL
FNC 12
C200 D0(D1)
DMOV
FNC 11
K100 K20000 C200
DZCP
C20 (current value) is transferred to D10.
A decimal integer "100" is compared with C30
(current value), and the result is output to M0 to M2.
The contents of C10 (current value) are converted
into BCD, and output to Y000 to Y007.
(Seven-segment display unit is controlled.)
C5 (current value) is multiplied by 2, and transferred
to (D5, D4).
C 200 (current value) is transferred to (D1, D0).
C200 (current value) is compared with a decimal
integer zone 100 to 20000, and the result is output to
M10
M10 and M11.
4 Devices in Detail
4.6 Counter [C]
1
2
3
4
5
6
7
8
9
10
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents