background image

Extended 16-bit command codes

Command

Code

Command

Data

Value

Event

for

update

Command Description

Smart

Motor

Command(s)

decimal, hex

315, x013B

<value>

C/D*

Set variable hhh

hhh=<value>

316, x013C

<value>

C/D*

Set variable iii

iii=<value>

317, x013D

<value>

C/D*

Set variable jjj

jjj=<value>

318, x013E

<value>

C/D*

Set variable kkk

kkk=<value>

319, x013F

<value>

C/D*

Set variable lll

lll=<value>

320, x0140

<value>

C/D*

Set variable mmm

mmm=<value>

321, x0141

<value>

C/D*

Set variable nnn

nnn=<value>

322, x0142

<value>

C/D*

Set variable ooo

ooo=<value>

323, x0143

<value>

C/D*

Set variable ppp

ppp=<value>

324, x0144

<value>

C/D*

Set variable qqq

qqq=<value>

325, x0145

<value>

C/D*

Set variable rrr

rrr=<value>

326, x0146

<value>

C/D*

Set variable sss

sss=<value>

327, x0147

<value>

C/D*

Set variable ttt

ttt=<value>

328, x0148

<value>

C/D*

Set variable uuu

uuu=<value>

329, x0149

<value>

C/D*

Set variable vvv

vvv=<value>

330, x014A

<value>

C/D*

Set variable www

www=<value>

331, x014B

<value>

C/D*

Set variable xxx

xxx=<value>

332, x014C

<value>

C/D*

Set variable yyy

yyy=<value>

333, x014D

<value>

C/D*

Set variable zzz

zzz=<value>

334 - 511,

x014E - x01FF

N/A

N/A

(Reserved)

512, x0200

<value>

C/D*

Set float 0 (32-bit IEEE)

af[0]=<value>

513, x0201

<value>

C/D*

Set float 1 (32-bit IEEE)

af[1]=<value>

514, x0202

<value>

C/D*

Set float 2 (32-bit IEEE)

af[2]=<value>

515, x0203

<value>

C/D*

Set float 3 (32-bit IEEE)

af[3]=<value>

516, x0204

<value>

C/D*

Set float 4 (32-bit IEEE)

af[4]=<value>

517, x0205

<value>

C/D*

Set float 5 (32-bit IEEE)

af[5]=<value>

518, x0206

<value>

C/D*

Set float 6 (32-bit IEEE)

af[6]=<value>

519, x0207

<value>

C/D*

Set float 7 (32-bit IEEE)

af[7]=<value>

520 - 767,

x0208 - x02FF

N/A

N/A

(Reserved)

768, x0300

<value>

C/D*

Set long array element 0

al[0]=<value>

769, x0301

<value>

C/D*

Set long array element 1

al[1]=<value>

...

...

818, x0332

<value>

C/D*

Set long array element 50

al[50]=<value>

819 - 65535,

x0333 - xFFFF

N/A

N/A

(Reserved)

C/D* Indicates that a change of command code or a change of the command data will cause
this variable to be written. Variables that are changed locally in a SmartMotor program will
not trigger this update. In other words, to set a new value for the variable, the change of data
must be a change relative to the previous network output data cycle (not the current state of
the variable in the motor) from the PLC.

Moog Animatics Class 6 PROFINET Guide Rev. D

Page 63 of 76

Содержание Animatics Class 6 SmartMotor

Страница 1: ...Class 6 SmartMotor Technology For the mobile version of this guide see animatics com docs guides html c6_pnet...

Страница 2: ...example purposes only It is the user s responsibility to decide if a particular code sample or program applies to the application being developed and to adjust the values to fit that application Moog...

Страница 3: ...Other Documents 13 Additional Resources 14 PROFINET and PROFIBUS Resources 14 PROFINET Motor Pinouts Connections and Status LEDs 15 PROFINET Motor Connectors and Pinouts 16 Cables and Diagram 17 Moog...

