hit counter script

Invoke Fb10 Send_440 From Ob1; Parameter Definition Of Fb9 Recv_440; Invoke Fb9 Recv_440 From Ob1 - Siemens SIMATIC S7 CP340 Programming Manual

Table of Contents

Advertisement

4 ASCII protocol communication
Fig. 41: Invoke FB10 SEND_440 from OB1
4. Invoke receive function block FB9 RECV_440 from the same folder in the library
and distribute instance data block DB9 to it, and set LADDR as input start logic
address 512 in hardware configuration.
5. Create receive data block DB2
6. Invoke receive function block
The parameters of the receive function block FB9 RECV_CP440 are set as in the
table below:
Name
EN_R
R
LADDR
DB_NO
DBB_NO
NDR
ERROR
LEN
STATUS
Table 8: Parameter definition of FB9 RECV_440
Fig. 42: Invoke FB9 RECV_440 from OB1
CP340/CP341/CP440/CP441 Communication and Programming
Entry-ID: 88867653,
V1.0,
Data
Type
format
Input
BOOL
Input
BOOL
Input
INT
Input
INT
Input
INT
Output
BOOL
Output
BOOL
Output
INT
Output
WORD
02/2014
comments
Enable receive bit, which is M1.0 in this example.
Cancel communication and give up receive
Module start logic address in hardware
configuration, which is 512 in this example
Receive Data block number, which is 2(DB2) in
this example
Start address of Receive Data, which is
0(DB2.DBB0) in this example
Receive complete bit, which is TRUE if Receive
completes and has no error
error bit, which is TRUE if receive has error
Length (in byte) of receive data, which is not 0 only
in the current cycle when data are received.
status word indicating error code. If ERROR = 1,
this status word includes error information, and
user may check implication of the information code
online or obtain the related instruction from CP440
manual.
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7 cp341Simatic s7 cp441Simatic s7 cp440

Table of Contents