5.11
5.11.2
Writing to a register
Controller sends
<Write><Address><RegNum><Len><Data><End>
Block description
Block Name
<Write>
<Address>
<RegNum>
<Len>
<Data>
<End>
<Accept>
(1) Protected means that these data must be sent twice, first non-inverted and then inverted.
Example 1:
Writing 600 (258h) to register 5 (16 bit) to the MAC motor with address 8.
Transmit:52h,52h,52h - 08h,F7h - 05h,FAh - 02h,FDh - 58h,A7h,02h,FDh - AAh, AAh
Response:11h,11h,11h
Example 2:
Write 230,000 (38270h) to register 3 (32 bit) to the MAC motor with address 7.
Transmit:52h,52h,52h - 07h,F8h - 03h,FCh - 04h,FBh -
Response:11h,11h,11h
JVL Industri Elektronik A/S - User Manual - Integrated Servo Motors MAC050 - 800
MacTalk communication
Protected
(1)
No
Yes
Yes
Yes
Yes
No
No
70h,8Fh,82h,7Dh,03h,FCh,00h,FFh - AAh, AAh
Example
52h,52h,52h
07h,F8h (Address 7)
05h,FAh (RegNum 5)
02h,FDh (Len = 2)
E8h,17h, 03h,FCh
(Data = 1000)
AAh, AAh
11h, 11h,11h
Only MAC050 to 141
MAC motor response
<Accept>
Description
Write command
The address of the MAC motor
The register number to write to
The number of data bytes
The data to write to the register
Command termination
Accept from MAC motor
285