Siemens DP/AS-Interface Link 20E Manual page 70

Plc processors
Table of Contents

Advertisement

Using the Command Interface
Example:
Based on the following table, you can see how the display in the status nibble
changes due to the device state and the command processing in the user program.
Table 3-2
1. AS-i power supply switched on for the DP/AS-i Link 20E.
2. The user program transfers a command (for example
write_parameter) with an asynchronous write job to the
DP/AS-i Link 20E.
3. The AS-i master completes the command. The return value can
be read by the user program.
4. The user program reads a 2-byte return value using an
asynchronous read job.
5. ....further program execution ...
6. The user program transfers a command (for example, Get_LPS,
Get_LAS, Get_LDS, Get_Flags) with an asynchronous write
access to the DP/AS–i Link 20E.
7. The AS-i master completes the command without error. The
response data can be read by the user program
8. The user program reads 32 bytes of response data with an
asynchronous read job.
Return Value
Error free processing is encoded in the return value of the response buffer. There
is an error when value in the status nibble is "completed without error and without
response data or terminated with error" (Coding: 0001
Table 3-3
Return Value in the Response Buffer
STATUS
0000
Job completed without error
H
The AS-i slave address is incorrect
8381H
The AS-i slave is not activated (not in LAS).
8382H
Error on AS-Interface.
8383H
Command not permitted in the current status of the AS-i master.
8384H
An AS-i slave with address 0 exists.
8385H
The AS-i slave has illegal configuration data (I/O or ID codes).
8386H
83A1
The addressed AS-i slave was not found on the AS-Interface.
H
83A2
An AS-i slave with address 0 exists.
H
70
Action
Reaction in the Status Nibble
1110
....1000
.....1110
B
B
0010
(briefly, depending on the
B
command)
0001
B
0100
B
....
0010
(briefly, depending on the
B
command)
1011
B
0100
B
).
H
Meaning
DP/AS-Interface Link 20E
C79000-G8976-C138–04
....
B
Release 11/2002

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents