Download ADT-8860 - CNC Controller

Transcript
PMC Programmable Motion Controller
Input
parameter
id: slave station No.; invalid for TCP/UDP transmission; connection address and port
No. should be set for UDP transmission
addr: register address corresponding to system parameter (32-bit double-word address)
*data: save the parameter values to be set
len: set parameter length
Output
parameter
None
Return
0: execute successfully, -1: send failed
Note
pmc_get_cpara( )
Function name
int pmc_get_cpara( INT32S id, INT16U addr, INT32U *data, INT16U len)
Description
Get parameters of system register
id: slave station No.; invalid for TCP/UDP transmission; connection address and port
No. should be set for UDP transmission
addr: register address corresponding to system parameter (32-bit double-word address)
len: get parameter length
Input
parameter
Output
parameter
*data: save the parameter values
Return
0: execute successfully, -1: send failed
Note
pmc_set_dpara( )
Function name
int pmc_set_dpara( INT32S id, INT16U addr, INT32U *data, INT16U len)
Description
Set parameters of drive register
id: slave station No.; invalid for TCP/UDP transmission; connection address and port
No. should be set for UDP transmission
addr: register address corresponding to system parameter (32-bit double-word address)
*data: save the parameter values to be set
len: set parameter length
Input parameter
Output
parameter
None
Return
0: execute successfully, -1: send failed
Note
pmc_get_dpara( )
Function name
Description
Input parameter
- 84 -
int pmc_get_dpara( INT32S id, INT16U addr, INT32U *data, INT16U len)
Get parameters of drive register
id: slave station No.; invalid for TCP/UDP transmission; connection address and port
No. should be set for UDP transmission
addr: register address corresponding to system parameter (32-bit double-word address)
len: get parameter length