Wiring Of Receiver At Interface Rs485/422; Compile And Save Hardware Configuration; Write Communication Program; Logic Address Of Cp340 - Siemens SIMATIC S7 CP340 Programming Manual

Table of Contents

Advertisement

4 ASCII protocol communication
R(A)0V/R(B)5V
Fig. 9: Wiring of receiver at interface RS485/422
8. After the parameters are configured, click
hardware configurations. After it is confirmed that no error exists, download the
hardware configurations to CPU to complete the whole hardware configuration
process.
Fig. 10: Compile and save hardware configuration
4.1.3

Write communication program

1. Double-click OB1 to open OB1 programming screen. Invoke Send Function
Block FB3 P_SEND from Libraries -> CP PtP -> CP340 and distribute instance
data block DB3 to it. Set the block parameter LADDR as the start logic address 256
for module CP340 in hardware configuration.
Fig. 11: Logic address of CP340
2. Create Send Data block DB1.
CP340/CP341/CP440/CP441 Communication and Programming
Entry-ID: 88867653,
V1.0,
02/2014
R(A)5V/R(B)0V
button to save and compile the
11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7 cp341Simatic s7 cp441Simatic s7 cp440

Table of Contents