EasyManua.ls Logo

Siemens SIMATIC NET S7-300 - Page 211

Siemens SIMATIC NET S7-300
317 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-211
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
7.4.1 FC7 AG_LOCK
Meaning of the Block
Using the AG_LOCK block the data exchange using FETCH or WRITE on the
connection selected with the parameter ID is disabled. The LOCKED output
indicates whether or not the lock was successful. If the lock was not successful,
the job must be triggered again in a later CPU cycle.
The STATUS output indicates the status of the CP for this connection.
Call
Call interface in FBD representation
LADDR
AG_LOCK
ID
STATUS
LOCKED
Example in STL representation
STL Explanation
call fc 7
ID := DB 100.DBW 2
LADDR := W#16#0100
LOCKED := DB 100.DBX 0.6
STATUS := DB 100.DBW 4
//Block call
//Connection ID acc. to configuration
//=LADDR 256 dec. in hardware configuration
//Status code of access lock
//Status code
Explanation of the Formal Parameters
The following table explains all the formal parameters for the AG_LOCK function:

Table of Contents

Other manuals for Siemens SIMATIC NET S7-300

Related product manuals