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-211
API Mnemonic
Operands
Function
75
ARWS
S, D
1
, D
2
, n
Arrow Key Input
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
*
*
*
*
D
1
*
*
*
*
*
D
2
*
n
*
*
ARWS: 9 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:
S
: Starting address of the key inputs (occupies 4 continuous addresses)
D
1
: Display address for
the 7-segment display
D
2
: Starting output address for the 7-segment display
n
: Polarity set-point
of output signal and scan signal (
n
=0~3)
Description:
1.
This instruction displays the contents of a single integer
D
1
on a set of 4 digit, seven segment
displays. The data within
D
1
is actually in a standard decimal format but is automatically
converted to BCD to display on the seven segment units. Each digit of the displayed number
can be selected and edited. The editing procedure directly changes the value of
D
1
.
2.
S
and
D
2
of ELC-PC/PA/PH do not support the E, F index registers. Also, they can only be
specified in multiples of 10, e.g. Y0, Y20…etc.
3.
D
2
of ELCMPH/PA can only be specified as a multiple of 10 as well, e.g. Y0, Y10, Y20…etc.
4.
Only transistor outputs should be used for this instruction.
5.
When using this instruction, the scan time should be fixed or the instruction should be placed
into a timed interrupt.
6.
There is no limit on the number of times this instruction can be used in the program, but only
one instruction is allowed to be executed at a time.
Program Example:
1.
When the instruction is executed, X20 is defined as the down key, X21 is defined as the up key,
X22 is defined as the right key and X23 is defined as the left key. These keys are used to edit
and display the external set-point value. The set-point value is stored in D20 and its set-point
range is from 0 to 9,999.
2.
When X0=ON, 10
3
is the effective set-point digit number. Pressing the left key, the effective
digit number will be displayed and it will jump from 10
3
→
10
0
→
10
1
→
10
2
→
10
3
→
10
0
.
3.
Pressing the right key, the effective digit number will be displayed and it will jump from 10
3
→
10
2
→
10
1
→
10
0
→
10
3
→
10
2
. At the same time, the digit position LED connected to Y24 to Y27
will indicate the effective set-point digit number.
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...