hit counter script

Example "Point-To-Point Communication - Siemens SIMATIC CP 340 User Manual

Ptp coupling and configuration
Hide thumbs Also See for SIMATIC CP 340:
Table of Contents

Advertisement

9.4
Example "Point–to–Point Communication"
Introduction
The inputs and outputs are mapped to memory bits at the beginning and end of OB 1. Only
the memory bits are used in the test program.
Inputs and outputs used for FB 2 and FB 3
The table below shows the assignment of the inputs/outputs and memory bits.
Symbol
Input/output
ANW_RECH
I 0.0
ANW_DRUCK
I 0.1
RESET_SP
I 0.2
RESET_R
I 0.3
I 0.4
I 0.5
REQ_SP
I 0.6
EN_R_R
I 0.7
AUFTR_1_SP
I 1.0
AUFTR_2_SP
I 1.1
AUFTR_1_R
I 1.2
AUFTR_2_R
I 1.3
I 1.4
I 1.5
I 1.6
I 1.7
A_DONE_SP
Q 4.0
A_ERROR_SP
Q 4.1
A_BIE_SP
Q 4.2
Q 4.3
A_NDR_R
Q 4.4
A_ERROR_R
Q 4.5
A_BIE_R
Q 4.6
Q 4.7
Q 5.0
Q 5.2
Q 5.3
Q 5.4
Q 5.5
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
Flag
Comment
M 0.0
"1" = Select "point–to–point communication"
M 0.1
"0" signal
M 0.2
Start RESET SEND
M 0.3
Start RESET RCV
M 0.4
Free
M 0.5
Free
M 0.6
Start SEND job
M 0.7
Enable receive
M 1.0
Send job selection; "1" = job 1
M 1.1
Send job selection; "1" = job 2
M 1.2
Enable receipt of job selection; "1" = job 1
M 1.3
Enable receipt of job selection; "1" = job 2
M 1.4
Free
M 1.5
Free
M 1.6
Free
M 1.7
Free
Display FB parameter
M 8.0
SEND DONE
M 8.1
SEND ERROR
M 8.2
SEND binary result
M 8.3
"0"
M 8.4
RCV NDR
M 8.5
RCV ERROR
M 8.6
RCV binary result
M 8.7
"0"
M 9.0
"0"
M 9.2
"0"
M 9.3
"0"
M 9.4
"0"
M 9.5
"0"
Programming Example for Standard Function Blocks
9.4 Example "Point–to–Point Communication"
151

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents