
Appendix
A.1 Application examples
Frequency inverters with Control Units CU230P-2 HVAC, CU230P-2 DP, CU230P-2 CAN
328
Operating Instructions, 01/2011, FW 4.4, A5E02430659B AD
A.1.2
STEP 7 program examples
A.1.2.1
STEP 7 program example for cyclic communication
1HWZRUN
&RQWUROZRUG(KH[
6HWSRLQWKH[
6WDWXVZRUG0:
$FWXDOYDOXH0:
&RQWUROZRUGDQGVHWSRLQW
1HWZRUN
$FNQRZOHGJHIDXOW
1HWZRUN
6ZLWFKWKHPRWRURQDQGRII
1HWZRUN
:ULWHSURFHVVGDWD
1HWZRUN
5HDGSURFHVVGDWD
/
:(
7
0:
/
:
7
0:
8
(
0
8
(
0
/
0:
7
3$:
/
0:
7
3$:
/
3(:
7
0:
/
3(:
7
0:
The control and inverter communicate via
standard telegram 1. The control specifies
control word 1 (STW1) and the speed setpoint,
while the inverter responds with status word 1
(ZSW1) and its actual speed.
In this example, inputs E0.0 and E0.6 are linked
to the -bit ON/OFF1 or to the "acknowledge fault"
bit of STW 1.
Control word 1 contains the numerical value
047E hex. The bits of control word 1 are listed in
the following table.
The hexadecimal numeric value 2500 specifies
the setpoint frequency of the inverter. The
maximum frequency is the hexadecimal value
4000 (also see Configuring the fieldbus
(Page 97)).
The control cyclically writes the process data to
logical address 256 of the inverter. The inverter
also writes its process data to logical
address 256. You define the address area in HW
Config, seeInserting the inverter into the STEP 7
Summary of Contents for SINAMICS G120 CU230P-2
Page 2: ......