IDEC MICROSmart FC6A Series Ladder Programming Manual page 161

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Examples: ADD
• Data Type: Word
This example demonstrates the use of a carry signal from special internal relay M8003 to set an alarm signal.
ADD(W)
SOTU
I0
Acknowledge
M8003
Pushbutton
I1
• Data Type: Integer
ADD(I)
S1 –
D10
I0
• Data Type: Double Word
ADD(D)
S1 –
D10
I0
D10·D11
• Data Type: Long
ADD(L)
S1 –
D10
I0
D10·D11
• Data Type: Float
ADD(F)
S1 –
D10
I0
D10·D11
Example: SUB
• Data Type: Word
The following example demonstrates the use of special internal relay M8003 to process a borrow.
SOTU
I0
M8003
S1 –
S2 –
D1 –
D2
500
D2
S2 –
D1 –
REP
D20
D30
S2 –
D1 –
REP
D20
D30
1957400
+
D20·D21
S2 –
D1 –
REP
D20
D30
216283
+
D20·D21
S2 –
D1 –
REP
D20
D30
1.414
+
D20·D21
SUB(W)
S1 –
S2 –
D12
7000
SUB(W)
S1 –
S2 –
D13
1
FC6A S
MICROS
L
ERIES
MART
7: B
D2 + 500 → D2
REP
When a carry occurs, output Q0 is assigned as a warning indicator.
S
When the acknowledge pushbutton (input I1) is pressed, the warning
Q0
indicator is reset.
R
Q0
D10
–4
+
D20
4112600
–964355
3.14
D12 – 7000 → D12
D1 –
REP
D12
Borrow is processed so that the number of times a borrow
occurs is subtracted from D13.
D1 –
REP
D13
When a borrow occurs, D13 is decremented by one.
P
M
ADDER
ROGRAMMING
ANUAL
A
INARY
RITHMETIC
–11
D30
D30·D31
6070000
D30·D31
–748072
D30·D31
4.554
FC9Y-B1726
I
NSTRUCTIONS
–15
7-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents