4 ASCII protocol communication
CP340/CP341/CP440/CP441 Communication and Programming
Entry-ID: 88867653, V1.0, 02/2014
7
S
ie
m
e
n
s
A
G
2014
A
ll r
ig
h
ts
r
e
s
e
rv
e
d
4
ASCII protocol communication
The communication mode in ASCII protocol is used to realize serial communication
of user-defined protocol, and it is applicable to communication with the intelligent
instrument, bar-code reader, scanner, and printer, etc. that support serial
communication.
The following examples are used to introduce the ASCII protocol communication of
Siemens serial communication modules CP340, CP341, CP440 and CP441.
4.1
ASCII protocol communication of CP340
4.1.1
Hardware catalog
PS 307
6ES7 307-1EA00-0AA0
CPU 315-2DP
6ES7 315-2AG10-0AB0
MMC
6ES7 953-8LG11-0AA0
CP340
6ES7 340-1AH01-0AE0
4.1.2
Configuration
1. Open STEP 7,and click File->New...to create a new project in name of ptp.
Fig. 2: Dialog box of New project
2. Right-click the project name, select Insert New Object->SIMATIC 300 Station to
change the station name to CP340 ASCII.