hit counter script

Mitsubishi Electric FX3G SERIES Programming Manual page 130

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
3. Operation examples
Data registers can be used in various control with numeric data.
This section explains the operations of representative basic instructions and applied instructions among various
applications.
For the full use of data registers, refer to the explanation of applied instructions later.
1)
Data registers in basic instructions
Specifying the set value of a timer or counter
2)
Data registers using applied instructions
Operation examples using MOV (FNC 12) instruction
a) Changing the current value of a counter
b) Reading the current value of a timer or counter to a data register
c) Storing a numeric value to data registers
16-bit
32-bit
d) Transferring the contents of a data register to another data register
3)
Using unoccupied timers and counters as data registers
Operation examples using MOV (FNC 12) instruction
Timers and counters not in a program can be used as devices for storing 16-bit or 32-bit numeric values (data
registers).
As in the case of data registers, when 16-bit timers or counters are used as 32-bit devices, two timers or two
counters (example: C1 and C0) store 32-bit numeric data.
One 32-bit counter (example: C200) can store 32-bit numeric data.
128
D 0
T 2
D 20
C 10
FNC 12
D 5
MOV
FNC 12
C 10
MOV
FNC 12
K200
D 10
MOV
FNC 12
K80000 D10(D11)
DMOV
FNC 12
D 10
MOV
FNC 12
K300
T 10
MOV
FNC 12
T 10
C 20
MOV
K300
C 20
A counter or timer operates while regarding the
contents of a specified data register as its set value.
The current value of the counter C2 is changed to
C 2
the contents stored in D5.
The current value of the counter C10 is transferred
D 4
to D4.
"200 (decimal value)" is transferred to D10.
"80000 (decimal value)" is transferred to D10 and D11.
Because a numeric value larger than 32767 is 32-bit
data, a 32-bit operation is required. When a data
register on the low-order side (D10) is specified, a
data register on the high-order side (D11) is
automatically occupied.
D 20
The contents of D10 are transferred to D20.
"300 (decimal value)" is transferred to T10.
The contents of T10 are transferred to the current
value register of C20.
In this case, T10 is not working as a timer, but is
working as a data register.
4 Devices in Detail
4.9 Data Register and File Register [D]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents