Programming the Technological Functions
6-22
FM 353 Stepper Drive Positioning Module
6ES7 353-1AH01-8BG0
6.3.4
The POS
_
DIAG (FC 2) block
−
Read diagnostic interrupt data
In the event of a fatal error, the FM 353 generates a diagnostic interrupt (OB 82
must be embedded in the user program and the interrupt parameterization of the
FM 353 must be activated) and provides the relevant information to the local data
area. For information on diagnostic interrupts, see Section 6.5.
For further information on external channel errors (operating errors), please call the
POS_DIAG block.
Call options
POS_DIAG can be called in interrupt OB 82 or in OB 1.
Call in LAD representation
(ladder diagram)
Call in STL representation
(statement list)
EN
ENO
POS_DIAG
DB_NO
RET_VAL
IN_DIAG
CALL POS_DIAG
DB_NO
:=
RET_VAL
:=
IN_DIAG
:=
Parameters
The Table below lists the parameters for the POS_DIAG block.
Name
Data
type
Param.
type
Description
DB_NO
INT
I
Data block number
RET_VAL INT
Q
−
1
IN_DIAG
BOOL
I/Q
Initiation signal for reading of the diagnostic data; is reset
following execution of POS_DIAG.
Parameter types: I = input parameter, Q = output parameter,
I/Q = throughput parameter (initiation parameter)
Function description
The function works together with an AW-DB user data block. When the function is
called, the AW-DB is forwarded with a DB_NO parameter.
Reading of the diagnostic data is started by setting the IN_DIAG parameter to
TRUE. The block resets the parameter when the request has been serviced.
The IN_DIAG parameter remains set while the request is being serviced. Transfer
of the data is terminated when the parameter is reset (IN_DIAG = FALSE).
Summary of Contents for SIMATIC FM 353
Page 22: ...Product Overview 1 12 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 32: ...Installing and Removing 3 6 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 282: ...Description of Functions 9 82 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...
Page 354: ...User Data Block AW DB B 16 FM 353 Stepper Drive Positioning Module 6ES7 353 1AH01 8BG0 ...