Subject to modifications.
© Vestamatic GmbH
Art.-Nr.:
3060 001 GB 4518 A06 • Vestamatic GmbH • Dohrweg 27 • D-41066 Mönchengladbach
• www.vestamatic.com
6/10
G
IF SMI RS-485 DIN
6.3.13 MSG_SMI_TUNNEL
This message is used to send a SMI message directly to the SMI bus.
Detailed knowledge in SMI protocol is required to use this command.
Message:
[SID] / [LEN] / [CMND] / [SMIMSG0] /… / [SMIMSGn] /
[CRC16]
[SMIMSG0..
n
]: SMI message data to send directly to SMI bus. The [LEN]
parameter defines the number of SMIMSG data bytes ex-
pected.
Response:
[SID] / [LEN] / [CMND] / [RTYP] / [SMI_CMND] / [DATA0]
/… / [DATAm] / [CRC16]
[RTYP]:
Response type:
0xFF: SMI message send successfully and accepted by
addressed motor(s).
0xE0: Error occurred. [DATA0] contains error code:
0x01: checksum error
0x02: format error
0x03: echo error
0x04: data overflow
0x05: timeout error
0xEF: SMI message send successfully and
response is in [DATA0..m]
[SMI_CMND]: SMI command to which this response belongs.
[DATA0..
m
]:
Additional data for response type 0xE0 and 0xEF.
6.3.14 MSG_GW_OPTIONS
This message is used to request current gateway options or to set the
gateway options.
Set gateway options
Message:
[SID] / [LEN] / [CMND] / [OPTIONS] / [CRC16]
[OPTIONS]:
Gateway options:
bit 0: RS485 error feedback enabled flag
bit 1: Cycle logging in EEPROM enabled flag
bit 2-3: –
bit 4: RS485 error feedback flag state after power-up
bit 5: Cycle logging enabled flag state after power-up
bit 6-7: –
Response:
[SID] / [LEN] / [CMND] / [OPTIONS] / [CRC16]
[OPTIONS]:
Stored gateway options. See gateway options layout as
described above.
REMARK:
Cycle logging is by default disabled, meaning that the
gateway does not keep track of the number of motor
cycles performed by each SMI motor.
For RS485 error feedback, see chapter 6.3.15 MSG_ERROR.
Request gateway options
Message:
[SID] / [LEN] / [CMND] / [CRC16]
Response:
[SID] / [LEN] / [CMND] / [OPTIONS] / [CRC16]
[OPTIONS]:
Stored gateway options.
See gateway options layout as described above.
Default gateway options: 0x00
6.3.15 MSG_ERROR
This message is used to request the error log or used as a feedback mes-
sage to host, when an error occurred during RS485 communication.
Request error log
Message:
[SID] / [LEN] / [CMND] / [CRC16]
Response:
[SID] / [LEN] / [CMND] / [ERR0] / … / [ERR4] / [CRC16]
[ERR0..4]: Contents of error log, where [ERR0] is the most recent error
and [ERR4] is the oldest error in the log.
Error code description:
0x00 = no error
0x01 = RS485 framing error
0x02 = RS485 timing error
0x03 = RS485 data overflow error
0x04 = RS485 CRC error
0x05 = RS485 command error
(not supported or invalid length)
0x06 = RS485 busy (not able to process new command)
0x07 = SMI format error
0x08 = SMI checksum error
0x09 = SMI timing error
0x0A = SMI data overflow
0x0B = SMI echo error
0x0C = SMI queue full error
Error feedback
When during RS485 communication an error is detected by the gateway
and “RS485 error feedback” is enabled (see chapter 6.3.14 Set gateway
options), an error response is send to host.
Response:
[SID] / [LEN] / [CMND] / [ERR] / [CRC16]
[CMND]
MSG_ERROR (= 0xE0)
[ERR]
Error code indicating the type of error occurred:
0x00 = no error
0x01 = RS485 framing error
0x02 = RS485 timing error
0x03 = RS485 data overflow error
0x04 = RS485 CRC error
0x05 = RS485 command error
(not supported or invalid length)
0x06 = RS485 busy (not able to process new command)
REMARK:
An error feedback is send back, when an error is detected and
at least the first 2 bytes of the original RS485 message were
received correctly.
6.4 Maintenance commands
#define MSG_VERSION
0x20
#define MSG_AUTO_ADDR 0x21
#define MSG_GET_SER
0x22
#define MSG_SET_SMIID 0x23
#define MSG_GET_PAR
0x24
#define MSG_GET_POS1
0x28
#define MSG_SET_POS1
0x29
#define MSG_GET_POS2
0x2A
#define MSG_SET_POS2
0x2B