Hi steve.milici, I have another problem.
In the latest firmware, I43 has an additonal function which allows users to access the serial port in their own way.
Now, the main serial port has the 255-byte long commandbuffer:
X:$003600 … $0036FF
"Only the low byte (bits 0 – 7) of each word in the command and response queues is used."
I want to send the M162 (which stand for the actual position*Ixx08*32) through main serial port. And in my case, the motor will not exceed 360 degrees which means M162 will not exceeds 0x481200000 which is a integer of 36bit.
So if I define the M variable as follows :
M162->D:$00008B
P1 = M162
M1->X:$003600,8
M2->X:$003601,8
M3->X:$003602,8
M4->X:$003603,8
M5->X:$003604,8
M6->X:$003605,8
M7->x:$003606,8
M100->X:$FFFFE6
M101->X:$FFFFE0,23
then:
M1 = P1%256
P1 = P1/256
M2 = P1%256
P1 = P1/256
M3 = P1%256
P1 = P1/256
M4 = P1%256
P1 = P1/256
M5 = P1%256
P1 = P1/256
M6 = P1%256
P1 = P1/256
M7 = '$'
and each time I have to DIVIDE 256 one by one. So does the second axis.
M100 = 7
M101= 0
M101 = 1 ;initiates the transmission of data
Is there any other easier way that I can choose? Or is there anything wrong with my code since the firmware of my clipper is updating in Deltatau.