JVL MIS17 Series User Manual page 311

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

Advertisement

12.1
Often the graphical program in the motor is used to write to Register 121, ModbusSetup,
possibly after an initial delay, or as the result of a hardware input.
Set Register 121 to 25 (8 data bits, Even Parity, 1 stop bit).
The baudrate is unchanged after the switch from MacTalk to Modbus. It is recommended
to first configure the baudrate using MacTalk, and save this to flash memory.
Register 121, ModbusSetup, supports the following bit-fields
(default values marked with *) - see also Modbus_setup, page 212
Bits
0
1
3:2
4
5
31:6
Below is the basic data format for the two supported operations 3 and 16 (0x10 hexa-
decimal):
Read Holding operation:
Request: <adr>, 0x03, RegHi, RegLo, CountHi, CountLo, CRC1, CRC2
Offset:
Reply: <adr>, 0x03, #Bytes, Reg0Hi, Reg0Lo, Reg1Hi, Reg1Lo, ..... CRC1, CRC2
Example to read P_IST (register 10) from a motor with address 254, values in decimal:
254, 3, 0, 20, 0, 2, NN, MM (NN and MM are the CRC-16 bytes)
Write Multiple Register operation:
Request: <adr>, 0x10, RegHi, RegLo, CountHi, CountLo, NBytes, Val0Hi, Val0Lo, ..., CRC1, CRC2
Offset:
Reply:
Example to write P_SOLL (register 3) to motor with address 254, values in decimal:
254, 16, 0, 6, 0, 2, 4, bb, aa, dd, cc, NN, MM(NN and MM are the CRC-16 bytes)
JVL Industri Elektronik A/S - User Manual - Integrated Stepper Motors MIS17x, 23x, 34x, 43x
Modbus
Values
0=Disabled *,
1=Enabled
0=Modbus RTU*,
1=Modbus ASCII
0=No parity,
1=Odd parity,
2=Even parity
0=7 data bits,
1=8 data bits
0=1 stop bit,
1=2 stop bits
Reserved
[0]
[1]
[2]
[0]
[1]
[2]
[3]
<adr>, 0x10, RegHi, RegLo, CountHi, CountLo, CRC1, CRC2
TT2346-01GB
Description
When set to non-zero, selects to start the switch away from
the MacTalk protocol and start the Modbus protocol.
This field is not current used. The motor always uses the
binary Modbus RTU format.
Select the parity bit value. Select the same format as the
Modbus client PLC, HMI or PC uses. (3:2 is read as 'bits 3
through 2')
Number of data bits in a byte. Modbus RTU always uses 8
bits per byte.
Select the number of stop bits. Select the same format as
the Modbus client PLC, HMI or PC uses
Reserved for future use. Please set all of these bits to zero.
[3]
[4]
[5]
[4]
[5]
[6]
[6]
[7]
[7]
[8]
311

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents