Using the Command Interface
67
DP/AS-Interface Link 20E
Release 11/2002
C79000-G8976-C138–04
Job Parameters
Set the parameters for the read_record and write_record jobs as described in
Section 2.4.1. Sending the commands is controlled by the following parameters:
S
Index:
Specifies the data record number = 2
S
Length:
– The length of the data sent (with write_record) depends on the command;
– The length of the data received (with read_record) is indicated by the
DP/AS-i Link 20E using the status nibble.
Commands in the User Program
To work with commands, include the following in your user program:
1. Specify the command call in a send buffer in the user program.
2. Send this job with write_record (record 2) to the DP/AS-i Link 20E.
3. Following this, query the status of command processing in the input area for
binary values (cyclic services – see Section 2.1). The status information is
entered in bits 4 to 7 in the reserved first byte of the DP input area (status
nibble).
4. Various reactions are possible depending on the result of the status evaluation
as shown in the following flowchart (for more detailed information on the
meaning of the status nibble, please refer to Table 3-1).
To complete command processing, you must always sent a read_record job
(data record 2) either to obtain further status information or to receive response
data.
Содержание DP/AS-Interface Link 20E
Страница 6: ...Preface 6 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Страница 10: ...Contents 10 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Страница 124: ...Using the Command Interface 124 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Страница 132: ...Slave Diagnostics 132 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Страница 138: ...Dealing with Problems Error Displays 138 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...
Страница 150: ...Notes on the CE Mark 150 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...