103BCommunication
10.4 AS-i
S7-1200 Programmable controller
452
System Manual, 11/2011, A5E02486680-05
Table 10- 39 Handling of diagnostic events for PROFINET and PROFIBUS
Type of error
Diagnostic information for
the station?
Entry in the diagnostic
buffer?
CPU operating mode
Diagnostic error
Yes
Yes
Stays in RUN mode
Rack or station failure
Yes
Yes
Stays in RUN mode
I/O access error
1
No
Yes
Stays in RUN mode
Peripheral access error
2
No
Yes
Stays in RUN mode
Pull / plug event
Yes
Yes
Stays in RUN mode
1
I/O access error example cause: A module that has been removed.
2
Peripheral access error example cause: Acyclic communication to a submodule that is not communicating.
Use the GET_DIAG instruction for each station to obtain the diagnostic information. This will
allow you to programmatically handle the errors encountered on the device and if desired
take the CPU to STOP mode. This method requires you to specify the hardware device from
which to read the status information.
The GET_DIAG instruction uses the "L address" (LADDR) of the station to obtain the health
of the entire station. This L Address can be found within the Network Configuration view and
by selecting the entire station rack (entire gray area), the L Address is shown in the
Properties Tab of the station. You can find the LADDR for each individual module either in
the properties for the module (in the device configuration) or in the default tag table for the
CPU.
10.4
AS-i
The S7-1200 CM 1243-2 AS-i Master allows the attachment of an AS-i network to an S7-
1200 CPU.
The actuator/sensor interface, or AS-i, is a single master network connection system for the
lowest level in automation systems. The CM 1243-2 serves as the AS-i master for the
network. Using a single AS-i cable, sensors and actuators (AS-i slave devices) can be
connected to the CPU through the CM 1243-2. The CM 1243-2 handles all AS-i network
coordination and relays data and status information from the actuators and sensors to the
CPU through the I/O addresses assigned to the CM 1243-2. You can access binary or
analog values depending on the slave type.The AS-i slaves are the input and output
channels of the AS-i system and are only active when called by the CM 1243-2.
In the figure below, the S7-1200 is an AS-i master controlling AS-i operator panel and I/O
module digital/analog slave devices.