4 ASCII protocol communication
CP340/CP341/CP440/CP441 Communication and Programming
Entry-ID: 88867653, V1.0, 02/2014
23
S
ie
m
e
n
s
A
G
2014
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
Fig. 38: Configuration interface parameters
6. After configuration completes, compile and save the hardware configuration,
and download it after it is confirmed correct.
4.3.3
Write communication program
1. Double-click OB1 to open programming screen. Invoke Send Function Block
FB10 SEND_400 from Libraries->CP PtP->CP440 and distribute instance data
block DB10 to it. Set the parameter LADDR as the start logic address 512 in
hardware configuration.
Fig. 39: Logic address of CP440
2. Create a Send Data block DB1
Fig. 40: Send Data block DB1
3. Invoke Send Data block
The parameters of the send function block FB10 SEND_400 of CP440 are set as in
the table below:
Name
Data
comments