JVL MIS17 Series User Manual page 351

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

Advertisement

17.2
17.2.9
Group write register
Using this command it is possible to write a register in several MIS/SMCs with one com-
mand.
The command includes a sequence number which must be changed for each write. This
is used so that the same command can be written several times, to ensure that all con-
trollers received it. The last received sequence id can be read in register 148.
Controller sends
<GWrite><Group><Sequence><RegNum><Len><Data><End>
Block description
Block Name
Protected
<GWrite>
No
<Group>
Yes
<Sequence>
Yes
<RegNum>
Yes
<Len>
Yes
<Data>
Yes
<End>
No
17.2.10
Program status and command
Using this command, different actions can be executed. The command also returns some
information about the program state.
The table below shows the possible commands:
Com-
mand
Data 1
0
-
1
-
2
-
3
-
4
Start
Address
(16bit)
5
Set outputs
(8bit)
6
7
Size (16 bit)
The command number is placed in the first command data byte. Data 1 + Data 2 are
placed in the following command data bytes.
Controller sends
<PStat><Address><Len1><Data1><End>
JVL Industri Elektronik A/S - User Manual - Integrated Stepper Motors MIS17x, 23x, 34x, 43x
Serial communication
Example
59h,59h,59h
07h,F8h (Address 7)
04h,FBh (Sequence 4)
05h,FAh (RegNum 5)
02h,FDh (Len = 2)
E8h,17h, 03h,FCh
(Data = 1000)
AAh, AAh
Data 2
Description
-
No operation
-
Start program execution
-
Stop program execution
-
Pause program execution
End
Run the program until the program pointer is outside the area
Address
[Start Address End Address]
(16bit)
Then the program is paused
Clear out-
Modifies the outputs. The bits set in the "Set outputs" data will be set and cleared
puts (8bit)
for "Clear outputs".
Example:
The data 0x06,0x01 sets output 2+3 and clears output 1
Reserved
Prepare the flash for a new program. Data 1 specifies the size of the program in
bytes.
MIS/SMC Response
None
Description
Group write command
The group id of the MIS/SMCs to write to.
The sequence number of the write.
The register number to write to
The number of data bytes
The data to write to the register
Command termination
MIS/SMC Response
<PStat><MAddress><Len2><Data2><End>
351

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents