Subject to modifications.
© Vestamatic GmbH
Art.-Nr.:
3060 001 GB 4518 A06 • Vestamatic GmbH • Dohrweg 27 • D-41066 Mönchengladbach
• www.vestamatic.com
8/10
G
IF SMI RS-485 DIN
6.5 Status commands
#define MSG_GETGENSTAT 0xA0
#define MSG_GETDETSTAT 0xA1
6.5.1 MSG_GETGENSTAT
This message requests the general status of the system.
Message:
[SID] / [LEN] / [CMND] / [CRC16]
Response:
[SID] / [LEN] / [CMND] / [PRES0] / [PRES1] / [RDY0] / [RDY1] /
[CRC16].
[PRES0]:
The LSB mask of the 8 first motors present on the SMI BUS.
[PRES1]:
The MSB mask of the 8 last motors present on the SMI BUS.
[RDY0]:
The LSB mask of the 8 first motors ready to operate on the SMI
BUS.
[RDY1]:
The MSB mask of the 8 first motors ready to operate on the
SMI BUS.
Motor can always accept new commands; RDY0/RDY1 indicates if a mo-
tor is running (flag cleared) or motor is idle (flag set).
6.5.2 MSG_GETDETSTAT
This message is used to obtain the detailed status of a specified sunblind.
Message:
[SID] / [LEN] / [CMND] / [SMIID] / [CRC16]
[SMIID]:
SMI address of motor (0..15)
Response:
[SID] / [LEN] / [CMND] / [SMIID] / [STATUS] / [POS0] /
[POS1] / [TILT] / [CYCLE0] / .. / [CYCLE3] / [CRC16]
[SMIID]:
SMI address of motor (0..15)
[STATUS]: Status of the motor
[POS0..1]: 16-bits absolute position value
[TILT]:
Orientation of the slats
REMARK:
Tilt information uses a manufacturer specific SMI command,
which is currently only supported by Vestamatic SMI motors.
For non Vestamatic SMI-motors, TILT value 0x00 is returned.
[CYCLE0..3]: 32-bits cycle counter of the motor
7. PC Test Software
For testing your application, a freeware PC Software (Windows
®
) can be
downloaded from our website
http://www.vestamatic.com.
In the
“Communication”
section, select the RS-485 communication port
of your PC, that is connected to the IF SMI RS-485 module. Also set the
RS-485 base address. This must correspond with the DIP switch settings
on the IF SMI RS-485 module. Press the “Open” button to open the com-
munication channel.
7.1 Communication
Status Bit layout
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Meaning
X
X
X
X
0
X
X
X
MOTOR ERROR OCCURED
X
X
X
X
1
0
0
0
UP + DOWN + STOP
X
X
X
X
1
0
0
1
DOWN + STOP
X
X
X
X
1
0
1
0
UP + STOP
X
X
X
X
1
0
1
1
ALL STOP
X
X
X
X
1
1
0
0
UP + DOWN
X
X
X
X
1
1
0
1
ALL DOWN
X
X
X
X
1
1
1
0
ALL UP
X
X
X
X
1
1
1
1
NOT VALID
0
0
0
1
X
X
X
X
TILT INFO:
NOT SUPPORTED BY MOTOR
1
1
1
1
X
X
X
X
INVALID SMI RESPONSE
On the
“General”
tab-sheet, you will find commands that don’t have addi-
tional parameters.
VERSION:
Get software version of IF SMI RS-485 module.
GETGENSTAT:
Get general status (motor present / motor ready).
AUTO_ADDR:
Start the auto-address sequence, in case of address
conflicts.
7.2 General commands