Serial Communication - JVL MIS17 Series User Manual

Integrated step motors, including step motor controller smc66, smc85
Table of Contents

Advertisement

17.2
This section describes control of the MIS motor (or SMC66/85) via the serial interface
(RS485).
The interface is RS485 compatible and uses 8 data bits, 1 stop bit and no parity.
The MIS motors (or SMC66/85) are completely controlled by reading and writing to reg-
isters.
The registers are numbered 1-255. The width of the registers is 32 bits.
To protect communication from errors, the data is transmitted twice.
First the data byte is transmitted and then an inverted version (255-x) is transmitted.
The easiest way to become familiar with the registers and MacTalk communication is to
use the MacRegIO program. This program lists all of the registers, and the serial com-
mands sent and received can be monitored.
17.2.1
Supported commands
Sync
Response Sync
0x50
0x52
0x51
0x52
0x52
0x11 (Acknowledge)
0x54
0x11 (Acknowledge)
0x55
0x11 (Acknowledge)
0x56
0x11 (Acknowledge)
0x57
None
0x59
None
0x61
0x61
0x62
0x11 (Acknowledge)
0x63
0x63
17.2.2
Read register
This command can read a register. All registers are read as 32-bit.
Master sends
<Read><Address><RegNum><End>
Block description
Block name
Protected
<Read>
No
<Address>
Yes
<RegNum>
Yes
<End>
No
<Write>
No
<MAddress>
Yes
<RegNum>
Yes
<Len>
Yes
<Data>
Yes
<End>
No
348
JVL Industri Elektronik A/S - User Manual - Integrated Stepper Motors MIS17x, 23x, 34x, 43x

Serial communication

MIS/SMC Response
<Write><MAddress><RegNum><Len><Data><End>
Example
50h,50h,50h
07h,F8h (Address 7)
05h,FAh (RegNum 5)
AAh, AAh
52h,52h,52h
00h,FFh (Address 0)
05h,FAh (RegNum 5)
04h,FBh (Len = 4)
E8h,17h, 03h,FCh,
00h, FFh, 00h,FFh
(Data = 1000)
AAh, AAh
Description
Read register
Read register block
Write register
Enter safe mode
Exit safe mode
Write to flash
Reset controller
Group write register
Program status and command
Write program flash
Read program flash
Description
Read command
The address of the MIS or SMC
The register number to read
Command termination
Write command
This will always be 0, because this is the
address of the master
This will always be the same as
requested
The length will always be 4
The data read from the register
Command termination

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents