User's Manual
Diagnostics
7.3 Diagnostics via parameter channel (parameter echo)
M200D AS-Interface Basic
86 Manual, 03/2009, A5E01668085-01
Structure of the job data in the send buffer
Meaning Byte
Bit 7 Bit 4 Bit 3 Bit 0
0 Command number: 02H
1 Slave address
2 0 Parameter
&$//$6LB
Structure of the job data in the receive buffer
Meaning Byte
Bit 7 Bit 4 Bit 3 Bit 0
0 0 Parameter echo
With this command, however, all four parameter bits (P0 … P3) must be sent to the starter.
Sample program:
// Parameters in memory byte MB4
SET
R M 4.0 // read messages / alarms from starter
//: Bit P0=0
// or
SET
S M 4.0 // read faults from starter: Bit P0=1
// trigger parameter echo
// command for SEND buffer
L 2 // "Write_Parameter" command
T MB 2
L 2 // slave address of starter
T MB 3
// job parameters are in MB4
// write parameters to starter: "Write_Parameter_Value"
// create job for SEND buffer:
CALL "ASi_3422"
ACT :=M10.4 // trigger for writing parameters
STARTUP:=FALSE // not required in cycle
LADDR :=W#16#14 // address of AS-i master
SEND := P#M 2.0 BYTE 3 // command data range
RECV := P#M 6.0 BYTE 1 // range for response
DONE :=M10.5
ERROR :=M10.6
STATUS :=MD16
// parameter echo stored in MB6