Страница 4: ...nds 31 PLC Memory 31 Disable positive limit command EIGN 2 31 Disable negative limit command EIGN 3 32 Clear fault status command ZS 32 Initiate Mode Torque 33 Commands 33 PLC Memory 33 Set torque val...

Страница 5: ...Alternate Communications Channel 52 Reserved Motor Variables 52 Command and Response Codes 53 Command Packet Codes to Motor Commands 54 Extended 16 bit command codes 61 Response Packet Codes to Motor...

Страница 6: ...Hardware 9 Software 9 Safety Information 10 Safety Symbols 10 Other Safety Considerations 10 Motor Sizing 10 Environmental Considerations 10 Machine Safety 11 Documentation and Training 12 Additional...

Страница 7: ...iew PROFINET is an independent open fieldbus standard that allows different manufacturers of automation products to communicate without special interface adjustments Specifically PROFINET which is opt...

Страница 8: ...details see Software on page 9 Document sections include Output and Input data formats PROFINET cargo a list of the Moog Animatics PROFINET command codes explained in terms of the equivalent SmartMot...

Страница 9: ...r s industrial Ethernet port for details see PROFINET Motor Connectors and Pinouts on page 16 Software The following software is required l User supplied PLC configuration software l Moog Animatics SM...

Страница 10: ...e system and its safeguards comply with the safety standards specified by the governing authority for example ISO OSHA UL etc for the locale where the machine is being installed and operated For more...

Страница 11: ...nes l Position the control panel so that it is outside the barrier area but located for an unrestricted view of the moving mechanism The control panel must include an E stop mechanism Buttons that sta...

Страница 12: ...bed in the documentation and training supplied by the machine system designer Additional Equipment and Considerations The Risk Assessment and the operating company s standard safety policies will dict...

Страница 13: ...matics SmartMotor Developer s Guide http www animatics com smartmotor developers guide Other Documents l SmartMotor System Best Practices http www animatics com system best practices application note...

Страница 14: ...port Downloads How To videos Forums Knowledge Base and FAQs http www animatics com support html l Sales and distributor information http www animatics com sales offices html l Application ideas includ...

Страница 15: ...tions and the status LEDs PROFINET Motor Connectors and Pinouts 16 Cables and Diagram 17 Moog Animatics Industrial Ethernet Cables 17 M style to M style Ethernet Cable 17 M style to RJ45 Ethernet Cabl...

Страница 16: ...OR ANALOG POSSIBLE SELECTABLE FUNCTIONS INPUT DISCRETE OR ANALOG INPUT INPUT INPUT OUTPUT INPUT OUTPUT INPUT INPUT OUTPUT OUTPUT POWER OUTPUT N A GENERAL PURPOSE GENERAL PURPOSE POSITIVE LIMIT OR GEN...

Страница 17: ...connector at one end and an RJ45 male connector at the opposite end It is available in 1 3 5 and 10 meter lengths For the standard cable use part number CBLIP ETH MR xM where x denotes the cable lengt...

Страница 18: ...ws an example PROFINET network with the SmartMotors daisy chained to the master device An optional ring configuration can be created if it is supported by the selected PROFINET mode and network device...

Страница 19: ...th no program and the travel limit inputs are low LED 0 solid red motor is in fault state due to travel limit fault LED 1 off With no program and the travel limits are high LED 0 solid red for 500 mil...

Страница 20: ...r with PC 21 User Program Requirements 21 Required Nonvolatile EEPROM Values 21 Configure PLC with PC 21 Configure SmartMotor to PROFINET 22 PLC Sends Commands to Motor 22 Network Data Format Example...

Страница 21: ...ation name for PROFINET within a user program see the following code example SNAME mymotor1 a ETH 0 IF a 2 Z Execute reset if Station Name changed ENDIF Configure PLC with PC Use the following procedu...

Страница 22: ...s as described below to send the desired commands over PROFINET and communicate with the motor The following are sequences of commands sent which show all the intermediary PROFINET packet output data...

Страница 23: ...bit defined by ETHCTL 12 x command see User Program Commands on page 38 13 Command error includes math and array errors 14 Peak overcurrent occurred 15 Drive ready PLC Memory Each byte below is repres...

