Sample Program - Siemens SIRIUS M200D Manual

Industrial controls load feeders and motor starters
Hide thumbs Also See for SIRIUS M200D:
Table of Contents

Advertisement

7.3

Sample program

Diagnostics via parameter channel
Sample program: Slave diagnostics echo (parameter echo). The standard function ASi_3422
(FC7) of the AS-i master (PROFIBUS-ASi) is used for this purpose in the following sample
program.
Alternatively, an ASI_Control function block (FB19) can be used for this task. You can find
this block on the Siemens Service&Support pages
(http://support.automation.siemens.com/WW/view/de/51678777).
For a description of the ASi_3422 block, please refer to the manual for the AS-i master (DP-
ASi Link, CP 343-2). This also describes the call interfaces and commands.
Block ASi_3422 must be called up once when the system is restarted (OB100).
Call in OB100:
CALL
To read out the parameter echo, the "Write_Parameter" command must be sent to the
M200D motor starter.
Structure of the "Write_Parameter" command:
Structure of the job data in the send buffer
Byte
0
1
2
Structure of the job data in the receive buffer
Byte
0
1) Value range of the slave address: 1A to 31A ≡ 1 to 31; 1B to 31B ≡ 33 to 63
With this command, however, all 4 parameter bits (P0 to P3) must be sent to the starter.
M200D AS-Interface Standard
Manual, 08/2014, A5E02548958A/RS-AA/004
"ASi_3422"
ACT
:=FALSE
STARTUP:=TRUE
LADDR
:=W#16#14
SEND
:= P#M 4.0 BYTE 1
RECV
:= P#M 4.0 BYTE 1
DONE
:=M19.2
ERROR
:=M19.3
STATUS :=MD24
Meaning
Bit 7
Slave address (AS-i address that is to be read out of the diagnostics)
Meaning
Bit 7
0
// not required
// I/O address AS-i master
// irrelevant
// irrelevant
Bit 4
Bit 3
Command number: 02H
0
Bit 4 Bit 3
Diagnostics
7.3 Sample program
Bit 0
1)
AS-i parameter bits P 0 ... P3
Parameter echo
Bit 0
139

Advertisement

Table of Contents
loading

Table of Contents