Fig. 61 shows the S5-program of this application example. First the inputs E 32.2 ... E32.6 for the
control of the relay via output A 34.0 are connected via AND-relation in the function component FB10.
Then the inverter receives the setpoint specification dependent on input E1.2.
Actual control of the inverter starts from the STEU jump flag via the digital input E1.1, which triggers
the control commands
Enable and Stop.
0
0
0
0
0
0
0
X
0
0
0
0
0
X
X
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Bit:
AW 32:
AB 32
AB 33
Virtual input terminal 50 = output terminal 62
0 = Enable
Enable / Rapid stop
Enable / Stop
0 = Hold control not activated
0 = Ramp generator set 1
0 = Parameter set 1
0 = No other functions activated
01145AEN
Fig. 59: Mapping of Control Word 2 in the Simatic S5
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Bit:
EW 32:
EB 32
EB 33
Controller enabled
MC31.. ready for operation
Fieldbus mode active
Active ramp generator set
Active parameter set
Fault/warning
Limit switch CW active
Limit switch CCW active
Virtual output terminal 1
Virtual output terminal 2
Virtual output terminal 3 = input terminal 42
Virtual output terminal 4 = input terminal 43
Virtual output terminal 5 = input terminal 47
Virtual output terminal 6 = input terminal 48
Virtual output terminal 7 = input terminal 49
Virtual output terminal 8
01146AEN
Fig. 60: Mapping of Control Word 2 in the Simatic S5
OB1:
: SPA FB 10
NAME: SEW
: BE
FB 10 :
: Connect sensors with inverter
: and actuate relay:
: U E 32.6 Inverter input 42
: U E 32.5 Inverter input 43
: U E 32.4 Inverter input 47
: U E 32.3 Inverter input 48
: U E 32.2 Inverter input 49
: = A 32.0 = Inverter output 62
:
: UN E 1.2 Switch-over
: SPB = LINK of the setpoints:
: L KH 3000 CW rotation 75 % of P202
: T AW 34 as speed [%] setpoint
: SPA = STEU
LINK : L KH F000 CCW rotation 25 % of P202
: T AW 34 as speed [%] setpoint
:
STEU : S A 33.1 Control command Enable
: U E 1.1 or Stop with control word
: = A 33.2 trigger bit 2
: BE
Cyclic
01147AEN
Fig. 61: S5 program example for controlling inverter MOVITRAC
®
31.. via relative speed specification and
implementation of the I/O-module functionality of the inverter
Application Examples
7
70
MOVITRAC
®
31.. Fieldbus Unit Profile
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]