Страница 24: ...mands on page 54 to find response code RCLK and its value hex 7A 007A 0000 0000 0000 0000 0000 0680 0000 0000 0000 Wait for response code acknowledge in the input buffer which is being received contin...

Страница 25: ...e motor It changes as the updated clock value is received To create a PROFINET connection to the SmartMotor 1 Install the SMI software For more details see the Moog Animatics Class 6 SmartMotor Instal...

Страница 26: ...lick the USB category and select Detect Motors on USB from the menu When detection has completed Motor 1 will be shown under the USB network 5 Double click Motor1 to open the Motor View tool Click Pol...

Страница 27: ...total or 63 characters as a name component within the device name e g a character string between two periods may be further limited by your configuration software l Cannot be formatted as an IP addre...

Страница 28: ...tMotor 11 Power cycle the SmartMotor to initialize it with the configured values 12 Enter the PROFINET motor response code to report the motor clock in the PLC PROFINET data registers i e in the 3 wor...

Страница 29: ...C Memory 31 Disable positive limit command EIGN 2 31 Disable negative limit command EIGN 3 32 Clear fault status command ZS 32 Initiate Mode Torque 33 Commands 33 PLC Memory 33 Set torque value specif...

Страница 30: ...ling Limits from Preventing Motion At power up if limit switches are not connected to the motor the electrical state of the limit pins will default to indicate that the motor is at the limits This wil...

Страница 31: ...ransmitted continuously i e cyclically by the master to the slave motor 0000 0000 0030 0000 0000 0000 0680 0000 0000 0000 Set command code 0x01 in the output buffer 0100 0000 0030 0000 0000 0000 0680...

Страница 32: ...nt of the cleared command code 0000 0000 0033 0000 0000 0000 0080 0000 0000 0000 Clear fault status command ZS Insert command ZS data 0x44 in output buffer which is being transmitted continuously i e...

Страница 33: ...in output data 0000 0000 0C00 0000 0000 0000 0080 0000 0000 0000 Insert command code 0x94 and response code 0xA2 94A2 0000 0C00 0000 0000 0000 0080 0000 0000 0000 Wait for acknowledge in input buffer...

Страница 34: ...d code acknowledgment in the input buffer 01A2 0000 000C 01A2 0000 0000 0080 0000 0000 0000 Velocity becomes nonzero and it is reported as 0x00 14 00 00 in this example Status changes are reported as...

Страница 35: ...000 0000 0080 0000 0000 0000 Insert command code 0x64 and response code 0xA2 64A2 0000 00FF 0000 0000 0000 0080 0000 0000 0000 Wait for acknowledge in input buffer 64A2 0000 00FF 64A2 0000 0000 0080 0...

Страница 36: ...0A2 0000 0000 0080 0000 0000 0000 Wait for command code acknowledge in the input buffer 01A2 0001 86A0 01A2 0000 0000 0080 0000 0000 0000 Insert command code 0x00 00A2 0001 86A0 01A2 0000 0000 0080 00...

Страница 37: ...ommand code acknowledge 03 response code acknowledge A2 response data current 0001 86AD velocity 100 000 in slew status 0009 Bt 1 Bi 1 measured current position 0000 CA23 measured current position err...

Страница 38: ...at the PLC over PROFINET with SMI and a USB connection over channel 8 or RS 485 on channel 0 with a SmartMotor user program NOTE Nonvolatile memory will be read at power up or after the Z reset comma...

Страница 39: ...be further limited by your configuration software l Cannot be formatted as an IP address dotted decimal notation l Cannot begin with the characters port nnn where nnn are three numeric characters 0 9...

Страница 40: ...TH 6 RETH 6 The current Network Lost program label number For details see ETHCTL function value on page 42 ETH 7 RETH 7 Processor type 1 Failed 0 Unknown 1 netX 10 2 netX 50 3 netX 51 52 4 netX 100 ET...

