EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 475

Siemens SIMATIC S7-1200
1614 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...
Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
475
Table 9- 168 Data types for the parameters
Parameter and type
Data type
Description
LADDR
IN
HW_DEVICE
Logical address (Identifier for the I/O modules)
MODE IN UInt Supports five modes of operation. The MODE input determines
which data will be returned to the location specified for STATE
information. The modes are as follows:
1: Module configuration active
2: Module defective
3: Module disabled
4: Module exists
5: Problem in Module
RET_VAL
OUT
Int
Status (condition code)
STATE
1
InOut Variant Buffer that receives the error status of each module: The data type
you use for the STATE parameter can be any bit type (Bool, Byte,
Word, or DWord) or an array of a bit type.
Bit 0 of the first byte of the returned STATE data is a summary
bit. When it is set to TRUE, it indicates that other data is avail-
able.
The data returned by the STATE parameter shows a one-to-
one correlation between a bit location and a module position.
This slot addressing is TRUE for PROFIBUS and PROFINET.
For example, for an ET 200SP with a head module, power
module, and a pair of I/O modules, Bit 1 in the first Byte corre-
lates to the head module, Bit 2 to the power module, and Bits 3
and 4 to the I/O modules, respectively.
1
A maximum of 128 bits can be assigned. The number of bits required is dependent on your I/O module usage.
Table 9- 169 Condition codes
RET_VAL ( W#16#...)
Description
0
No error
8091
Module identified by LADDR does not exist.
8092
Module identified by LADDR does not address an I/O device.
8093 Invalid data type for STATE parameter: Valid data types are (Bool, Byte, Word, or Dword), or
an array of (Bools, Bytes, Words, or Dwords).
80Bx
ModuleStates instruction not supported by this CPU for this LADDR.
8452 The complete state data is too large for the assigned STATE parameter. The STATE buffer
contains a partial result.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals