3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-109
API Mnemonic
Operands
Function
50
REF P
D, n
Refresh I/O Immediately
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
D
* *
n
*
*
REF, REFP: 5 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
D
: Starting source of I/O
n
: Number of I/O to refresh
Description:
1.
The Input image is updated at the end of each program scan. The output image is also sent
to the outputs at the end of each program scan. If particular I/O points need to be updated
during the program scan, the REF instruction can be used for this purpose.
2.
D
must always be a multiples of 10 (Y0, X10, Y20).
n
must always be a multiples of 8.
3. Range
of
n
: 8 ~ 256 in multiples of 8. An error will be generated if
n
is out of range.
4.
For ELC-PC/PA/PH, the input and output points processed by this instruction are the I/O
points: X0~X7, Y0~Y7 and
n
=K8.
5.
For ELCM-PH/PA, Only the I/O points on the controller can be specified for operand D for I/O
refresh.
z
When
D
specifies X0 and
n
≦
8, only X0~X7 will be refreshed. If
n
> 8, all I/O points on
MPU will be refreshed.
z
When
D
specifies Y0 and
n
= 4, only Y0~X3 will be refreshed. If
n
> 4, all I/O points on
the controller will be refreshed.
z
When
D
specifies X10 or Y10
I/O points on the controller starting from X10 or Y4 will all
be refreshed regardless of
n
value.
6.
For ELCM-PH/PA, Range for
n:
4 ~ total I/O points on the controller.
n
should always be a
multiple of 4.
7.
For ELCM-PA MPU only: If M1180 = ON and REF instruction executes, the ELC will read the
A/D value and update the read value to D1110~D1113. If M1181 = ON and REF instruction
executes, the ELC will output the D/A value to D1116 and D1117 immediately. When A/D or
D/A values are refreshed, the ELC will reset M1180 or M1181 automatically.
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...