Страница 41: ...00 hex this command reports 65536 it reports as a 32 bit signed value ETH 47 RETH 47 IP gateway as integer e g for an IP gateway of 192 168 1 1 C0 A8 01 01 hex this command reports 1062731519 it repo...

Страница 42: ...otor soft stop 3 Send S command to motor immediate stop 4 Send GOSUB x command where x is the value of the user program label 5 Send GOTO x command where x is the value of the user pro gram label NOTE...

Страница 43: ...50 the value argument is ignored ETHCTL 51 value Resets the internal error register RETH 51 the value argument is ignored ETHCTL 58 value Clears the real time Ethernet sync count Program Example The f...

Страница 44: ...PROFINET Output and Input packet format It also provides notes for the Command Output packets and Response Input Packets Output and Input Packet Format 45 Command Output Packet Notes 50 Response Inpu...

Страница 45: ...placing them into the 2 available slots in the motor NOTE Only the two combinations of specific in out sizes are allowed For example 3 words out cannot be used with 28 words in Output 3 Words Data For...

Страница 46: ...ent commanded trajectory position less the current measured position Extended format 12 words 24 bytes out 28 words 56 bytes in This format was created for the purpose of easier access to reading data...

Страница 47: ...12 Response code 2 request 16 bits 2 Yes 13 7 14 Response code 3 request 16 bits 2 Yes 15 8 16 Response code 4 request 16 bits 2 Yes 17 9 18 Response code 5 request 16 bits 2 Yes 19 10 20 Response cod...

Страница 48: ...ack 16 bits 2 Yes 11 6 12 Response code 2 ack 16 bits 2 Yes 13 7 14 Response code 3 ack 16 bits 2 Yes 15 8 16 Response code 4 ack 16 bits 2 Yes 17 9 18 Response code 5 ack 16 bits 2 Yes 19 10 20 Respo...

Страница 49: ...wed to use attributes request codes 214 225 an error code 255 will result These request code locations 1 7 are recommended for information that must be read every cycle like a variable position veloci...

Страница 50: ...for Command Code Acknowledge Command Code l For value insert the Command Data Value l For the variables a to zzz l a to z u8VarIndexSet 0 25 l aa to zz u8VarIndexSet 26 51 l aaa to zzz u8VarIndexSet...

Страница 51: ...zz l a to z u8VarIndexGet 0 25 l aa to zz u8VarIndexGet 26 51 l aaa to zzz u8VarIndexGet 52 77 l For index insert the array index stored in u8ArrIndexGetActual l For length insert the length stored in...

Страница 52: ...not the case in the PROFINET interface these variables are freely available for the user l Require the reservation of any serial channels Therefore all other ports and associated channels are freely a...

Страница 53: ...acket command and response codes and their corresponding SmartMotor commands Command Packet Codes to Motor Commands 54 Extended 16 bit command codes 61 Response Packet Codes to Motor Commands 64 Exten...

Страница 54: ...1 x01 2 x02 C D Direct brake to output number 8 EOBK 8 1 x01 3 x03 N A Reserved 1 x01 4 x04 C D Release brake BRKRLS 1 x01 5 x05 C D Brake while servo inactive BRKSRV 1 x01 6 x06 C D Brake while traje...

Страница 55: ...a right limit input EILP 1 x01 51 x33 C D Make I O 3 an input disable left limit function EIGN 3 1 x01 52 x34 N A Obsolete Use CMD_OUT x 1 x01 53 x35 C D Set I O 3 to be a left limit input EILN 1 x01...

Страница 56: ...lling then rising edge Aji 1 1 x01 83 x53 N A Reserved MDT not supported in Class 6 1 x01 84 x54 C D Request enhanced trapezoidal commutation mode entered as soon as angle is satisfied MDE 1 x01 85 x5...

Страница 57: ...PID derivative compensation KD value 131 x83 value C D PID gravity compensation for limits see the Moog Animatics SmartMotor User s Guide KG value 132 x84 value C D PID integral compensation KI value...

Страница 58: ...riable is referred to in the next variable write operation a is 0 b is 1 zzz is 77 Range is 0 77 201 xC9 N A Reserved 202 xCA value C D u8VarLenSet value Where value represents quantity of variables t...

Страница 59: ...YES 214 xD6 value C D Set variable a to zzzz a u8VarIndexSetActual if u8AutoIncSet then u8VarIndexSetActual 1 a to zzz value 215 xD7 value C D Set byte array variable index u8ArrIndexSetActual if u8Au...

Страница 60: ...x length does not affect EPTR 224 xE0 N A C D Store word array variables to EEPROM index u8ArrIndexSetActual length u8ArrLenSet u32EptrActual length 2 if u8AutoIncSet then u8ArrIndexSetActual length T...

Страница 61: ...ian ness is determined by the byte swap configuration parameter Extended 16 bit command codes Below are additional 16 bit codes Therefore they require the extended data format with its 16 bit fields f...

Страница 62: ...alue C D Set variable kk kk value 293 x0125 value C D Set variable ll ll value 294 x0126 value C D Set variable mm mm value 295 x0127 value C D Set variable nn nn value 296 x0128 value C D Set variabl...

Страница 63: ...iable zzz zzz value 334 511 x014E x01FF N A N A Reserved 512 x0200 value C D Set float 0 32 bit IEEE af 0 value 513 x0201 value C D Set float 1 32 bit IEEE af 1 value 514 x0202 value C D Set float 2 3...

Страница 64: ...otor serial address RADDR 102 x66 cyclic value assigned PWM limit RAMPS 103 x67 cyclic value overcurrent status RBa 104 x68 N A 0 Obsolete 105 x69 cyclic value serial communications error bit 106 x6A...

Страница 65: ...value follow mode divisor RMFDIV 138 x8A cyclic value follow mode multiplier RMFMUL 139 x8B N A 0 Reserved 140 x8C cyclic value current mode of operation RMODE 141 x8D cyclic value present position RP...

Страница 66: ...word 5 RW 5 176 xB0 cyclic value status word 6 RW 6 177 xB1 cyclic value status word 7 RW 7 178 xB2 cyclic value status word 8 RW 8 179 xB3 cyclic value status word 9 RW 9 180 181 xB4 xB5 N A 0 Reser...

Страница 67: ...t does not affect EPTR or variables 219 xDB Response 0 only RC value Get word from EEPROM value EE 2 bytes at u32EptrActual u32EptrActual 2 NOTE This u32EptrActual is not the same as the program EPTR...

Страница 68: ...rray variables index u8ArrIndexGetActual length u8ArrLenGet u32EptrActual length 4 if u8AutoIncGet then u8ArrIndexGetActual length NOTE This u32EptrActual is not the same as the program EPTR command V...

Страница 69: ...g these in the extended packet which has 16 bit fields for the command and reponse codes For example reponse code 122 returns CLK clock As an 8 bit hex value 122 is x7A as a 16 bit value that is x007A...

Страница 70: ...clic value variable hh Rhh 290 x0122 cyclic value variable ii Rii 291 x0123 cyclic value variable jj Rjj 292 x0124 cyclic value variable kk Rkk 293 x0125 cyclic value variable ll Rll 294 x0126 cyclic...

Страница 71: ...e variable uuu Ruuu 329 x0149 cyclic value variable vvv Rvvv 330 x014A cyclic value variable www Rwww 331 x014B cyclic value variable xxx Rxxx 332 x014C cyclic value variable yyy Ryyy 333 x014D cyclic...

Страница 72: ...Cables and Diagram on page 17 Wrong GSDML file Verify that the correct GSDML file was used to configure the master and connect the slave motor as part of the PROFINET network Command code Ack and or R...

Страница 73: ...is off or reset Use the SADDR or ADDR command within the program to set the motor address Red PWR SERVO light illuminated Critical fault To discover the source of the fault use the Motor View tool loc...

Страница 74: ...menu to select the default firmware version closest to the motor firmware version In the SMI software view the motor firmware version by right clicking the motor and selecting Properties Unsupported c...

Страница 75: ......

Страница 76: ...PN SC80100007 001 Rev D...

Отзывы: