Download User`s Manual
Transcript
Title: mOway User Manual Rev: v3.1.2 – April 2013 Page 64 of 175 MOWAY MOT_CON FWDBACK COMTYPE RL MOT_VEL MOT_RAD MOT_T_DIST MOT_CUR MOT_CON FWDBACK COMTYPE RL - MOT_STOP MOT_RST_COM MOT_RST STATUS_COM MOT_FDBCK MOT_STATUS COMOK DWRONG A command to execute a curve MOT_STATUS COMOK DWRONG MOT_STATUS COMOK DWRONG A command to stop the robot MOT_STATUS_ DATA_0 MOT_STATUS_ DATA_1 MOT_STATUS COMOK DWRONG A command to determine the motor’s status A command to reset the temporary variables for time and distance MOT_CONFIG This function configures the inputs and outputs so the microcontroller can communicate with the Drive System. Table 41. Pic-drive system connections Pin PIC PORTE RE7 RE0 RE1 I/O Sensor I Indicates when the motor command. O SCL of the I2C protocol O SDA of the I2C protocol ends the Port RE7 indicates the end of a command. This port is labeled as MOT_END in the library. Example: ;Straight forward at 100% speed for 10 seconds (100ms x 100) movlw .100 movwf MOT_VEL movlw .100 movwf MOT_T_DIST_ANG bsf MOT_CON,FWDBACK bsf MOT_CON,COMTYPE call MOT_STR ;Nothing is done until the command has ended CHECK_COMMANDO_END btfss MOT_END www.moway-robot.com