328 JVL Industri Elektronik A/S - User Manual - Integrated Stepper Motors MIS23x, 34x, 43x
16.7 Serial communication
16.7.9 Group write register
Using this command it is possible to write a register in several SMC75s 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.
Block description
16.7.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:
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 SMC75 Response
<GWrite><Group><Sequence><RegNum><Len><Data><End> None
Block Name Protected Example Description
<GWrite> No 59h,59h,59h Group write command
<Group> Yes 07h,F8h (Address 7) The group id of the SMC75s to write to.
<Sequence> Yes 04h,FBh (Sequence 4) The sequence number of the write.
<RegNum> Yes 05h,FAh (RegNum 5) The register number to write to
<Len> Yes 02h,FDh (Len = 2) The number of data bytes
<Data> Yes
E8h,17h, 03h,FCh
(Data = 1000)
The data to write to the register
<End> No AAh, AAh Command termination
Com-
mand
Data 1 Data 2 Description
0 - - No operation
1 - - Start program execution
2 - - Stop program execution
3 - - Pause program execution
4
Start Ad-
dress
(16bit)
End Ad-
dress
(16bit)
Run the program until the program pointer is outside the area
[Start Address End Address]
Then the program is paused
5
Set outputs
(8bit)
Clear out-
puts
(8bit)
Modifies the outputs. The bits set in the “Set outputs” data will be set and cleared
for “Clear outputs”.
Example:
The data 0x06,0x01 sets output 2+3 and clears output 1
6 Reserved
7 Size (16 bit)
Prepare the flash for a new program. Data 1 specifies the size of the program in
bytes.
Controller sends SMC75 Response
<PStat><Address><Len1><Data1><End> <PStat><MAddress><Len2><Data2><End>