DELTA ELECTRONICS CO., LTD. PCI-DMC-A01 PCI-DMC-B01 High-Speed PCI 12-Axis Motion Control Card Programming Manual Version: 1.11.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual About this Manual User Information Please keep this manual in a safe place. This manual is subject to change without notice due to the release of new products, improvements and changes in technologies, and/or modifications to data and forms. This manual may not be copied or reproduced in whole or in part without the express written consent of Delta Electronics.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual Table of Contents Chapter 1 Introduction to the API Function Library --------------------------------------------------- 1-1 1.1 Using the Function Libraries---------------------------------------------------------------------- 1-1 1.2 Edit New Project ------------------------------------------------------------------------------------- 1-1 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 3.7 Velocity Motion Control (2)-----------------------------------------------------------------------3-19 3.7.1 3.7.2 3.8 Point to Point Motion Control --------------------------------------------------------------------3-21 3.8.1 3.8.2 3.8.3 3.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 3.18 Change Velocity ------------------------------------------------------------------------------------3-63 3.18.1 Function List ------------------------------------------------------------------------------3-63 3.18.2 Sample Application----------------------------------------------------------------------3-63 3.19 Remote I/O Module-I/O Port---------------------------------------------------------------------3-67 3.19.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 3.30 Axis Group ----------------------------------------------------------------------------------------- 3-116 3.30.1 Function List ---------------------------------------------------------------------------- 3-116 3.30.2 Sample Application-------------------------------------------------------------------- 3-116 3.31 Speed Continue ---------------------------------------------------------------------------------- 3-119 3.31.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 6.14 _DMC_01_get_dio_input -------------------------------------------------------------------------- 6-9 6.15 _DMC_01_get_cycle_time ------------------------------------------------------------------------ 6-9 6.16 _DMC_01_initial_bus2 ----------------------------------------------------------------------------6-10 6.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual Chapter 12 Torque Motion Control Packet Protocol API --------------------------------------------12-1 12.1 _DMC_01_set_torque_mode -------------------------------------------------------------------12-2 12.2 _DMC_01_set_torque ----------------------------------------------------------------------------12-3 12.3 _DMC_01_set_torque_stop ---------------------------------------------------------------------12-4 12.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual Chapter 18 1-Axis Motion Control API --------------------------------------------------------------------18-1 18.1 _DMC_01_start_tr_move ------------------------------------------------------------------------18-2 18.2 _DMC_01_start_sr_move ------------------------------------------------------------------------18-3 18.3 _DMC_01_start_ta_move ------------------------------------------------------------------------18-4 18.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 20.13 _DMC_01_start_spiral_xy --------------------------------------------------------------------- 20-27 20.14 _DMC_01_start_spiral2_xy -------------------------------------------------------------------- 20-29 20.15 _DMC_01_start_v3_arc_xy-------------------------------------------------------------------- 20-31 20.16 _DMC_01_start_v3_arc2_xy ------------------------------------------------------------------ 20-33 20.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 25.8 _DMC_01_set_rm_output_active --------------------------------------------------------------25-9 Chapter 26 MPG and JOG Operation API-----------------------------------------------------------------26-1 26.1 _DMC_01_set_rm_mpg_axes_enable -------------------------------------------------------26-2 26.2 _DMC_01_set_rm_mpg_axes_enable2 ------------------------------------------------------26-4 26.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 29.3 _DMC_01_rm_04da_get_return_code -------------------------------------------------------29-4 29.4 _DMC_01_rm_04da_set_output_range ------------------------------------------------------29-5 29.5 _DMC_01_rm_04da_set_output_enable-----------------------------------------------------29-6 29.6 _DMC_01_rm_04da_set_output_overrange ------------------------------------------------29-7 29.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual 33.3 _DMC_01_master_alm_code -------------------------------------------------------------------33-4 33.4 _DMC_01_slave_error ----------------------------------------------------------------------------33-5 Chapter 34 Multi-Axis Motion Control API ---------------------------------------------------------------34-1 34.1 _DMC_01_multi_axes_move -------------------------------------------------------------------34-2 34.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual Chapter 38 Limit Reversal API -------------------------------------------------------------------------------38-1 38.1 _ DMC_01_rm_04pi_set_MEL_polarity ------------------------------------------------------38-2 38.2 _ DMC_01_rm_04pi_get_MEL_polarity ------------------------------------------------------38-3 38.3 _ DMC_01_rm_04pi_set_PEL_polarity -------------------------------------------------------38-4 38.
PCI-DMC-A01 / PCI-DMC-B01 Programming Manual Chapter 42 Other API--------------------------------------------------------------------------------------------42-1 xiv 42.1 _misc_app_get_circle_endpoint ----------------------------------------------------------------42-2 42.2 _misc_app_get_circle_center_point -----------------------------------------------------------42-3 42.3 _misc_set_record_debuging --------------------------------------------------------------------42-4 42.
Chapter 1 Introduction to the API Function Library | PCI-DMC-A01 / PCI-DMC-B01 Chapter 1 Introduction to the API Function Library PCI-DMC-A01 provides a function library and dynamic-link library (DLL) which can be called upon to perform functions as you require. The following sections will detail how you can incorporate these function libraries into your development environment. 1.1 Using the Function Libraries Once you have installed the program you will find two libraries under the “lib” folder.
Chapter 1 Introduction to the API Function Library | PCI-DMC-A01 / PCI-DMC-B01 2. Under the Borland C++ Build development environment, select View/ Project Manager Add the function library “..\lib\BCBPCI_DMC_01.lib” to your new project. 3. Once set, you can begin using the API to control PCI-DMC-A01. 1.2.3 Using VB Under the installation directory “..\ \PCI-DMC-A01\inc\VB” you will find “PCI_DMC_01.bas” and “PCI_DMC_01_Err.bas”.
Chapter 2 Command Return Values and Messages | PCI-DMC-A01 / PCI-DMC-B01 Chapter 2 Command Return Values and Messages 2.1 Error Codes When you use API for PCI-DMC-A01, the function library will generally return one of the error codes listed in Table 2.1. If the API function's return value is 0, then the API function was executed successfully. If the API function returns some other error code, then an error may have occurred during operation or in the hardware connection.
Chapter 2 Command Return Values and Messages | PCI-DMC-A01 / PCI-DMC-B01 Error Return Code (Decimal) Error Description 21 ERR_SpeedLimitError Defined velocity exceeds maximum velocity 22 ERR_Security_Page Security page must be smaller than 16 23 ERR_Slave_Security_op Security slave_operate command failed 24 ERR_channel_no channel no error 25 ERR_start_ring_first “_DMC_01_pci_initial” AP function must be launched first 26 ERR_NodeIDError NodeID does not exist 27 ERR_MailBoxErr DSP busy
Chapter 2 Command Return Values and Messages | PCI-DMC-A01 / PCI-DMC-B01 Error Return Code (Decimal) Error Code Error Description ERR_SDStop_On Currently executing deceleration/stop command, Unable to receive new commands ERR_VelChange_supper Unable to execute velocity change function (Feedhold, Synch, and Deceleration) ERR_Command_set Unable to repeat FeedHold command ERR_sdo_message_choke Sdo command return error.
Chapter 2 Command Return Values and Messages | PCI-DMC-A01 / PCI-DMC-B01 2.2 Error Code Example The following example is a return function. You can use it as a reference to create new functions that meet your control requirements. Example Void error (unsigned short rc) value // Function that returns error code; rc is the parsed return { Switch(rc) { Case 3: printf(“Card No. Error, Please check Card No. again.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Chapter 3 Operating Principles 3.1 Card Initialization 3.1.1 Function List Table 3.1 Function Name _DMC_01_open _DMC_01_get_CardNo_seq _DMC_01_check_card_running _DMC_01_reset_card _DMC_01_close _DMC_01_pci_initial _DMC_01_initial_bus _DMC_01_start_ring _DMC_01_get_device_table _DMC_01_get_node_table 3.1.2 Sample Application Program Appearance Figure 3.1 1) Open card Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Click on the “Open card” button to execute the following procedure: /* gDMCExistCards variable is set as the number of PCI-DMC-A01 on the PC*/ rt = _DMC_01_open(&gDMCExistCards); 2) Card initialization Figure 3.3 Click on the “Card init” button to execute the following procedure: for(i=0; i
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 NOTE _DMC_01_get_device_table Get the Slot ID using the PDO protocol Example: gpDeviceInfo[gDMCCardNo] is a “WORD” type variable. If its value is 7, the binary form is expressed as “0000 0000 0000 0111”, so Slave devices with Slot IDs “1”, “2” and “3” exist. _DMC_01_get_node_table Get Node ID using SDO protocol. Example: gpSlaveTable[0][gDMCCardNo] is a “DWORD” type variable.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.2 Read/Write Driver Parameters 3.2.1 Function List Table 3.2 Function Name _DMC_01_set_pdo_mode _DMC_01_read_servo_parameter _DMC_01_write_servo_parameter 3.2.2 Sample Application Program Appearance Figure 3.6 1) Card Initialization and Mode Switching Figure 3.7 Click on “Open card” to execute card initialization and set SDO mode. For detailed instructions on card initialization, please refer to the functions described in Section 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 The last argument [Enable] is used to set whether PDO mode is used for Slave communications or not. Please refer to the section on this function for a more detailed description of this argument. In the above example, the value of the argument is 0. This means PDO mode is disabled during Slave communication. If you set PDO mode to disabled, then Slave communications will use the SDO protocol.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Write servo parameter Figure 3.10 As shown in Fig. 3.10, if you wish to write a parameter value to servo then you must input the desired value in the edit box and then click on the “Write” button to execute the following procedure: rt = _DMC_01_write_servo_parameter(gDMCCardNo, NodeID, SlotID, group, idx, data); //The value will be written to the servo group parameter you set. Please refer to the previous section for a detailed description.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.3 CANopen Protocol 3.3.1 Function List Table 3.3 Function Name _DMC_01_set_pdo_mode _DMC_01_send_message _DMC_01_read_message _DMC_01_get_message 3.3.2 Sample Application Program Appearance Figure 3.11 1) Initialize card and set Slave communications to SDO mode. Click on the “Open card” button shown in Fig. 3.11 to initialize card and set SDO mode. A description of this button is provided in Section 3.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 You input the value of the “NodeID”. The value will reflect the Slave ID you wish to set up. Please refer to th CANopen manual (DS 402) for setting the “Index”, “Sub” and “Type” values. The values “D0” to “D3” are used to input the SDO command data you wish to set (Valid data: Byte).
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.4 Homing Motion Control 3.4.1 Overview Most application programs use an incremental encoder to retrieve position feedback. A homing operation is essential to performing accurate motion control. After the power is switched on, the status of the machine bench's position can be in one of three states.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.4.2 Function List Table 3.4 Function Name _DMC_01_set_home_config _DMC_01_set_home_move _DMC_01_escape_home_move 3.4.3 Sample Application Program Appearance Figure 3.17 1) Open card and initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Enter the values of the arguments for motion control Figure 3.18 NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. Vel. item: Number of pulses per second. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. 3) Set homing parameter (Homing mode and offset) Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Homing operation See Fig. 3.20.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.5 Torque Motion Control 3.5.1 Function List Table 3.5 Function Name _DMC_01_set_torque_mode _DMC_01_set_torque _DMC_01_set_torque_stop _DMC_01_get_torque 3.5.2 Sample Application Program Appearance Figure 3.21 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Input Node ID and check the “Timer” checkbox to enable motion status display NodeID item: API function argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter values for slope and ratio Figure 3.23 Slope item: Time required to go from 0 to 100% rate torque. (Unit: ms) Ratio item: Thousandths of rated torque. For example, a value of 100 represents 10% of rated torque.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 7) Exit procedure Click on the “Exit” button to quit and exit the procedure. “_DMC_01_reset_card” and “_DMC_01_close” must be executed to exit this function. Please refer to Section 3.12 “Exit procedure” for the function operations.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.6 Velocity Motion Control (1) 3.6.1 Function List Table 3.6 Function Name _DMC_01_set_velocity_mode _DMC_01_set_velocity _DMC_01_set_velocity_stop _DMC_01_get_rpm 3.6.2 Sample Application Program Appearance Figure 3.25 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Input Node ID and check the “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter the values for acceleration/deceleration time and rotations per minute (RPM) Figure 3.27 Tacc item API function's argument variable “Tacc”. Tdec item: API function's argument variable “Tdec”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Display current RPM value rt = _DMC_01_get_rpm (gDMCCardNo, NodeID, SlotID, & rpm); // Value returned by RPM variableActual motion RPM is 10% of RPM variable value 7) Exit procedure Click on the “Exit” button to quit and exit the procedure. “_DMC_01_reset_card” and “_DMC_01_close” must be executed to exit this function. Please refer to Section 3.12 “Exit procedure” for the function operations.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.7 Velocity Motion Control (2) 3.7.1 Function List Table 3.7 Function Name _DMC_01_tv_move _DMC_01_sv_move _DMC_01_emg_stop 3.7.2 Sample Application Program Appearance Figure 3.29 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3) Enter the values of the arguments for motion control Figure 3.31 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. S-Curve checkbox: You must check this box if you wish to use the S-curve velocity curve.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.8 Point to Point Motion Control 3.8.1 Overview Point to point motion control can be used with single and multi-axes. For single- or multi-axes point to point motion control, PCI-DMC-A01 absolute or relative coordinate motion modes with a S-Curve or T-curve velocity cross-section. P0 P1 Figure 3.32 Fig. 3.32 for example shows motion displacement from P0 to P1 along a single axis.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.8.3 Sample Application Program Appearance Figure 3.33 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Set Servo Node ID and enable motion status display Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3) Enter the values of the arguments for motion control Figure 3.35 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. Dec item: Time required to go from maximum velocity to 0. API function's argument variable “dec”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Start point to point motion control Click on the “” or ““ button to execute the following procedure: rt = _DMC_01_start_sa_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with S-curve velocity cross-section rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with T-curve velocity cros
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Motion counter value: rt = _DMC_01_get_command(gDMCCardNo, NodeID, SlotID, &cmd); // Get value of command counter rt = _DMC_01_get_position(gDMCCardNo, NodeID, SlotID, &pos); // Get value of feedback counter Motion status: rt = _DMC_01_get_current_speed(gDMCCardNo, NodeID, SlotID, &speed); // Get velocity of current motion rt = _DMC_01_motion_status(gDMCCardNo, NodeID, SlotID, &MC_status); // Get current status rt = _DMC_01_motion_done(gDMCCardNo,
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.9 Linear Interpolation Motion Control 3.9.1 Overview If you wish to use CANopen PDO protocol for motion control you must operate in the CANopen IP mode. PCI-DMC-A01 supports 2~3 axis linear interpolation in absolute or relative coordinate motion modes under the S-curve or T-curve velocity cross-section. 2-axis linear interpolation is as shown in Fig. 3.30. This is a straight line that starts and P0 and ends at P1 in 2 dimensions.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.9.3 Sample Application Program Appearance Figure 3.41 1) Card initialization Click on the “Initial” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Get Slot ID and enable motion status display Figure 3.42 Check the “Timer” checkbox to enable motion status display Timer Checkbox: Check to display the motion status. Uncheck to disable display.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3) Enter the values of the arguments for motion control Figure 3.43 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. Dec item: Time required to go from maximum velocity to 0. API function's argument variable “dec”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Start motion control with linear interpolation in 2 or 3 axes Click on the “” or ““ button to execute the following procedure: 2-axis linear interpolation: rt = _DMC_01_start_sa_move_xy(gDMCCardNo, gLine2, gSlot2, Distance, Distance, StrVel, MaxVel, acc, dec); //// Linear interpolation motion using absolute coordinates with S-curve velocity cross-section rt = _DMC_01_start_ta_move_xy(gDMCCardNo, gLine2, gSlot2, Distance, Distance, StrVel, MaxV
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 7) Stop motion Figure 3.46 Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”. 8) Exit procedure Click on the “Exit” button to quit and exit the procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.10 Arc Interpolation Motion Control 3.10.1 Overview PCI-DMC-A01 supports 2-axis arc interpolation in absolute or relative coordinate motion modes under the S-curve or T-curve velocity cross-section. Fig. 3.44 illustrates arc interpolation on any 2 axes. The start point is P0 (X0, Y0) and end point is P1(X1, Y1). The path from P0 to P1 forms an arc. The maximum velocity is the tangential velocity. P0 Cent P1 Figure 3.47 3.10.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.10.3 Sample Application Program Appearance Figure 3.48 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Get Slot ID and enable motion status display Figure 3.49 Check the “Timer” checkbox to enable motion status display Timer Checkbox: Check to display the motion status.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. Dec item: Time required to go from maximum velocity to 0. API function's argument variable “dec”. Abs. Checkbox: You must check this if you want motion displacement to use absolute coordinates.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 ➌ Cen_X item: Center's x-coordinate. API function's argument variable “arc3_cen_x”. Cen_Y item: Center's y-coordinate. API function's argument variable “arc3_cen_y”. End_X item: Endpoint's x-coordinate. API function's argument variable “arc3_end_x”. End_Y item: Endpoint's Y-coordinate. API function's argument variable “arc3_end_y”. Dir item: Direction. API function's argument variable “arc3_dir”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2-axis arc interpolation using interpolation method 2 (Arc2).
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”. 8) Exit procedure Click on the “Exit” button to quit and exit the procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.11 Spiral Interpolation Motion Control -Helix 3.11.1 Function List Table 3.11 Function Name _DMC_01_start_tr_heli_xy _DMC_01_start_sr_heli_xy _DMC_01_start_ta_heli_xy _DMC_01_start_sa_heli_xy 3.11.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Get Slot ID and enable motion status display Figure 3.55 Check the “Timer” checkbox to enable motion status display Timer Checkbox: Check to display the motion status. Uncheck to disable display. Below motion status is the “RESET” button.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 rt = _DMC_01_motion_status(gDMCCardNo, NodeID, SlotID, &MC_status); // Get current status rt = _DMC_01_motion_done(gDMCCardNo, NodeID, SlotID, &MC_done); // Get current motor status 3) Enter the argument values and chosen velocity cross-section for motion control Figure 3.56 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Figure 3.57 4) Set Servo Motor Power ON/OFF(servo on/servo off) Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Stop motion Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”. 7) Exit procedure Click on the “Exit” button to quit and exit the procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.12 Continuous Interpolation Motion Control 3.12.1 Overview A series of motion commands can be used to describe a square path with rounded corners. PCI-DMC-A01 supports using the 20-unit software FIFO in Motion ASIC for motion control during continuous interpolation. Please refer to the following diagram: System Command Motor Program Read Displacement Get buffer FIFO FIFO FIFO Execute FIFO length No 19 No 18 No 1 No 0 Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.12.3 Sample Application If you wish to perform the continuous interpolation motion illustrated below, you must execute the following procedure and carry out the commands from ➀ ~ ➇: Figure 3.60 Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Get Slot ID and enable motion status display Figure 3.62 Check the “Timer” checkbox to enable motion status display Timer Checkbox: Check to display the motion status. Uncheck to disable display.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Set Servo Motor Power ON/OFF(servo on/servo off) Figure 3.65 Click on the “SVON” button to execute the following procedure: rt = _DMC_01_ipo_set_svon(gDMCCardNo, NodeID, SlotID , ON_OFF); // ON_OFF: 0 – Servo Power OFF; 1 – Servo Power ON 6) Click on the “Move” button to start executing continuous interpolation motion The following procedures ➀~➇ will realize the continuous interpolation motion shown in Fig. 3.60.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 V-T diagram of actual X-axis motion: Figure 3.66 7) Stop motion Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.13 Software Limit Control 3.13.1 Function List Table 3.13 Function Name _DMC_01_start_sr_move _DMC_01_start_tr_move _DMC_01_start_sa_move _DMC_01_start_ta_move _DMC_01_set_soft_limit _DMC_01_enable_soft_limit _DMC_01_disable_soft_limit _DMC_01_get_soft_limit_status 3.13.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization Click on the “Initial” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Set Servo Node ID and enable motion status display Figure 3.68 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Set positive/negative value limit, stop motion mode, and whether software limit is enabled Figure 3.71 N-Limit item: Value of negative limit. API function's argument variable “NLimit”. P-Limit item: Value of positive limit. API function's argument variable “PLimit”. Stop mode pull-down menu: Stop mode. API function's argument variable “action”. Soft-limit Checkbox: Enables/disables software limit.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 9) Start motion control (Using point to point motion control as an example) Click on the “” or “” button to execute the following procedure: rt = _DMC_01_start_sa_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with S-curve velocity cross-section rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute c
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.14 Synchronization Motion Control 3.14.1 Function List Table 3.14 Function Name _DMC_01_sync_move _DMC_01_sync_move_config 3.14.2 Sample Application Program Appearance Figure 3.74 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Choose whether to enable synchronization motion control Figure 3.75 Sync. Enable checkbox: Enable motor sync or not. You can execute the following procedure to enable sync motion: rt = _DMC_01_sync_move_config(gDMCCardNo, gpNodeID[i], SlotID, enable); // If enable argument is 1, then synchronized motion control is enabled. 3) Set Servo Node ID and enable motion status display Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Select motion mode and set motion distance. Figure 3.78 Abs. Checkbox: You must check this if you want motion displacement to use absolute coordinates. S-Curve checkbox: You must check this box if you wish to use the S-curve velocity curve. Dist. item: Motion distance. API function's argument variable “Distance”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 8) Stop motion Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”. 9) Exit procedure Click on the “Exit” button to quit and exit the procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.15 Dwell Command 3.15.1 Function List Table 3.15 Function Name _DMC_01_start_ta_move _DMC_01_buf_dwell 3.15.2 Sample Application Program Appearance Figure 3.80 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Set Servo Node ID and enable motion status display Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3) In the following example, adding the dwell command between continuous motion commands will ensure the execution of continuous motion: rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with T-curve velocity cross-section rt = _DMC_01_buf_dwell(CardNo, NodeID, SlotID, dwell_cnt); //Set the dwell buffer interval.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.16 Change Position 3.16.1 Function List Table 3.16 Function Name _DMC_01_start_ta_move _DMC_01_p_change 3.16.2 Sample Application Program Appearance Figure 3.83 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Set Servo Node ID and enable motion status display Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter the values of the arguments for motion control Figure 3.85 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 7) If you want to change position of current motion to a new position, you must click on “P change” to execute the following procedure: rt = _DMC_01_p_change (CardNo, NodeID, SlotID, NewPos); // Replaces the current position with a new position value 8) Stop motion Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.17 Change Position 3.17.1 Function List Table 3.17 Function Name _DMC_01_start_ta_move _DMC_01_v_change 3.17.2 Sample Application Program Appearance Figure 3.87 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Set Servo Node ID and enable motion status display Figure 3.88 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter the values of the arguments for motion control Figure 3.89 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Set Servo Motor Power ON/OFF(servo on/servo off) Click on the “SVON” button to execute the following procedure: rt = _DMC_01_ipo_set_svon(gDMCCardNo, NodeID, SlotID , ON_OFF); // ON_OFF: 0 – Servo Power OFF; 1 – Servo Power ON 6) Start motion control (Using point to point motion control as an example) Click on the “” or “” button to execute the following procedure: rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.18 Change Velocity 3.18.1 Function List Table 3.18 Function Name _DMC_01_start_sa_move_2seg _DMC_01_start_ta_move_2seg _DMC_01_start_sr_move_2seg _DMC_01_start_tr_move_2seg 3.18.2 Sample Application Program Appearance Figure 3.91 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Set Servo Node ID and enable motion status display Figure 3.92 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter the values of the arguments for motion control Figure 3.93 StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Set distance and velocity for 2nd motion Figure 3.95 2 nd dist item: Value of distance for 2nd motion. API function's argument variable “Dist2”. 2 nd vel item: Value of velocity for 2nd motion. API function's argument variable “MaxVel2”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 9) Stop motion Hit the “STOP” button to execute an emergency stop: rt = _DMC_01_emg_stop (gDMCCardNo, NodeID, SlotID); In this example, emergency stop is used to stop motion. This method quickly stops motion by setting deceleration time to 0. For more information about the Stop Motion function, refer to the later section on “Stop Motion Control API”. 10) Exit procedure Click on the “Exit” button to quit and exit the procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.19 Remote I/O Module-I/O Port 3.19.1 Function List Table 3.19 Function Name _DMC_01_set_rm_input_filter _DMC_01_set_rm_input_filter_enable _DMC_01_set_rm_output_value_error_handle _DMC_01_get_slave_version _DMC_01_get_devicetype _DMC_01_set_rm_output_value _DMC_01_get_rm_input_value 3.19.2 Sample Application Program Appearance Figure 3.96 1) Card initialization Click on the “Initial” button to open and initialize the card.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) When setting the ASD-DMC-RM32MN module initialization parameters, you must execute the following procedure: rt = _DMC_01_set_rm_input_filter(gDMCCardNo, gpNodeID[gNodeNum], 0, port, filter); // The port variable can be set to the 2 ports on the remote module. A value of 0 corresponds to Port 0 on the module. A value of 1 corresponds to Port 1. The filter variable sets the level of the software filter.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 // The Output_value[1] variable will store the value to be output for bit 0 to bit 15 of Port 1 /* Enable output */ rt = _DMC_01_set_rm_output_active(gDMCCardNo, NodeID, SlotID, Enable); //This function must be enabled before the output value set above can be outputted from the output port.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.20 Remote I/O Module- Manual Pulse Generator (1) 3.20.1 Function List Table 3.20 Function Name DMC_01_get_rm_input_value _DMC_01_set_rm_mpg_axes_enable _DMC_01_set_rm_mpg_axes_enable2 3.20.2 Sample Application Program Appearance Figure 3.98 1) Card initialization Click on the “Initial” button to open and initialize the card.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Enter parameter value of manual pulse control. Figure 3.100 MN ID item: API function's argument variable “MNNodeID”. Ratio item: Ratio between each MPG rotation and motor rotation. API function's argument variable “ratio”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Stop manual position control If you wish to stop using the MPG, simply uncheck the “MPG” or “MPG2” checkboxes.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.21 Remote I/O Module- Manual Pulse Generator (2) 3.21.1 Function List Table 3.21 Function Name _DMC_01_get_rm_input_value _DMC_01_set_rm_mpg_axes_enable _DMC_01_set_rm_jog_axes_enable 3.21.2 Sample Application Program Appearance Figure 3.101 1) Card initialization Click on the “Initial” button to open and initialize the card.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Set Servo Node ID and enable motion status display Figure 3.101 Enter Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. NNID item: API function's argument variable “slotID”. Timer command checkbox: Click to display motion status. Click again to turn off display. 3) Enter parameter value of manual pulse control. Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) If you wish to use the MPG function, you must check the “MPG” checkbox and execute the following procedure: rt = _DMC_01_get_rm_input_value(CardNo, NodeID, SlotID, Port, &Value); // Retrieve the value for bit 0 to bit 15 of the remote I/O module's input port rt = _DMC_01_set_rm_mpg_axes_enable(CardNo, MasterNodeID, MasterSlotID, NodeID, SlotID, enable, pulse_ratio, ratio, slope); 7) If you wish to use the JOG function, you must check the “Jog” c
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.22 Remote Pulse Interface Module -Mode 1 3.22.1 Function List Table 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.22.2 Sample Application Program Appearance Figure 3.104 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Set Servo Node ID and enable motion status display Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3) Enter the values of the arguments for motion control Figure 3.106 Dist. item: Set motion distance. API function's argument variable “Distance”. StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity. API function's argument variable “acc”. Dec item: Time required to go from maximum velocity to 0.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Set Home motion mode and offset: Figure 3.108 Mode item: Select Home motion mode. API function's argument variable “home_mode”. Offset item: Set Home motion offset. API function's argument variable “home_offset”. 6) Set positive/negative value limit; enable/disable software limit, and whether to touch software limit or not; Figure 3.109 P-Limit item: Value of positive limit. API function's argument variable “PLimit”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 8) Set the new velocity, deceleration time and enable position change for new position. Figure 3.110 New Vel item: Set new velocity. API function's argument variable “NewSpeed”. sec item: Set acceleration/deceleration time. API function's argument variable “sec”. PCh item: Enable position change. 9) Set Servo Motor Power ON/OFF(servo on/servo off) Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 11) Enable software limit Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 rt = _DMC_01_rm_04pi_md1_p_change(CardNo, NodeID, SlotID, NewPos); 15) Change velocity Under mode 1, RM04PI will replace the current velocity with the new velocity.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.23 Remote Pulse Interface Module -Mode 2 3.23.1 Function List Table 3.23 Function Name _DMC_01_start_sa_move _DMC_01_start_ta_mov _DMC_01_start_sr_move _DMC_01_start_tr_move _DMC_01_set_rm_04pi_ipulse_mode _DMC_01_set_rm_04pi_opulse_mode _DMC_01_set_rm_04pi_svon_polarity _DMC_01_set_monitor _DMC_01_get_monitor _DMC_01_send_message 3.23.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Set Servo Node ID and enable motion status display Figure 3.115 Enter Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Enter the values of the arguments for motion control Figure 3.117 Abs. Checkbox: You must check this if you want motion displacement to use absolute coordinates. S-Curve checkbox: You must check this box if you wish to use the S-curve velocity curve. StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 7) Start motion control (Using point to point motion control as an example) Click on the “” or “” button to execute the following procedure: rt = _DMC_01_start_sa_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with S-curve velocity cross-section rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute c
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.24 Get (Calculate) Arc Information 3.24.1 Function List Table 3.24 Function Name _misc_app_get_circle_endpoint _misc_app_get_circle_center_point 3.24.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2. 2) Get Slot ID and enable motion status display Figure 3.119 Check the “Timer” checkbox to enable motion status display Timer Checkbox: Check to display the motion status. Uncheck to disable display.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) When you complete the arc calculation and get the data you require for arc interpolation motion, you can begin motion control for arc interpolation. Enter the data required for arc interpolation as shown in Fig. 390, select the arc interpolation motion you wish to use. For a detailed description of arc interpolation, please refer to “2-axis Arc Interpolation Motion Control API”. Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.25 Control Interrupt 3.25.1 Function List Table 3.26 Function Name _DMC_01_int_enable _DMC_01_int_disable _DMC_01_set_int_factor _DMC_01_get_int_count 3.25.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization: Click on the “Initial” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Set Servo Node ID and enable motion status display Figure 3.125 Input Node ID and check “Timer” checkbox to enable motion status display NodeID item: API function's argument variable “NodeID”. Timer Checkbox: Check to display the motion status.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Abs. checkbox: You must check this if you want motion displacement to use absolute coordinates. S-Curve checkbox: You must check this box if you wish to use the S-curve velocity curve. Dist. item: Motion distance. API function's argument variable “Distance”. 5) Enable or disable Normal Stop Interrupt Figure 3.128 Enable item: Enables/disables Normal Stop Interrupt.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 8) Start motion control (Using point to point motion control as an example) Click on the “” or “” button to execute the following procedure: rt = _DMC_01_start_sa_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute coordinates with S-curve velocity cross-section rt = _DMC_01_start_ta_move(gDMCCardNo, NodeID, SlotID, Distance, StrVel, MaxVel, acc, dec); // Motion displacement using absolute c
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.26 MasterCard Security 3.26.1 Function List Table 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.26.2 Sample Application Program Appearance Figure 3.129 1) Card initialization: Click on the “Open card” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Start motion card login operation. (SerialNo, Verifykey, Memory Read/Write all require Check Password Pass to operate). Figure 3.130 Password item: Enter two sets of 1~8 bit 0~F hexadecimal values. Default motion card passwords (Password1: FFFFFFFF Password2:FFFFFFFF). Login item: Check password. Status item: If password is correct then “Pass” is displayed in the status below. If password is wrong, “Failed” appears in the status display.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Set up Verifykey Figure 3.132 SerialNo. display: The motion card's serial number is displayed here. Read Serial No item: Read the serial number of the motion card. Input User Key item: Enter two sets of customer-selected 1~8 bit 0~F hexadecimal values as the Key values. Verify key display: The generated verifykey is displayed here. Make Verify Key item: Encrypt the SerialNo and customer provided Userkey to generate four sets of VerifyKey.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 6) Check Verify key Figure 3.134 Page item: Enter the value of the Memory Page (0 ~ 9) to read or write. Read item: Execute read of selected Memory Page and display in “Read” item. Write Enable item: Before executing the write operation, the Write Enable checkbox must be checked. The status bar will now display “Write/Read”. Sync item: Clicking on Sync button copies the value from the “Read” to “Write”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 /* Check to see if value of Verify Key is correct*/ rt =_DMC_01_check_verifykey(gDMCCardNo,verifykey(0),state); Clicking on Read button in Fig. 3.134 below executes the following procedure: /*Read the data from the selected Page and display data in the “Read” position*/ rt =_DMC_01_read_security(gDMCCardNo,page,ary(0)); Clicking on Write button in Fig. 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.27 Remote Analog Input/Output Module 3.27.1 Function List Table 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.27.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization: Click on the “Initial” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) DA Channel and display mode selection Figure 3.136 Channel item: Enter the ID of the DA Channel to be used (0~3). Mode item: Select DA display range. API function's argument variable “mode”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Select AD Conversion Time mode: Figure 3.138 Conversion Time item: Select Conversion Time mode. 5) Select AD Channel / Display mode / Average data. Figure 3.139 Channel item: Select Channel for AD enable input. Mode item: Select AD display range. Average item: Select wave display calculation frequency. Data item: Enter AD voltage or current display position. 6) AD reset and maximum: Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 7) If the Mode option in Fig. 3.136 is selected, execute the following procedure: /*First, reset Offset to 0 */ rt = _DMC_01_rm_04da_set_output_offset_value(gDMCCardNo,DANodeID,SlotID, ChannelDA,0); /* Next, Output Disable */ rt = _DMC_01_rm_04da_set_output_enable(gDMCCardNo,DANodeID,SlotID, ChannelDA,0); /* Set DA selection mode */ rt = _DMC_01_rm_04da_set_output_range(gDMCCardNo,DANodeID,SlotID, ChannelDA,DAmode); If the Apply option in Fig. 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 /* Set AD input range mode*/ rt =_DMC_01_set_04ad_input_range(gDMCCardNo,ADNodeID,SlotID,ChannelAD, mode); If the Average option in Fig. 3.139 is selected, execute the following procedure: /* Set AD waveform output calculation frequency*/ rt =_DMC_01_set_04ad_average_mode(gDMCCardNo,ADNodeID,SlotID, ChannelAD,mode); For the Data display in Fig. 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.28 Spiral Interpolation Motion Control -Spiral 3.28.1 Function List Table 3.28 Function Name _DMC_01_start_spiral_xy _DMC_01_start_spiral2_xy 3.28.2 Sample Application Program Appearance Figure 3.141 1) Card initialization: Click on the “Initial” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Enable motion status display Figure 3.142 Timer Checkbox: Check to display the motion status. Uncheck to disable display. 3) Spiral motion parameter settings: Figure 3.143 Center_X item: Spiral center point's X-coordinate, API function's argument variable “Center_X”. Center_Y item: Spiral center point's Y-coordinate, API function's argument variable “Center_Y”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Spiral2 motion parameter settings: Figure 3.144 Center_X item: Spiral center point's X-coordinate, API function's argument variable “Center_X”. Center_Y item: Spiral center point's Y-coordinate, API function's argument variable “Center_Y”. StrVel item: Starting velocity. API function's argument variable “StrVel”. MaxVel item: Maximum velocity. API function's argument variable “MaxVel”. Acc. item: Time required to reach maximum velocity.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 5) Select motion mode Figure 3.145 Abs. Checkbox: You must check this if you want motion displacement to use absolute coordinates. S-Curve checkbox: You must check this box if you wish to use the S-curve velocity curve. 6) Select Spiral motion mode Figure 3.146 Spiral item: Click this if you wish to perform Spiral motion. Spiral2 item: Click this if you wish to perform Spiral 2 motion.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 9) Stop motion Click on the “STOP” button to execute slow down stop for current point to point motion. rt = _DMC_01_sd_stop(gDMCCardNo, NodeID, SlotID, dec); In this example, deceleration is used to stop displacement motion. Here the velocity is gradually reduced to 0 over the set deceleration time. For a detailed description of Stop motion, please refer to “Chapter 14 Stop Motion API”.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.29 Position Compare 3.29.1 Function List Table 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.29.2 Sample Application Program Appearance Figure 3.147 1) Card initialization: ※First, check to ensure hat the card you have installed is the PCI-DMC-B01 interface card. Click on the “Open card” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Card ID, Node ID, and QEP option: Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Card item: Enter ID of PCI_DMC_B01 card to use. Node item: Select Node ID. This should match the QEP1 or QEP2. QEP1 item: Example: If Channel 0 is selected, then Node ID should be Node 1. QEP2 item: Example: If Channel 1 is selected, Node ID should be Node2. 3) Compare Type Select and Polarity settings: Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 QEP1 Inverse item: Reverse. Click on this button to execute the following settings: rt = _DMC_01_set_compare_channel_direction(CpCardNo,0,dir); // dir:0 or 1 QEP2 Inverse item: Reverse. Click on this button to execute the following settings: rt = _DMC_01_set_compare_channel_direction(CpCardNo,1,dir); // dir:0 or 1 5) Operate data settings: Figure 3.151 Trigger Time item: Enter a Trigger enable time.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Else //Compare2 First, set output to disable rt = _DMC_01_channel1_output_enable(CpCardNo,0); // 0:off 1:on If Level checkbox is checked, then execute the following setting: rt = _DMC_01_channel1_position_compare_table(CpCardNo,pos_table,tab_size); If not checked, then execute the following settings: rt = _DMC_01_channel1_position_compare_table_level(CpCardNo,pos_table, level_table,tab_size); At the end, set output to enable rt = _DMC_01_channe
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.30 Axis Group 3.30.1 Function List Table 3.30 Function Name _DMC_01_set_group 3.30.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization: Click on the “Open card” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Card number, Slave number: Figure 3.154 Card num item: Display number of cards. Slave num item: Display number of slaves. 3) Group settings and reset: Figure 3.155 Nodexx item: Display details for Node ID. Set Group item: 1. Up to 6 groups can be set per card. 2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Exit procedure Click on the “Exit” button to quit and exit the procedure. Exit function requires “_DMC_01_reset_card” and _DMC_01_close” to be used. For a detailed description of these two API please refer to section 3.1.2 4) Exit procedure.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.31 Speed Continue 3.31.1 Function List Table 3.31 Function Name _DMC_01_speed_continue _DMC_01_speed_continue_mode _DMC_01_speed_continue_combine_ratio 3.31.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization: Click on the “Open card” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Card number, Slave number and Timer setting: Figure 3.157 Card num item: Display number of cards. Slave num item: Display number of slaves. Timer Checkbox: Check to display the motion status. Uncheck to disable display.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Demonstration: Figure 3.159 Example 1 item: Clicking on this will enter a Speed Continue demonstration programs shown in Fig. 3.158. The selected Speed Continue parameters will execute the following procedure in order: rt = _DMC_01_start_tr_move_xy(gDMCCardNo, NodeID, SlotID, 0, 10000, 0, 5000, 0.1, 0.1); rt = _DMC_01_start_tr_arc_xy(gDMCCardNo, NodeID, SlotID, 2000, 0, 90, 0, 2500, 0.1, 0.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.32 Spiral Interpolation - Helix Using -Sp1_ Normal Follow 3.32.1 Function List Table 3.32 Function Name _DMC_01_start_tr_heli_xy 3.32.2 Sample Application Program Appearance Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 1) Card initialization: Click on the “Open card” button to start card initialization. For a detailed description of card initialization, please refer to Section 3.1.2 - 1) Open card. 2) Card number, Slave number: Figure 3.161 Card num item: Display number of cards. Slave num item: Display number of slaves. 3) Example of parameter setting and operation: Figure 3.162 Select example item: Can choose Example1 or Example2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Remarks: If Z-axis completes one revolution CW over the distance of Pitch, then if Dr = 0 Depth is a positive number as well. If Dir = 1 then Depth is a negative number; if Z-axis completes one revolution CCW over the distance of pitch, then the opposite is true. When Example 1 and Normal are selected, the result is as shown below: Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 When Example 2 and Tangent are selected, the result is as shown below: Figure 3.164 Example 1: In this example, X and Y axes are used to make the tool move along rounded corner and straight lines. The tool on the Z-axis is always at a normal or tangent to the outer edge of the shape. (The following explanation uses the C language and is executed using a state machine.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 /* MotionStep1. Move the three axes to job start point */ _DMC_01_start_sa_move(CardNo, NodeID3[0], SlotID3[0], 0, 0, MaxVel, 0.1, 0.1); _DMC_01_start_sa_move(CardNo, NodeID3[1], SlotID3[1], 0, 0, MaxVel, 0.1, 0.1); _DMC_01_start_sa_move(CardNo, NodeID3[2], SlotID3[2], -13500, 0, MaxVel, 0.1, 0.1); /* MotionStep2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 Example 2: In this example, X and Y axes are used to make the tool move along rounded corner and straight lines. The tool on the Z-axis is always at a normal or tangent to the shape. (The following explanation uses the C language and is executed using a state machine. Please see Sample for details) /* MotionStep1. Move the three axes to job start point */ _DMC_01_start_sa_move(CardNo, NodeID3[0], SlotID3[0], 0, 0, MaxVel, 0.1, 0.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 /* MotionStep4. Wait for first step of job to finish executing */ rt[0] = _DMC_01_get_command(CardNo, NodeID3[0], SlotID3[0], &Cmd[0]); rt[1] = _DMC_01_get_command(CardNo, NodeID3[1], SlotID3[1], &Cmd[1]); if ((rt[0] + rt[1] == 0) && (Cmd[0] == 30000) && (Cmd[1] == 0)) { MotionStep = 5; } /* MotionStep5. Rotate Z-axis to keep tool on a tangent (or normal) */ rt[0] = _DMC_01_start_tr_move(CardNo, NodeID3[2], SlotID3[2], -Pitch*(90.0/360.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 /* MotionStep10. Wait for Z-axis tool to move into position (End action) */ rt[2] = _DMC_01_get_command(CardNo, NodeID3[2], SlotID3[2], &Cmd[2]); if ((rt[2] == 0) && (Cmd[2] == TempSaveData)) { MotionStep = 11; } /* MotionStep11. Start job (Continuous Arc) */ _DMC_01_start_tr_heli_xy(CardNo, NodeID3, SlotID3, 0, -10000, -Pitch*(90.0/360.0), Pitch, 1, MaxVel/2, MaxVel, 0.1, 0.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 3.33 Logger 3.33.1 Function List Table 3.99 Function Name _misc_set_record_debuging _misc_open_record_debuging_file 3.33.2 Sample Application Program Appearance Figure 3.165 1) Card initialization: Click on the “Initial” button to open and initialize the card. For a detailed description of card initialization, please refer to “Open card” and “Card initialization” in Section 3.1.2.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 2) Debug enable and disable Figure 3.166 If you wish to enable the Debug function, you must execute the following procedure: rt = _misc_set_record_debuging(enable); // If the value of enable argument is 1, debug is enabled 3) Enter the path of the record file and select output method for record Figure 3.
Chapter 3 Operating Principles | PCI-DMC-A01 / PCI-DMC-B01 4) Start any kind of motion control under PDO mode 5) Log record output Fig. 3.998 is shows the log of functions and value changes used by motion control displayed in the debug window of the Visual Studio 6 development environment. Fig. 3.123 shows that the functions and value changes of the log record will be output to a file named “log-output.txt”. Figure 3.168 Figure 3.
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 4 Control API 4.1 Data Type and Range Under the “inc\VC\” folder in the installation is a file named “TYPE_DEF.H”. The file defines all the standard data types. Table 4.1 below shows the types, names, meanings, and ranges defined in the file. Table 4.
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 4.2 Function Description Table 4.
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_send_message3 Send SDO command message to data buffer and exit data buffer once command is set _DMC_01_read_message Read last SDO command message into data buffer _DMC_01_read_message2 Read the last SDO command message into data buffer and return number of reads _DMC_01_get_message Get SDO command message and place in data buffer _DMC_01_reset_sdo_choke When SDO command is blocked, reset SDO _DMC_01_get_sdo_retry_history Get number of SDO
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_sd_stop All motion commands in buffer will execute slow down stop based on deceleration time _DMC_01_sd_abort Current motion command will execute deceleration time stop _DMC_01_set_sd_mode Set Sd_stop mode Motion Status API _DMC_01_motion_done Return current motion stage of the Master Card _DMC_01_motion_status Return current motion status of the Master Card Motion Counter Value API _DMC_01_get_command Get Command counter value _DMC_01_s
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_start_sr_move_2seg 2nd motion displacement using relative coordinates with S-curve velocity cross-section _DMC_01_start_ta_move_2seg 2nd motion displacement using absolute coordinates with T-curve velocity cross-section _DMC_01_start_sa_move_2seg 2nd motion displacement using absolute coordinates with S-curve velocity cross-section _DMC_01_start_tr_move_2seg2 2nd motion displacement using relative coordinates with T-curve velocity cross-secti
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_start_tr_arc2_xy 2-axis arc interpolation motion using relative coordinates with T-curve velocity cross-section (Known conditions: Endpoint coordinates, angle) _DMC_01_start_sr_arc2_xy 2-axis arc interpolation motion using relative coordinates with S-curve velocity cross-section (Known conditions: Endpoint coordinates, angle) _DMC_01_start_ta_arc2_xy 2-axis arc interpolation motion using absolute coordinates with T-curve velocity cross-section
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_start_v3_arc3_xy 2-axis arc interpolation motion with EndVel added (Known conditions: Center point coordinates, endpoint coordinates) _DMC_01_start_v3_spiral_xy 2-axis spiral motion with EndVel added (Known conditions: Center coordinates for X and Y axes) _DMC_01_start_v3_spiral2_xy 2-axis spiral motion with EndVel added (Known conditions: Center coordinates for X and Y axes, endpoint coordinates for X and Y axes) 3-Axis Linear Interpolation M
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_set_rm_input_filter Set software filter level for input port of the remote I/O module _DMC_01_set_rm_input_filter_enable Enable software mask for bit 0 to bit 15 of the remote I/O module's input port _DMC_01_set_rm_output_value Set the value for bit 0 to bit 15 of the remote I/O module's output port _DMC_01_set_rm_output_value_error_ha ndle Set the output value returned when remote I/O module encounters an error _DMC_01_get_rm_output_value
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_rm_04pi_md1_start_arc2 Perform 2-axis arc interpolation motion control under RM04PI Mode 1 (Known conditions: Endpoint coordinates, angle) _DMC_01_rm_04pi_md1_start_arc3 Perform 2-axis arc interpolation motion control under RM04PI Mode 1 (Known conditions: Center point coordinates, endpoint coordinates) _DMC_01_rm_04pi_md1_start_heli Perform 3-axis spiral interpolation motion control under RM04PI Mode 1 _DMC_01_rm_04pi_md1_p_change Replace cu
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 4-Channel Analog Input Remote Module API _DMC_01_set_04ad_input_range Set AD input range _DMC_01_get_04ad_input_range Get current AD Input range _DMC_01_set_04ad_zero_scale Set AD zero level for range calibration _DMC_01_get_04ad_zero_scale_status Check if AD zero calibration is complete _DMC_01_set_04ad_full_scale Set AD maximum level for range calibration _DMC_01_get_04ad_full_scale_status Check if AD maximum level calibration is complete _DMC
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_get_int_count Interrupt count. _DMC_01_get_int_status Get current interrupt status _DMC_01_Link_interrupt Link handling procedure. Called if interrupt enabled.
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 _DMC_01_set_compare_channel_direction Set Channel pulse direction _DMC_01_set_compare_channel_trigger_ time Set Trigger enable time _DMC_01_set_compare_channel_one_ shot Set Trigger to one-time enable _DMC_01_set_compare_channel_source Compare source _DMC_01_channel0_position_cmp Set Compare Type to Compare0 _DMC_01_channel1_output_enable Set Compare1 output to enable/disable _DMC_01_channel1_output_mode Compare1 output mode _DMC_01_channel1_g
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 Other API _misc_app_get_circle_endpoint Get endpoint coordinates (X, Y) required for arc interpolation _misc_app_get_circle_center_point Get center point coordinates (X, Y) required for arc interpolation _misc_set_record_debuging Is Debug log function enabled _misc_open_record_debuging_file Set Debug output log file path _DMC_01_enable_dda_mode Enable DDA Table writing function _DMC_01_set_dda_data Enter DDA Table data _DMC_01_get_dda_cnt Get n
Chapter 4 Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 5 Hardware Initialization API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 5 Hardware Initialization API Table 5.
Chapter 5 Hardware Initialization API | PCI-DMC-A01 / PCI-DMC-B01 5.1 _DMC_01_open FORMAT I16 PASCAL _DMC_01_open (I16* existcard) Purpose Initializes system resources when program is run. Parameters Name Data Type Unit Description I16* cards To get the number of these cards installed in the system Existcard Example I16 existCards; I16 status = _DMC_01_open (&existCards); 5.2 _DMC_01_close FORMAT Void PASCAL _DMC_01_close () Purpose Releases all system resources.
Chapter 5 Hardware Initialization API | PCI-DMC-A01 / PCI-DMC-B01 5.3 _DMC_01_get_CardNo_seq FORMAT I16 PASCAL _DMC_01_get_CardNo_seq(U16 CardNo_seq,U16* CardNo) Purpose Retrieves the number of all PCI-DMC-A01 interface cards in the system. Parameters Name Data Type Unit Description CardNo_seq U16 Number Unit Serial number CardNo U16* Number Unit Interface Card No is between 0~15 and is Set using SW1.
Chapter 5 Hardware Initialization API | PCI-DMC-A01 / PCI-DMC-B01 5.4 _DMC_01_pci_initial FORMAT I16 PASCAL _DMC_01_pci_initial (U16 CardNo) Purpose Initializes this PCI card. Parameters Name CardNo Data Type Unit U16 Number Unit Description CardNo is between 0~15 Example U16 CardNo = 0; _DMC_01_pci_initial (CardNo); 5.5 _DMC_01_get_card_version FORMAT I16 PASCAL _DMC_01_get_card_version (U16 CardNo, U16 *ver) Purpose Retrieves the motion card version.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 6 Interface API Table 6.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.1 _DMC_01_initial_bus FORMAT I16 PASCAL _DMC_01_initial_bus (U16 CardNo) Purpose Initializes the external bus. Parameters Name CardNo Data Type Unit U16 Number Unit Description CardNo is between 0~15 Example U16 CardNo = 0; I16 status = _DMC_01_initial_bus (CardNo); 6.2 _DMC_01_start_ring FORMAT I16 PASCAL _DMC_01_start_ring (U16 CardNo, U8 RingNo) Purpose Starts ring communication.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.3 _DMC_01_get_device_table FORMAT I16 PASCAL _DMC_01_get_device_table (U16 CardNo, U16* value) Purpose Retrieves the device table. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 value U16* Number Unit Device number table Example U16 CardNo=0; U16 value=0; I16 status = _DMC_01_get_device_table (CardNo, &value); 6.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.5 _DMC_01_check_card_running FORMAT I16 PASCAL _DMC_01_check_card_running (U16 CardNo, U16* running) Purpose Checks to see if the card is running. Parameters Name Data Type Unit CardNo U16 Number Unit running U16* Selection Description CardNo is between 0~15 0: Not executed 1: Already executed Example U16 CardNo=0; U16 running=0; I16 status= _DMC_01_check_card_running (CardNo, &running) 6.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.7 _DMC_01_check_nodeno FORMAT I16 PASCAL _DMC_01_check_nodeno(U16 CardNo, U16 NodeID,U16 SlotID,U16* exist) Purpose Checks to see if the node already exists.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.8 _DMC_01_get_master_connect_status FORMAT I16 PASCAL _DMC_01_get_master_connect_status (U16 CardNo, U16* Protocol) Purpose Retrieves the connection status between the Master Card and the expansion module.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.10 _DMC_01_get_mailbox_cnt FORMAT I16 PASCAL _DMC_01_get_mailbox_cnt (U16 CardNo, U32* PC_cnt, U32* DSP_cnt) Purpose Retrieves the MailBox counter value.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.12 _DMC_01_set_dio_output FORMAT I16 PASCAL _DMC_01_set_dio_output (U16 CardNo, U16 On_Off) Purpose Sets GPIO output pin status. Parameters Name Data Type Unit CardNo U16 Number Unit On_Off U16 Selection Description CardNo is between 0~15 0: Disable 1: Enable Example U16 CardNo=0; U16 On_Off =1; I16 status= _DMC_01_set_dio_output (CardNo, On_Off); 6.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.14 _DMC_01_get_dio_input FORMAT I16 PASCAL _DMC_01_get_dio_input (U16 CardNo, U16* On_Off) Purpose Retrieves GPIO input pin status. Parameters Name Data Type Unit CardNo U16 Number Unit On_Off U16* Selection Description CardNo is between 0~15 0: Disable 1: Enable Example U16 CardNo=0; U16 On_Off =0; I16 status= _DMC_01_get_dio_input (CardNo, &On_Off); 6.
Chapter 6 Interface API | PCI-DMC-A01 / PCI-DMC-B01 6.16 _DMC_01_initial_bus2 FORMAT I16 PASCAL _DMC_01_initial_bus2 ( ) Purpose Initializes all external buses. Parameters Function has no parameters. Example I16 status= _DMC_01_initial_bus2 ( ); 6.17 _DMC_01_motion_cnt FORMAT I16 PASCAL _DMC_01_motion_cnt (U16 CardNo, U16 NodeID, U16 SlotID, U16 *pc_mc_cnt, U16 *dsp_mc_cnt) Purpose Retrieves MailBox and DSP counter values.
Chapter 7 Servo Drive Parameter Read/Write API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 7 Servo Drive Parameter Read/Write API Table 7.
Chapter 7 Servo Drive Parameter Read/Write API | PCI-DMC-A01 / PCI-DMC-B01 7.1 _DMC_01_read_servo_parameter FORMAT I16 PASCAL _DMC_01_read_servo_parameter (U16 CardNo, U16 NodeID, U16 SlotID, U16 group,U16 idx,U32* data) Purpose Reads servo drive parameter.
Chapter 7 Servo Drive Parameter Read/Write API | PCI-DMC-A01 / PCI-DMC-B01 7.2 _DMC_01_write_servo_parameter FORMAT I16 PASCAL _DMC_01_write_servo_parameter (U16 CardNo, U16 NodeID, U16 SlotID, U16 group,U16 idx,U32 data) Purpose Writes servo drive parameter.
Chapter 7 Servo Drive Parameter Read/Write API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 8 Using SDO Protocol API Table 8.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.1 CANopen SDO protocol ※Sample SDO Packet Format for CANopen 1 – Index Read/Write successful When Index read is “Successful”, the return value is in the following format: Table 8.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 (5) Data1~Data4 fields use low Word first. Higher Data that are invalid is replaced by 0. Based on the above, the control code returned by the array to indicate data has been written is a ControlWord with the value 0x00000008. (6) The Index data length is based on Delta Electronics' ASDA-A2 CANopen Technical Guide.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 ※Sample SDO Packet Format for CANopen2 – Index Read/Write failure When index read is “Failed” (no such index), the return value is in the following format: Table 8.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 ※Sample SDO Packet Format for CANopen 3 – Read/Write ASDA-A2 Parameter When reading the ASDA-A2 parameter, the return value is in the following format: Table 8.6 Field name: Datatype Index low Index high Sub index Data1 Data2 Data3 Data4 Command 0x40 0x00 0x23 0x00 0x00 0x00 0x00 0x00 Return 0x4b 0x00 0x23 0x00 0x7F 0x00 0x00 0x00 Table description: (1) Can use the standard CANopen SDO format to read from A2 parameter.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.2 _DMC_01_check_canopen_lock FORMAT I16 PASCAL _DMC_01_check_canopen_lock (U16 CardNo, U16 *lock) Purpose Checks to see if the next command can be executed under SDO mode. Parameters Name Data Type Unit U16 Number Unit CardNo lock U16* Selection Description CardNo is between 0~15 0: Not locked. Can execute next command. 1: Locked, must wait for current execution to finishing executing.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.3 _DMC_01_get_canopen_ret FORMAT I16 PASCAL _DMC_01_get_canopen_ret (U16 CardNo, U16* COBID, U8* value) Purpose Retrieves data returned by CANOPEN (SDO related data).
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.4 _DMC_01_set_pdo_mode FORMAT I16 PASCAL _DMC_01_set_pdo_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 Enable) Purpose Sets the use of CANopen protocol (PDO or SDO).
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.5 _DMC_01_send_message FORMAT I16 PASCAL _DMC_01_send_message (U16 CardNo, U16 NodeID,U16 SlotID, U16 Index,U16 SubIdx,U16 DataType,U16 Value0,U16 Value1,U16 Value2,U16 Value3) Purpose Sends SDO command message to the data buffer.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.6 _DMC_01_send_message3 FORMAT I16 _DMC_01_send_message3 (I16 CardNo, U16 Index,U16 SubIdx,U16 DataType, U16 Value0,U16 Value1,U16 Value2,U16 Value3) Purpose Sends SDO command message to the data buffer and exits the data buffer once the command is sent.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.7 _DMC_01_read_message FORMAT I16 PASCAL _DMC_01_read_message (I16 CardNo, U16* Cmd, U16* COBID, U16* DataType,U16* Value0,U16* Value1,U16* Value2,U16* Value3) Purpose Reads the last SDO command message into the data buffer.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.8 _DMC_01_read_message2 FORMAT I16 PASCAL _DMC_01_read_message2 (I16 CardNo, U16 NodeID, U16 *Cmd, U16 *COBID ,U16 *DataType,U16 *Value0,U16 *Value1,U16 *Value2,U16 *Value3,U16 *cnt) Purpose Reads the last SDO command message into the data buffer and returns the number of reads.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.9 _DMC_01_get_message FORMAT I16 PASCAL _DMC_01_get_message (I16 CardNo, U16 NodeID, U16 SlotID, U16 Index, U16* Cmd, U16* COBID, U16* DataType, U16* Value0, U16* Value1, U16* Value2, U16* Value3) Purpose Retrieves the SDO command message and places it in the data buffer.
Chapter 8 Using SDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 8.10 _DMC_01_reset_sdo_choke FORMAT I16 PASCAL _DMC_01_reset_sdo_choke (U16 CardNo) Purpose Resets SDO when SDO command is blocked. Parameters Name CardNo Data Type Unit U16 Number Unit Description CardNo is between 0~15 Example U16 CardNo=0; I16 status= _DMC_01_reset_sdo_choke (CardNo); 8.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 9 Point to Point Motion Control Packet Protocol API Table 9.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 9.1 _DMC_01_set_sdo_driver_speed_profile FORMAT I16 PASCAL _DMC_01_set_sdo_driver_speed_profile (U16 CardNo, U16 NodeID, U16 SlotID, U32 MaxVel, F64 acc, F64 dec) Purpose Sets the speed profile for packet protocol.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 9.2 _DMC_01_start_sdo_driver_r_move FORMAT I16 PASCAL _DMC_01_start_sdo_driver_r_move (U16 CardNo, U16 NodeID, U16 SlotID, I32 Distance) Purpose Starts relative motion displacement.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 9.3 _DMC_01_start_sdo_driver_a_move FORMAT I16 PASCAL _DMC_01_start_sdo_driver_a_move (I16 CardNo, U16 NodeID, U16 SlotID, I32 Position) Purpose Starts absolute motion displacement.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 9.4 _DMC_01_start_sdo_driver_new_position_move FORMAT I16 PASCAL _DMC_01_start_sdo_driver_new_position_move (I16 CardNo, U16 NodeID, U16 SlotID, I32 Position,U16 abs_rel) Purpose Performs motion displacement with new position value.
Chapter 9 Point to Point Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 10 Homing Motion Control Packet Protocol API Table 10.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 10.1 _DMC_01_set_home_config FORMAT I16 PASCAL _DMC_01_set_home_config (U16 CardNo,U16 NodeID,U16 SlotID , U16 Mode,I32 offset,U16 lowSpeed,U16 highSpeed,F64 acc) Purpose Sets home configuration.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 NOTE #1. Homing mode using negative limit and index pulse message Using this method, if the negative limit switch is disabled (low voltage level), then it will begin by moving left. The home position is the index pulse offset to the right when it touches the negative limit switch. Figure 10.1 #2.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 #3 and #4. Homing using positive voltage level at Home Switch and index pulse message When using method 3 or 4, the initial direction will depend on the current status of the Home switch. The Home position depends on the index pulse to the left or right when the Home switch status changes. If the initial position of the Homing is index pulse then it must reverse direction of motion.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 #7 to 14. Homing mode based on index pulse and Home switch These methods use a Home switch that is only activated during some types of motion. In actual fact, it can be activated when Position passes the switch on that axis. With methods 7 to 10, initial movement is to the right. With methods 11 to 14, initial movement is to the left.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 #15 and 16. Reserved This is reserved for adding other homing modes in the future. #17 to 30. Homing mode independent of index pulse These methods are similar to methods 1 to 14. The difference being that these Homing modes do not require an index pulse. Homing depends solely on switching Home and limit switches. Example: Method 19 and 20 uses a homing mode similar to methods 3 and 4 as shown below in Fig. 11.7. Figure 10.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 10.2 _DMC_01_set_home_move FORMAT I16 PASCAL _DMC_01_set_home_move (U16 CardNo, U16 NodeID, U16 SlotID) Purpose Starts home motion.
Chapter 10 Homing Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 10.3 _DMC_01_escape_home_move FORMAT I16 PASCAL _DMC_01_escape_home_move (U16 CardNo, U16 NodeID, U16 SlotID) Purpose Stops homing motion.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 11 Velocity Motion Control Packet Protocol API Table 11.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 11.1 _DMC_01_set_velocity_mode FORMAT I16 PASCAL _DMC_01_set_velocity_mode (U16 CardNo, U16 NodeID, U16 SlotID, F64 Tacc,F64 Tdec) Purpose Sets the velocity motion control parameter profile.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 11.2 _DMC_01_set_velocity FORMAT I16 PASCAL _DMC_01_set_velocity (U16 CardNo, U16 NodeID, U16 SlotID,I32 rpm) Purpose Starts velocity motion control.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 11.3 _DMC_01_set_velocity_stop FORMAT I16 PASCAL _DMC_01_set_velocity_stop (U16 CardNo,U16 NodeID,U16 SlotID,U16 stop) Purpose Stops velocity motion control.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 11.4 _DMC_01_set_velocity_torque_limit FORMAT I16 PASCAL _DMC_01_set_velocity_torque_limit (U16 CardNo, U16 NodeID, U16 SlotID, U32 torque_limit) Purpose Sets the torque limit for velocity mode.
Chapter 11 Velocity Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 12 Torque Motion Control Packet Protocol API Table 12.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 12.1 _DMC_01_set_torque_mode FORMAT I16 PASCAL _DMC_01_set_torque_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 slope) Purpose Sets the torque motion control parameter profile (slope value). Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID slope U16 ms Time required to go from 0 to 100% rate torque.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 12.2 _DMC_01_set_torque FORMAT I16 PASCAL _DMC_01_set_torque (U16 CardNo, U16 NodeID, U16 SlotID, I16 ratio) Purpose Starts torque motion. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID ratio I16 Number Thousandths of rated torque.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 12.3 _DMC_01_set_torque_stop FORMAT I16 PASCAL _DMC_01_set_torque_stop (U16 CardNo, U16 NodeID, U16 SlotID, U16 stop) Purpose Stops torque motion. Parameters Name CardNo Data Type U16 Unit Number Unit Description CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID stop U16 Selection 0: Current motion status.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 12.4 _DMC_01_set_torque_velocity_limit FORMAT I16 PASCAL _DMC_01_set_torque_velocity_limit (U16 CardNo, U16 NodeID, U16 SlotID, U32 velocity_limit) Purpose Sets the velocity limit in torque mode.
Chapter 12 Torque Motion Control Packet Protocol API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 13 Using PDO Protocol API Table 13.
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 13.1 _DMC_01_ipo_set_svon FORMAT I16 PASCAL _DMC_01_ipo_set_svon (U16 CardNo, U16 NodeID, U16 SlotID, U16 ON_OFF) Purpose Sets Servo ON/OFF under PDO protocol mode.
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 13.2 _DMC_01_get_buffer_length FORMAT I16 PASCAL _DMC_01_get_buffer_length (U16 CardNo, U16 NodeID, U16 SlotID, U16* bufferLength) Purpose Retrieves the motion command which has yet to be executed.
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 13.3 _DMC_01_command_buf_clear FORMAT I16 PASCAL _DMC_01_command_buf_clear (U16 CardNo, U16 NodeID, U16 SlotID) Purpose Resets dwell time (buffer dwell counter value).
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 13.4 _DMC_01_buf_dwell FORMAT I16 PASCAL _DMC_01_buf_dwell (I16 CardNo, U16 NodeID, U16 SlotID, I32 dwell_cnt) Purpose The interval time between two motion commands.
Chapter 13 Using PDO Protocol API | PCI-DMC-A01 / PCI-DMC-B01 13.5 _DMC_01_set_group FORMAT I16 PASCAL _DMC_01_set_group (U16 CardNo, U16* NodeID,U16* SlotID, U16 NodeID_Num, U16 enable) Purpose Sets a group. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID NodeID_Num U16 Number Enable U16 Number Unit Group number 0: Clear group. 1: Set as group.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 14 Stop Motion Control API Table 14.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 14.1 _DMC_01_emg_stop FORMAT I16 PASCAL _DMC_01_emg_stop (U16 CardNo, U16 NodeID, U16 SlotID) Purpose All motion commands in the buffer will execute an emergency stop.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 14.2 _DMC_01_sd_stop FORMAT I16 PASCAL _DMC_01_sd_stop (U16 CardNo, U16 NodeID,U16 SlotID,F64 Tdec) Purpose All motion commands in the buffer will execute a slow down stop based on deceleration time.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 14.3 _DMC_01_sd_abort FORMAT I16 PASCAL _DMC_01_sd_abort (U16 CardNo, U16 NodeID, U16 SlotID, F64 Tdec) Purpose Current motion command will execute a slow down stop. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID Tdec F64 Second Specified deceleration time Example U16 CardNo=0, U16 NodeID =1, SlotID=0; F64 Tdec=0.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 14.4 _DMC_01_set_sd_mode FORMAT I16 PASCAL _DMC_01_set_sd_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 mode) Purpose Sets the Sd_stop(slow down stop) mode.
Chapter 14 Stop Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeID =1, SlotID=0; U16 Mode=1; F64 Tdec=0.
Chapter 15 Motion Status API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 15 Motion Status API Table 15.
Chapter 15 Motion Status API | PCI-DMC-A01 / PCI-DMC-B01 15.1 _DMC_01_motion_done FORMAT I16 PASCAL _DMC_01_motion_done (U16 CardNo, U16 NodeID, U16 SlotID, U16* MC_status) Purpose Returns the current stage of motion of the Master Card.
Chapter 15 Motion Status API | PCI-DMC-A01 / PCI-DMC-B01 15.2 _DMC_01_motion_status FORMAT I16 PASCAL _DMC_01_motion_status (U16 CardNo, U16 NodeID, U16 SlotID, U32* MC_status) Purpose Returns current motion status of the Master Card.
Chapter 15 Motion Status API | PCI-DMC-A01 / PCI-DMC-B01 Figure 15.1 Motion status For a description of “Mode specific” bits” (bit 12 and bit 13), please see Table 15.2. With the mode selection bits (bit 0 ~ bit 3) there are only 2 modes for the user to choose from. These are MODE1 (bit 0 is ON) and MODE6 (bit 1 and bit 2 are ON) Table 15.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 16 Motion Counter Value API Table 16.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.1 _DMC_01_get_command FORMAT I16 PASCAL _DMC_01_get_command (U16 CardNo, U16 NodeID, U16 SlotID, I32* cmd) Purpose Retrieves the Command counter value.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.3 _DMC_01_get_position FORMAT I16 PASCAL _DMC_01_get_position (U16 CardNo, U16 NodeID, U16 SlotID, I32* pos) Purpose Retrieves the current position counter value.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.5 _DMC_01_get_target_pos FORMAT I16 PASCAL _DMC_01_get_target_pos (U16 CardNo, U16 NodeID, U16 SlotID, I32* pos) Purpose Retrieves the current value of the target position.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.6 _DMC_01_get_torque FORMAT I16 PASCAL _DMC_01_get_torque (U16 CardNo, U16 NodeID, U16 SlotID, U16* torque) Purpose Retrieves and returns the current torque counter value.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.7 _DMC_01_get_current_speed FORMAT I16 PASCAL _DMC_01_get_current_speed (U16 CardNo, U16 NodeID, U16 SlotID, I32* speed) Purpose Retrieves motion speed.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 16.8 _DMC_01_get_current_speed_rpm FORMAT I16 PASCAL _DMC_01_get_current_speed_rpm (U16 CardNo, U16 NodeID, U16 SlotID, I32 *rpm) Purpose Retrieves current RPM x 10.
Chapter 16 Motion Counter Value API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 17 Software Limit API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 17 Software Limit API Table 17.
Chapter 17 Software Limit API | PCI-DMC-A01 / PCI-DMC-B01 17.1 _DMC_01_set_soft_limit FORMAT I16 PASCAL _DMC_01_set_soft_limit (U16 CardNo, U16 NodeID, U16 SlotID, I32 PLimit, I32 NLimit) Purpose Sets reference values for software positive/negative limits.
Chapter 17 Software Limit API | PCI-DMC-A01 / PCI-DMC-B01 17.2 _DMC_01_enable_soft_limit FORMAT I16 PASCAL _DMC_01_enable_soft_limit (U16 CardNo, U16 NodeID, U16 SlotID, I16 Action) Purpose Enables/disables the software limit and stop method after touching the limit.
Chapter 17 Software Limit API | PCI-DMC-A01 / PCI-DMC-B01 17.4 _DMC_01_get_soft_limit_status FORMAT I16 PASCAL _DMC_01_get_soft_limit_status (U16 CardNo, U16 NodeID, U16 SlotID, U16* PLimit_sts,U16* NLimit_sts) Purpose Retrieves the positive/negative status of the software limit during motion.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 18 1-Axis Motion Control API Table 18.1 Function Name Description _DMC_01_start_tr_move Motion displacement using relative coordinates with T-curve velocity cross-section. _DMC_01_start_sr_move Motion displacement using relative coordinates with S-curve velocity cross-section. _DMC_01_start_ta_move Motion displacement using absolute coordinates with T-curve velocity cross-section.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.1 _DMC_01_start_tr_move FORMAT I16 PASCAL _DMC_01_start_tr_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose Motion displacement using relative coordinates with T-curve velocity cross-section. Please see Fig. 18.1 for more detailed information. ※When setting StrVel, make sure its value is smaller than MaxVel.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.2 _DMC_01_start_sr_move FORMAT I16 PASCAL _DMC_01_start_sr_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose Motion displacement using relative coordinates with S-curve velocity cross-section. Please see Fig. 18.2 for more detailed information.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.3 _DMC_01_start_ta_move FORMAT I16 PASCAL _DMC_01_start_ta_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose Motion displacement using absolute coordinates with T-curve velocity cross-section.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.5 _DMC_01_p_change FORMAT I16 PASCAL _DMC_01_p_change (U16 CardNo, U16 NodeID, U16 SlotID, I32 NewPos) Purpose Replaces the current position with a new position value.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.6 _DMC_01_v_change FORMAT I16 PASCAL _DMC_01_v_change (U16 CardNo, U16 NodeID, U16 SlotID, I32 NewSpeed, F64 sec) Purpose Replaces the current motion velocity with a new velocity value.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 NOTE ※ The V-change command can be used in both single- and multi-axis motions. For multi-axis motion, simply issue the command to the main servo.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.7 _DMC_01_start_tr_move_2seg FORMAT I16 PASCAL _DMC_01_start_tr_move_2seg(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using relative coordinates with T-curve velocity cross-section.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeID =1; U16 SlotID=0; I32 Dist=500000; I32 Dist2=500000 I32 StrVel=1000; I32 MaxVel=10000; I32 MaxVel2=30000; F64 Tacc=0.1; F64 Tsec=0.1; F64 Tdec=0.1; I16 status= _DMC_01_start_tr_move_2seg (CardNo, NodeID, SlotID, Dist, Dist2, StrVel, MaxVel, MaxVel2, Tacc, Tsec, Tdec); ※Please note that Dist and Dist2 in the API parameters must be in the “same direction”. An example of incorrect settings is shown in Fig. 18.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.8 _DMC_01_start_sr_move_2seg FORMAT I16 PASCAL _DMC_01_start_sr_move_2seg(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using relative coordinates with S-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.9 _DMC_01_start_ta_move_2seg FORMAT I16 PASCAL _DMC_01_start_ta_move_2seg(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using absolute coordinates with T-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.10 _DMC_01_start_sa_move_2seg FORMAT I16 PASCAL _DMC_01_start_sa_move_2seg(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using absolute coordinates with S-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.11 _DMC_01_start_tr_move_2seg2 FORMAT I16 PASCAL _DMC_01_start_tr_move_2seg2 (U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using relative coordinates with T-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID =1, SlotID=0; I32 Dist=500000, Dist2=500000 I32 StrVel=1000; I32 MaxVel=10000, MaxVel2=30000; F64 Tacc=0.1; F64 Tsec=0.1; F64 Tdec=0.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.12 _DMC_01_start_sr_move_2seg2 FORMAT I16 PASCAL _DMC_01_start_sr_move_2seg2 (U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using relative coordinates with S-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.13 _DMC_01_start_ta_move_2seg2 FORMAT I16 PASCAL _DMC_01_start_ta_move_2seg2 (U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using absolute coordinates with T-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.14 _DMC_01_start_sa_move_2seg2 FORMAT I16 PASCAL _DMC_01_start_sa_move_2seg2 (U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 Dist2, I32 StrVel, I32 MaxVel, I32 MaxVel2, F64 Tacc, F64 Tsec, F64 Tdec) Purpose 2nd motion displacement using absolute coordinates with S-curve velocity cross-section. ※Motion Buffer will be cleared before this function is executed.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.15 _DMC_01_feedrate_overwrite FORMAT I16 PASCAL _DMC_01_feedrate_overwrite (U16 CardNo, U16 NodeID, U16 SlotID, U16 Mode, I32 New_Speed, F64 sec) Purpose Changes motion speed or speed ratio.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 A A ※ Starting at point A, set NewSpeed to 15000. Speed now 200%, or double the original from now on including the buffer Figure 18.8 Mode = 1 change to new speed A ※Starting at point A, set NewSpeed to 200. Speed now 200%, or double the original from now on for all commands including those in the buffer. Figure 18.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 18.16 _DMC_01_start_v3_move FORMAT I16 PASCAL _DMC_01_start_v3_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose Single-axis motion displacement with EndVel added. ※Values of StrVel and EndVel can be greater than ConstVel.
Chapter 18 1-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 18.10 Explanation of TPhase1 and TPhase2 Example U16 CardNo=0; U16 NodeID =1, SlotID=0; I32 Dist=100000, StrVel=0, ConstVel=50000, EndVel=20000; F64 TPhase1=0.2, TPhase2=0.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 19 2-Axis Linear Interpolation Motion Control API Table 19.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 19.1 _DMC_01_start_tr_move_xy FORMAT I16 PASCAL _DMC_01_start_tr_move_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis linear interpolation motion using relative coordinates with T-curve velocity cross-section. ※When setting StrVel, make sure that its value is smaller than MaxVel.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description As shown in Fig. 19.1, 2-axis linear interpolation means Position moving by X and Y from P0 to P1. The two axes will start and end at the same time. Motion displacement will also be on the same straight line. Y-Axis DistY DistX X-Axis Figure 19.1 Figure 19.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 19.2 _DMC_01_start_sr_move_xy FORMAT I16 PASCAL _DMC_01_start_sr_move_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis linear interpolation motion using relative coordinates with S-curve velocity cross-section.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2] ={0, 0}; I32 DisX=50000; I32 DisY 100000; I32 StrVel=0; I32 MaxVel=50000; F64 Tacc=0.1; F64 Tdec=0.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 19.3 _DMC_01_start_ta_move_xy FORMAT I16 PASCAL _DMC_01_start_ta_move_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis linear interpolation motion using absolute coordinates with T-curve velocity cross-section.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2] ={0, 0}; I32 DisX=50000; I32 DisY 100000; I32 StrVel=0; I32 MaxVel=50000; F64 Tacc=0.1; F64 Tdec=0.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 19.4 _DMC_01_start_sa_move_xy FORMAT I16 PASCAL _DMC_01_start_sa_move_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis linear interpolation motion using absolute coordinates with S-curve velocity cross-section.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={0,1}; U16 SlotID[2]={0, 0}; I32 DisX=50000; I32 DisY 100000; I32 StrVel=0; I32 MaxVel=50000; F64 Tacc=0.1; F64 Tdec=0.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 19.5 _DMC_01_start_v3_move_xy FORMAT I16 PASCAL _DMC_01_start_v3_move_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose 2-axis linear interpolation motion with EndVel added. ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={0,1}; U16 SlotID[2]={0, 0}; I32 DisX=50000; I32 DisY= 100000; I32 StrVel=0; I32 ConstVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 19 2-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 20 2-Axis Arc Interpolation Motion Control API Table 20.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Function Name _DMC_01_start_tr_arc3_xy Description 2-axis arc interpolation motion using relative coordinates with T-curve velocity cross-section (Known conditions: Center point coordinates, endpoint coordinates) _DMC_01_start_sr_arc3_xy 2-axis arc interpolation motion using relative coordinates with S-curve velocity cross-section (Known conditions: Center point coordinates, endpoint coordinates) _DMC_01_start_ta_arc3_xy
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.1 _DMC_01_start_tr_arc_xy FORMAT I16 PASCAL _DMC_01_start_tr_arc_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with T-curve velocity cross-section (Known conditions: center point coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 20.1 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =50000; I32 Center_Y =50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.2 _DMC_01_start_sr_arc_xy FORMAT I16 PASCAL _DMC_01_start_sr_arc_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with S-curve velocity cross-section (Known conditions: center point coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =50000; I32 Center_Y =50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.3 _DMC_01_start_ta_arc_xy FORMAT I16 PASCAL _DMC_01_start_ta_arc_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with T-curve velocity cross-section (Known conditions: center point coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =50000; I32 Center_Y =50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.4 _DMC_01_start_sa_arc_xy FORMAT I16 PASCAL _DMC_01_start_sa_arc_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with S-curve velocity cross-section (Known conditions: center point coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =50000; I32 Center_Y =50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.5 _DMC_01_start_tr_arc2_xy FORMAT I16 PASCAL _DMC_01_start_tr_arc2_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 End_X, I32 End_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with T-curve velocity cross-section (Known conditions: endpoint coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 20.2 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 End_X =-50000; I32 End_Y =-50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.6 _DMC_01_start_sr_arc2_xy FORMAT I16 PASCAL _DMC_01_start_sr_arc2_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 End_X, I32 End_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with S-curve velocity cross-section (Known conditions: endpoint coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 End_X =-50000; I32 End_Y =-50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.7 _DMC_01_start_ta_arc2_xy FORMAT I16 PASCAL _DMC_01_start_ta_arc2_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 End_X, I32 End_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with T-curve velocity cross-section (Known conditions: endpoint coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 End_X =-50000; I32 End_Y =-50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.8 _DMC_01_start_sa_arc2_xy FORMAT I16 PASCAL _DMC_01_start_sa_arc2_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 End_X, I32 End_Y, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with S-curve velocity cross-section (Known conditions: endpoint coordinates, angle).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 End_X =-50000; I32 End_Y =-50000; I32 StrVel=0; I32 MaxVel=50000; F64 Angle=180; F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.9 _DMC_01_start_tr_arc3_xy FORMAT I16 PASCAL _DMC_01_start_tr_arc3_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y,I32 End_X,I32 End_Y, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with T-curve velocity cross-section (Known conditions: center point coordinates, endpoint coordinates).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 20.3 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000; I32 Center_Y =25000; I32 StrVel=0; I32 MaxVel=50000; I32 End_x=50000; I32 End_y=50000; I16 Dir=1; //This value is 1, indicating a clockwise arc interpolation. F64 Tacc=0.1; F64 Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.10 _DMC_01_start_sr_arc3_xy FORMAT I16 PASCAL _DMC_01_start_sr_arc3_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y,I32 End_X,I32 End_Y, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using relative coordinates with S-curve velocity cross-section (Known conditions: center point coordinates, endpoint coordinates).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000; I32 StrVel=0, MaxVel=50000; I32 End_x=50000, End_y=50000; I16 Dir=1; // This value is 1, indicating a clockwise arc interpolation. F64 Tacc=0.1, Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.11 _DMC_01_start_ta_arc3_xy FORMAT I16 PASCAL _DMC_01_start_ta_arc3_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y,I32 End_X,I32 End_Y, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with T-curve velocity cross-section (Known conditions: center point coordinates, endpoint coordinates).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000; I32 StrVel=0, MaxVel=50000; I32 End_x=50000, End_y=50000; I16 Dir=1; F64 Tacc=0.1, Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.12 _DMC_01_start_sa_arc3_xy FORMAT I16 PASCAL _DMC_01_start_sa_arc3_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y,I32 End_X,I32 End_Y, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 2-axis arc interpolation motion using absolute coordinates with S-curve velocity cross-section (Known conditions: center point coordinates, endpoint coordinates).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000; I32 StrVel=0, MaxVel=50000; I32 End_x=50000, End_y=50000; I16 Dir=1; F64 Tacc=0.1, Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.13 _DMC_01_start_spiral_xy FORMAT I16 PASCAL _DMC_01_start_spiral_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 Center_X, I32 Center_Y, I32 spiral_interval, I32 spiral_angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Carries out 2-axis spiral motion (Known conditions: center coordinates for X and Y axes).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeID[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000, I32 Spiral_interval= 20000,Spiral_angle=1800; I32 StrVel=0, MaxVel=50000; F64 Tacc=0.1, Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.14 _DMC_01_start_spiral2_xy FORMAT I16 PASCAL _DMC_01_start_spiral2_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 center_x, I32 center_y, I32 end_x, I32 end_y, U16 dir, U16 circlenum, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec, U16 m_curve, U16 m_r_a) Purpose Carries out 2-axis spiral motion (Known conditions: center coordinates for X and Y axes; endpoint coordinates for X and Y axes).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeID[2]={1,2}; U16 SlotID[2]={0, 0}; I32 center_x =25000, center_y=25000; I32 end_x =25000, end_y =25000; U16 dir= 1,circelnum=5; I32 StrVel=0, MaxVel=50000; F64 Tacc=0.1, Tdec=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.15 _DMC_01_start_v3_arc_xy FORMAT I16 PASCAL _DMC_01_start_v3_arc_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, F64 Angle, I32 StrVel, I32ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose 2-axis arc interpolation motion with EndVel added (Known conditions: center point coordinates, angle). ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 20.4 Explanation of TPhase1 and TPhase2 Example U16 CardNo=0, NodeIDArray[2]={1,2}, SlotID[2]={0, 0}; I32 Center_X =50000; I32 Center_Y =50000; F64 Angle=180; I32 StrVel=0; I32 MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.16 _DMC_01_start_v3_arc2_xy FORMAT I16 PASCAL _DMC_01_start_v3_arc2_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 End_X, I32 End_Y, F64 Angle, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose 2-axis arc interpolation motion with EndVel added (Known conditions: endpoint coordinates, angle). ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 End_X =-50000; I32 End_Y =-50000; I32 StrVel=0; I32 MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.17 _DMC_01_start_v3_arc3_xy FORMAT I16 PASCAL _DMC_01_start_v3_arc3_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y,I32 End_X,I32 End_Y, I16 Dir, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose 2-axis arc interpolation motion with EndVel added (Known conditions: center point coordinates, endpoint coordinates).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeIDArray[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000; I32 End_x=50000, End_y=50000; I16 Dir=1; I32 StrVel=0, ConstVel=50000 , EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.18 _DMC_01_start_v3_spiral_xy FORMAT I16 PASCAL _DMC_01_start_v3_spiral_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 Center_X, I32 Center_Y, I32 spiral_interval, I32 spiral_angle, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose 2-axis spiral motion with EndVel added (Known conditions: center coordinates for X and Y axes).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeID[2]={1,2}; U16 SlotID[2]={0, 0}; I32 Center_X =25000, Center_Y =25000, I32 Spiral_interval= 20000, Spiral_angle=1800; I32 StrVel=0, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 20.19 _DMC_01_start_v3_spiral2_xy FORMAT I16 PASCAL _DMC_01_start_v3_spiral2_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 center_x, I32 center_y, I32 end_x, I32 end_y, U16 dir, U16 circlenum, I32 StrVel, 32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose 2-axis spiral motion with EndVel added (Known conditions: center coordinates for X and Y axes, endpoint coordinates for X and Y axes).
Chapter 20 2-Axis Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0 U16 NodeID[2]={1,2}; U16 SlotID[2]={0, 0}; I32 center_x =25000, center_y=25000; I32 end_x =25000, end_y =25000; U16 dir= 1, circelnum=5; I32 StrVel=0, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 21 3-Axis Linear Interpolation Motion Control API Table 21.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 21.1 _DMC_01_start_tr_move_xyz FORMAT I16 PASCAL _DMC_01_start_tr_move_xyz(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 DisZ, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis linear interpolation motion using relative coordinates with T-curve velocity cross-section.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 21.2 _DMC_01_start_sr_move_xyz FORMAT I16 PASCAL _DMC_01_start_sr_move_xyz(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 DisZ, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis linear interpolation motion using relative coordinates with S-curve velocity cross-section.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 21.3 _DMC_01_start_ta_move_xyz FORMAT I16 PASCAL _DMC_01_start_ta_move_xyz (U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 DisZ, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis linear interpolation motion using absolute coordinates with T-curve velocity cross-section.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 21.4 _DMC_01_start_sa_move_xyz FORMAT I16 PASCAL _DMC_01_start_sa_move_xyz(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 DisZ, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis linear interpolation motion using absolute coordinates with S-curve velocity cross-section.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 21.5 _DMC_01_start_v3_move_xyz FORMAT I16 PASCAL _DMC_01_start_v3_move_xyz(U16 CardNo, U16* NodeID,U16* SlotID, I32 DisX, I32 DisY, I32 DisZ, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose 3-axis linear interpolation motion with EndVel added. ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 21.4 Explanation of TPhase1 and TPhase2 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 DisX =25000, DisY =50000 , DisZ =75000 ; I32 StrVel=0, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 21 3-Axis Linear Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 22 3-Axis Spiral Interpolation Motion Control API Table 22.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 22.1 _DMC_01_start_tr_heli_xy FORMAT I16 PASCAL _DMC_01_start_tr_heli_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, I32 Depth, I32 Pitch, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis Spiral interpolation motion using relative coordinates with T-curve velocity cross-section.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 22.1 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 Center_X =25000; I32 Center_Y =50000; I32 Depth =10000; I32 Pitch = 20000; I16 Dir=1; //Value is 1, indicating a spiral arc motion in the clockwise direction I32 StrVel=0; I32 MaxVel=50000; F64 Tacc=0.1; F64 Tdec=0.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 22.2 _DMC_01_start_sr_heli_xy FORMAT I16 PASCAL _DMC_01_start_sr_heli_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, I32 Depth, I32 Pitch, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis Spiral interpolation motion using relative coordinates with S-curve velocity cross-section.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 Center_X =25000, Center_Y =50000, Depth =10000, Pitch = 20000; I16 Dir=1; I32 StrVel=0, MaxVel=50000; F64 Tacc=0.1, Tdec=0.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 22.3 _DMC_01_start_ta_heli_xy FORMAT I16 PASCAL _DMC_01_start_ta_heli_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, I32 Depth, I32 Pitch, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis Spiral interpolation motion using absolute coordinates with T-curve velocity cross-section.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 Center_X =25000, Center_Y =50000, Depth =10000, Pitch = 20000; I16 Dir=1; I32 StrVel=0, MaxVel=50000; F64 Tacc=0.1, Tdec=0.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 22.4 _DMC_01_start_sa_heli_xy FORMAT I16 PASCAL _DMC_01_start_sa_heli_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, I32 Depth, I32 Pitch, I16 Dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec) Purpose 3-axis Spiral interpolation motion using absolute coordinates with S-curve velocity cross-section.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 Center_X =25000, Center_Y =50000, Depth =10000, Pitch = 20000; I16 Dir=1; I32 StrVel=0, MaxVel=50000; F64 Tacc=0.1, Tdec=0.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 22.5 _DMC_01_start_v3_heli_xy FORMAT I16 PASCAL _DMC_01_start_v3_heli_xy(U16 CardNo, U16* NodeID,U16* SlotID, I32 Center_X, I32 Center_Y, I32 Depth, I32 Pitch, I16 Dir, I32 StrVel, 32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose 3-axis Spiral interpolation motion with EndVel added. ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 22.2 Explanation of TPhase1 and TPhase2 Example U16 CardNo=0; U16 NodeIDArray[3]={1,2,3}; U16 SlotID[3]={0, 0, 0}; I32 Center_X =25000, Center_Y =50000, Depth =10000, Pitch = 20000; I16 Dir=1; I32 StrVel=0, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 22 3-Axis Spiral Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 23 Velocity Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 23 Velocity Motion Control API Table 23.
Chapter 23 Velocity Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 23.1 _DMC_01_tv_move FORMAT I16 PASCAL _DMC_01_tv_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 StrVel, I32 MaxVel, F64 Tacc,I16 Dir) Purpose Velocity motion control with T-curve velocity cross-section.
Chapter 23 Velocity Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 23.2 _DMC_01_sv_move FORMAT I16 PASCAL _DMC_01_sv_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 StrVel, I32 MaxVel, F64 Tacc,I16 Dir) Purpose Velocity motion control with S-curve velocity cross-section.
Chapter 23 Velocity Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 24 Synchronization Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 24 Synchronization Motion Control API Table 24.
Chapter 24 Synchronization Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 24.1 _DMC_01_sync_move FORMAT I16 PASCAL _DMC_01_sync_move(I16 CardNo) Purpose Starts motion sync. Parameters Name CardNo Data Type Unit U16 Number Unit Description CardNo is between 0~15 Example U16 CardNo=0; I16 status = DMC_01_sync_move (I16 CardNo); 24.2 _DMC_01_sync_move_config FORMAT I16 PASCAL _DMC_01_sync_move_config (I16 CardNo, U16 NodeID,U16 SlotID,I16 enable) Purpose Enables/disables motion sync.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 25 Remote Module Control API Table 25.1 Function Name Description _DMC_01_get_rm_input_value Retrieve the value for bit 0 to bit 15 of the remote I/O module's input port _DMC_01_set_rm_input_filter Set software filter level for input port of the remote I/O module _DMC_01_set_rm_input_filter_enable Enable software mask for bit 0 to bit 15 of the remote I/O module's input port.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.1 _DMC_01_get_rm_input_value FORMAT I16 PASCAL _DMC_01_get_rm_input_value(U16 CardNo, U16 NodeID,U16 SlotID, U16 port,U16 *value) Purpose Retrieves the value for bit 0 to bit 15 of the remote I/O module's input port.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.2 _DMC_01_set_rm_input_filter FORMAT I16 PASCAL _DMC_01_set_rm_input_filter(U16 CardNo, U16 NodeID,U16 SlotID , U16 port,U16 value) Purpose Sets software filter level for input port of the remote I/O module. (When the value of the variable is 0, the software filter time becomes 1 ms. When the value is 1, the software filter time becomes 2 ms, and so on.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.3 _DMC_01_set_rm_input_filter_enable FORMAT I16 PASCAL _DMC_01_set_rm_input_filter_enable(U16 CardNo, U16 NodeID, U16 SlotID,U16 port,U16 enable) Purpose Enables software mask for bit 0 to bit 15 of the remote I/O module's input port.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.4 _DMC_01_set_rm_output_value FORMAT I16 PASCAL _DMC_01_set_rm_output_value(U16 CardNo, U16 NodeID,U16 SlotID, U16 port,U16 value) Purpose Sets the value for bit 0 to bit 15 of the remote I/O module's output port.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.5 _DMC_01_set_rm_output_value_error_handle FORMAT I16 PASCAL _DMC_01_set_rm_output_value_error_handle(U16 CardNo, U16 NodeID, U16 SlotID,U16 port,U16 value) Purpose Sets the output value returned when remote I/O module encounters an error.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.6 _DMC_01_get_rm_output_value FORMAT I16 PASCAL _DMC_01_get_rm_output_value (U16 CardNo, U16 NodeID, U16 SlotID, U16 port, U16* value) Purpose Retrieves output value of the remote I/O module.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.7 _DMC_01_get_rm_output_value_error_handle FORMAT I16 PASCAL _DMC_01_get_rm_output_value_error_handle (U16 CardNo, U16 NodeID, U16 SlotID,U16 port,U16* value) Purpose Retrieves output value of the remote I/O module and determines whether to retain or discard the value if an error occurs.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 25.8 _DMC_01_set_rm_output_active FORMAT I16 PASCAL _DMC_01_set_rm_output_active (U16 CardNo, U16 NodeID, U16 SlotID, U16 Enable) Purpose Enables/disables output from the remote I/O module.
Chapter 25 Remote Module Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 26 MPG and JOG Operation API Table 26.
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 26.1 _DMC_01_set_rm_mpg_axes_enable FORMAT I16 PASCAL _DMC_01_set_rm_mpg_axes_enable (U16 CardNo, U16 MasterNodeID, U16 MasterSlotID, U16* NodeID, U16* SlotID, U16 enable, U16 pulse_ratio, U32 *ratio, U32 *slope) Purpose Sets MPG motion control.
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 Example I16 rt = 0; U16 CardNo = 0, MasterNodeID = 1, MasterSlotID = 0; //RM-64 Node ID is 1 U16 NodeID[4] = {2, 3, 0, 0}, SlotID[4] = {0}; //Use two ASD-A2F servo motors assigned to Node 2 and Node 3. U16 enable = 1, pulse_ratio = 4; //Set ratio of MPG click to output pulse ratio U32 ratio[4] = {1, 1, 0, 0}; //Set ratio of one full MPG turn to pulse output (motor rotations).
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 26.2 _DMC_01_set_rm_mpg_axes_enable2 FORMAT I16 PASCAL _DMC_01_set_rm_mpg_axes_enable2 (U16 CardNo, U16 MasterNodeID, U16 MasterSlotID, U16* NodeID, U16* SlotID, U16 enable,U16 pulse_ratio, U32 *ratio, U32 *slope, U16 *denominator) Purpose MPG motion control (can set numerator for motor rotation ratio).
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 NOTE The above example is explained below: Conditions: Assuming one full turn of MPG is 100 clicks, MPG ratio X10, ratio=10, Denominator=36, pulse_ratio =4, slope=1000, electronic gear ratio is P1.44/P1.45 = 1 1 click of MPG = Number of motor rotation pulses (128000 * 10 / 100 * 10 / 36=355.55) * P1.45/P1.44 *This is sufficient to rotate the disc driven by the motor by 1 degree (1/360 * 1280000=355.
Chapter 26 MPG and JOG Operation API | PCI-DMC-A01 / PCI-DMC-B01 26.3 _DMC_01_set_rm_jog_axes_enable FORMAT I16 PASCAL _DMC_01_set_rm_jog_axes_enable (U16 CardNo, U16 MasterNodeID, U16 MasterSlotID, U16* NodeID, U16* SlotID, U16 enable, U16 jog_mode, I32 *jog_speed, F64 *sec) Purpose Sets JOG motion control.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 27 4-Channel Pulse Interface API Table 27.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.1 _DMC_01_set_rm_04pi_ipulse_mode FORMAT I16 PASCAL _DMC_01_set_rm_04pi_ipulse_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 mode) Purpose Sets input phase mode for pulse interface module.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.2 _DMC_01_set_rm_04pi_opulse_mode FORMAT I16 PASCAL _DMC_01_set_rm_04pi_opulse_mode (U16 CardNo, U16 NodeID, U16 SlotID ,U16 mode) Purpose Sets output phase mode for pulse interface module.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.3 _DMC_01_set_rm_04pi_svon_polarity FORMAT I16 PASCAL _DMC_01_set_rm_04pi_svon_polarity (U16 CardNo, U16 NodeID, U16 SlotID, U16 polarity) Purpose Sets POWER ON (SVON) level.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.4 _DMC_01_set_rm_04pi_DO2 FORMAT I16 PASCAL _DMC_01_set_rm_04pi_DO2 (U16 CardNo, U16 NodeID, U16 SlotID, U16 ON_OFF) Purpose Enables DO2 port configuration.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.5 _DMC_01_set_rm_04pi_homing_ratio FORMAT I16 PASCAL _DMC_01_set_rm_04pi_homing_ratio (U16 CardNo, U16 NodeID, U16 SlotID, U16 ratio) Purpose Sets the rated torque multiplier for Homing mode. ※When using RM04PI to carry out Homing motion this executes “_DMC_01_set_home_config” function.
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.6 _DMC_01_04pi_set_poweron FORMAT I16 PASCAL _DMC_01_04pi_set_poweron (U16 CardNo, U16 NodeID, U16 SlotID, U16 ON_OFF) Purpose Enables/disables PWR ON(SVON).
Chapter 27 4-Channel Pulse Interface API | PCI-DMC-A01 / PCI-DMC-B01 27.7 _DMC_01_rm_04PI_get_buffer FORMAT I16 PASCAL _DMC_01_rm_04PI_get_buffer (U16 CardNo, U16 NodeID, U16 SlotID, U16 *bufferLength) Purpose Retrieves the buffered motion command.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API Table 28.1 Function Name Description _DMC_01_rm_04pi_md1_start_move Perform 1-axis motion control under RM04PI Mode 1. _DMC_01_rm_04pi_md1_v_move Perform velocity motion control under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Function Name Description _DMC_01_rm_04pi_md1_set_soft_limit Enable/disable software limit under RM04PI Mode 1 _DMC_01_rm_04pi_md1_get_soft_limit_status Get current 4-axis software limit contact status under RM04PI Mode 1 _DMC_01_rm_04pi_md1_set_sld Enable SLD port (DI3) and set profile _DMC_01_rm_04pi_md1_get_mc_error_code When alarm code is 299, get motion control error message under RM04PI Mode 1 _DMC_
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.1 _DMC_01_rm_04pi_md1_start_move FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Performs 1-axis motion control under RM04PI Mode 1. ※When setting StrVel, make sure its value is smaller than MaxVel.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0; U16 NodeID =1; U16 SlotID = 0; I32 Dist = 1280000; U16 StrVel = 1000, MaxVel =12800; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.2 _DMC_01_rm_04pi_md1_v_move FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_v_move(U16 CardNo, U16 NodeID,U16 SlotID, I32 StrVel, I32 MaxVel, F64 Tacc,I16 dir,U16 m_curve) Purpose Performs velocity motion control under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.3 _DMC_01_rm_04pi_md1_start_line2 FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_line2(U16 CardNo, U16 NodeID,U16 *SlotID, I32 *Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Performs 2-axis linear interpolation motion control under RM04PI Mode 1. ※For motion description, please see Chapter 19 “2-Axis Linear Interpolation Motion Control API”.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[2] ={0, 1}; I32 Dist[2]={30000, 40000}; I32 StrVel=0, MaxVel=3000; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.4 _DMC_01_rm_04pi_md1_start_line3 FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_line3(U16 CardNo, U16 NodeID,U16 *SlotID, I32 *Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Performs 3-axis linear interpolation motion control under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[3] ={0,1,2}; I32 Dist[3]={10000, 20000, 30000}; I32 StrVel=0, MaxVel=3000; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.5 _DMC_01_rm_04pi_md1_start_line4 FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_line4(U16 CardNo, U16 NodeID,U16 *SlotID, I32 *Dist, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Performs 4-axis linear interpolation motion control under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[4] ={0,1,2,3}; I32 Dist[4]={10000, 20000, 30000, 40000}; I32 StrVel=0, MaxVel=3000; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.6 _DMC_01_rm_04pi_md1_start_arc FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_arc(U16 CardNo, U16 NodeID,U16* SlotID, I32* Center, F64 Angle, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve,U16 m_r_a) Purpose Performs 2-axis arc interpolation motion control under RM04PI Mode 1 (Known conditions: center point coordinates, angle).
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[2]={0,1}; I32 Center[2]={5000,5000}, StrVel=0, MaxVel=1000; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[2]={0,1}; I32 End[2]={5000,5000}, StrVel=0, MaxVel=1000; F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[2]={0,1}, m_curve=1, m_r_a=1; I32 Center[2]={5000,2500}, End[2]={10000,5000}, StrVel=0, MaxVel=1000; I16 dir=1; //Clockwise F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.9 _DMC_01_rm_04pi_md1_start_heli FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_start_heli(U16 CardNo, U16 NodeID,U16* SlotID, I32* Center,I32 Depth, I32 Pitch, I16 dir, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec, U16 m_curve,U16 m_r_a) Purpose Performs 3-axis spiral interpolation motion control under RM04PI Mode 1. ※For motion description, please see Chapter 22 “3-Axis Spiral Interpolation Motion Control API”.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, NodeID=1, SlotID[3]={0,1,2}, m_curve=1, m_r_a=1; I32 Center[3]={5000,2500,2500}, Depth = 2500, Pitch = 500, StrVel = 0, MaxVel = 1000; I16 dir=1; //Clockwise F64 Tacc=0.1, Tdec=0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.10 _DMC_01_rm_04pi_md1_p_change FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_p_change (U16 CardNo, U16 NodeID, U16 SlotID, I32 NewPos) Purpose Replaces the current position with a new position value under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.11 _DMC_01_rm_04pi_md1_v_change FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_v_change (U16 CardNo, U16 NodeID, U16 SlotID, I32 NewSpeed, F64 sec) Purpose Replaces the current velocity with a new velocity value under RM04PI Mode 1. ※Please refer to section 18.6 “_DMC_01_v_change” for details.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.12 _DMC_01_rm_04pi_md1_set_gear FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_set_gear (U16 CardNo, U16 NodeID, U16 SlotID, I16 numerator,I16 denominator,U16 Enable) Purpose Enables and sets Gear parameters under RM04PI Mode 1. ※As a step motor does not offer an electronic gear ratio, this function is used instead.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.13 _DMC_01_rm_04pi_md1_set_soft_limit FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_set_soft_limit(U16 CardNo, U16 NodeID,U16 SlotID, I32 PLimit, I32 NLimit,U16 Enable) Purpose Enables/disables software limit under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.14 _DMC_01_rm_04pi_md1_get_soft_limit_status FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_get_soft_limit_status (U16 CardNo, U16 NodeID, U16 SlotID ,U16* NLimit_status,U16* PLimit_status) Purpose Retrieves current 4-axis software limit contact status under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.15 _DMC_01_rm_04pi_md1_set_sld FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_set_sld (U16 CardNo, U16 NodeID, U16 SlotID, I16 enable, I16 sd_logic,I16 mode) Purpose Enables SLD port (DI3) and sets the profile.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.16 _DMC_01_rm_04pi_md1_get_mc_error_code FORMAT I16 PASCAL _DMC_01_rm_04pi_md1_get_mc_error_code (U16 CardNo, U16 NodeID, U16 SlotID, U16 error_code) Purpose When the alarm code is 299, retrieves the motion control error message under RM04PI Mode 1.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 28.17 _DMC_01_set_rm_04pi_ref_counter FORMAT I16 PASCAL _DMC_01_set_rm_04pi_ref_counter (U16 CardNo, U16 NodeID, U16 SlotID , U16 mode) Purpose Selects the reference position after re-connecting to module under M04PI Mode 1. ※Check that link feedback is enabled when using this function. If yes, set mode parameter to 1; if there is no feedback, set parameter to 0.
Chapter 28 4-Channel Pulse Interface (Mode 1) Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 29 4-Channel Analog Output Remote I/O Module API Table 29.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.1 _DMC_01_rm_04da_set_output_value FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_value (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16 Value) Purpose Sets value of DA output.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.2 _DMC_01_rm_04da_get_output_value FORMAT I16 PASCAL _DMC_01_rm_04da_get_output_value (U16 CardNo, U16 NodeID,U16 SlotID, U16 ChannelNo, U16 *Value) Purpose Reads the value of the DA output.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.3 _DMC_01_rm_04da_get_return_code FORMAT I16 PASCAL _DMC_01_rm_04da_get_return_code (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16* ReturnCode) Purpose Reads DA status.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.4 _DMC_01_rm_04da_set_output_range FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_range (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16 Range) Purpose Sets the DA output range.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.5 _DMC_01_rm_04da_set_output_enable FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_enable (U16 CardNo, U16 NodeID,U16 SlotID, U16 ChannelNo, U16 Enable) Purpose Enables/disables pin output.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.6 _DMC_01_rm_04da_set_output_overrange FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_overrange (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16 On_Off) Purpose Increases output range by 10%.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.7 _DMC_01_rm_04da_set_output_error_clear FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_error_clear (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16 On_Off) Purpose Clears error status.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.8 _DMC_01_rm_04da_read_data FORMAT I16 PASCAL _DMC_01_rm_04da_read_data (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16* data) Purpose Retrieves current DA number.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.9 _DMC_01_rm_04da_set_output_error_handle FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_error_handle (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, U16 On_Off) Purpose Keeps original DA settings if the connection is broken.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.10 _DMC_01_rm_04da_set_output_offset_value FORMAT I16 PASCAL _DMC_01_rm_04da_set_output_offset_value (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, I16 Value) Purpose Sets the DA offset value.
Chapter 29 4-Channel Analog Output Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 29.11 _DMC_01_rm_04da_get_output_offset_value FORMAT I16 PASCAL _DMC_01_rm_04da_get_output_offset_value (U16 CardNo, U16 NodeID, U16 SlotID, U16 ChannelNo, I16 *Value) Purpose Reads the DA offset value.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 30 4-Channel Analog Input Remote I/O Module API Table 30.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.1 _DMC_01_set_04ad_input_range FORMAT I16 _DMC_01_set_04ad_input_range (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16 range) Purpose Sets the AD input range.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.2 _DMC_01_get_04ad_input_range FORMAT I16 _DMC_01_get_04ad_input_range (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16 *range) Purpose Retrieves the current AD Input range.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.3 _DMC_01_set_04ad_zero_scale FORMAT I16 _DMC_01_set_04ad_zero_scale (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno) Purpose Sets AD zero level for range calibration.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.4 _DMC_01_get_04ad_zero_scale_status FORMAT I16 _DMC_01_get_04ad_zero_scale_status (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16* status) Purpose Checks if AD zero calibration is complete.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.5 _DMC_01_set_04ad_full_scale FORMAT I16 _DMC_01_set_04ad_full_scale (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno) Purpose Sets AD maximum level for range calibration.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.6 _DMC_01_get_04ad_full_scale_status FORMAT I16 _DMC_01_get_04ad_full_scale_status (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16* status) Purpose Checks if AD maximum level calibration is complete.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.7 _DMC_01_set_04ad_conversion_time FORMAT I16 _DMC_01_set_04ad_conversion_time (U16 CardNo, U16 NodeID, U16 SlotID, U16 mode) Purpose Sets AD conversion time.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.8 _DMC_01_get_04ad_conversion_time FORMAT I16 _DMC_01_get_04ad_conversion_time (U16 CardNo, U16 NodeID, U16 SlotID, U16* mode) Purpose Retrieves current AD conversion time.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.9 _DMC_01_get_04ad_data FORMAT I16 _DMC_01_get_04ad_data (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16* value) Purpose Reads input voltage.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.10 _DMC_01_set_04ad_average_mode FORMAT I16 _DMC_01_set_04ad_average_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16 mode) Purpose Sets AD average mode.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.11 _DMC_01_get_04ad_average_mode FORMAT I16 _DMC_01_get_04ad_average_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16* mode) Purpose Retrieves AD average mode.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 30.12 _DMC_01_set_04ad_input_enable FORMAT I16 _DMC_01_set_04ad_input_enable (U16 CardNo, U16 NodeID, U16 SlotID, U16 channelno, U16 ON_OFF) Purpose Enables/disables AD Channel Input feedback.
Chapter 30 4-Channel Analog Input Remote I/O Module API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 31 Slave Data API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 31 Slave Data API Table 31.
Chapter 31 Slave Data API | PCI-DMC-A01 / PCI-DMC-B01 31.1 _DMC_01_get_devicetype FORMAT I16 PASCAL _DMC_01_get_devicetype (I16 CardNo, U16 NodeID, U16 SlotID, U32 *DeviceType, U32 *IdentityObject) Purpose Retrieves slave device type.
Chapter 31 Slave Data API | PCI-DMC-A01 / PCI-DMC-B01 NOTE ※Table of device type codes used for the DeviceType variable: Device Type Code Device Type Code A2 Series Servo Drives 0x04020192 M Series Servo Drives 0x06020192 A2R Series Servo Drives 0x08020192 S Series Servo Drives 0x09020192 ASD-DMC-RM32MN 0x04110191 ASD-DMC-RM64MN 0x08110191 ASD-DMC-RM32NT 0x04120191 ASD-DMC-RM64NT 0x08120191 ASD-DMC-RM04PI(MD1) 0x1C100191 ASD-DMC-RM04AD 0x08140191 ASD-DMC-RM04PI(MD2) 0x14100191 ASD
Chapter 31 Slave Data API | PCI-DMC-A01 / PCI-DMC-B01 31.2 _DMC_01_get_slave_version FORMAT I16 PASCAL _DMC_01_get_slave_version (I16 CardNo, U16 NodeID,U16 SlotID, U16* version) Purpose Retrieves slave device firmware version.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 32 Parameter Monitoring API Table 32.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 32.1 _DMC_01_set_monitor FORMAT I16 PASCAL _DMC_01_set_monitor (U16 CardNo, U16 NodeID, U16 SlotID, U16 monitorw) Purpose Sets parameter to monitor.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 Reference Table 32.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 Monitor item index Monitor item Unit 04PI Servo Data length 16-bit[unsigned integer] □ ■ 16-bit[signed integer] □ ■ Hertz 16-bit[unsigned integer] □ ■ Value at Z-phase Home (Number of pulses) -5000 ~ +5000 16-bit[signed integer] □ ■ 19 Parameter map #1: P0 - 25 Number 32-bit[unsigned integer] □ ■ 20 Parameter map #2: P0 - 26 Number 32-bit[unsigned integer] □ ■ 21 Parameter map #3: P0 - 27 Number 32-bit[unsigne
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 32.2 _DMC_01_get_monitor FORMAT I16 PASCAL _DMC_01_set_command (U16 CardNo, U16 NodeID, U16 SlotID, U32 cmd) Purpose Retrieves value of monitored parameter.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 32.3 _DMC_01_get_servo_command FORMAT I16 PASCAL _DMC_01_get_servo_command (U16 CardNo, U16 NodeID, U16 SlotID, U32 *servo_cmd) Purpose Retrieves servo drive command value.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 32.4 _DMC_01_get_servo_DI FORMAT I16 PASCAL _DMC_01_get_servo_DI (U16 CardNo, U16 NodeID, U16 SlotID, U16 *servo_DI) Purpose Retrieves server DI message value.
Chapter 32 Parameter Monitoring API | PCI-DMC-A01 / PCI-DMC-B01 32.5 _DMC_01_get_servo_DO FORMAT I16 PASCAL _DMC_01_get_servo_DO (U16 CardNo, U16 NodeID, U16 SlotID, U16 *servo_DO) Purpose Retrieves server DO message value.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 33 Alarm Message API Table 33.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 33.1 _DMC_01_set_ralm FORMAT I16 PASCAL _DMC_01_set_ralm (U16 CardNo, U16 NodeID, U16 SlotID) Purpose Resets output servo drive alarm message.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 33.2 _DMC_01_get_alm_code FORMAT I16 PASCAL _DMC_01_get_alm_code (U16 CardNo, U16 NodeID, U16 SlotID, U32 *alm_code) Purpose Retrieves slave alarm code.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 33.3 _DMC_01_master_alm_code FORMAT I16 PASCAL _DMC_01_master_alm_code (U16 CardNo,U16* alm_code) Purpose Retrieves the Master Card connection alarm code.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 33.4 _DMC_01_slave_error FORMAT I16 PASCAL _DMC_01_slave_error (U16 CardNo, U16 NodeID,U16 SlotID,U16* alm_cnt) Purpose Retrieves number of consecutive errors during slave communications.
Chapter 33 Alarm Message API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 34 Multi-Axis Motion Control API Table 34.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 34.1 _DMC_01_multi_axes_move FORMAT I16 PASCAL _DMC_01_multi_axes_move(U16 CardNo,U16 AxisNum, U16* NodeID, U16* SlotID, I32 *DistArrary, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve, U16 m_r_a) Purpose Sets motion control for more than 2 axes.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, AxisNum=4; U16 NodeID[4]={1,2,3,4}, SlotID[4]={0,1,2,3}; I32 DistArrary[4]={1000, 2000, 3000, 6000}; I32 StrVel=1000, MaxVel=50000; F64 Tacc=0.1, Tdec=0.1; U16 m_curve=1; U16 m_r_a=0; /*Set as multi-axis motion control using absolute coordinates with T-curve velocity cross-section.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 34.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 34.3 _DMC_01_start_v3_multi_axes FORMAT I16 PASCAL _DMC_01_start_v3_multi_axes(U16 CardNo,U16 AxisNum, U16* NodeID, U16* SlotID, I32 *DistArrary, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve,U16 m_r_a) Purpose Multi-axis (more than 2 axes) motion control with added EndVel. ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 34 Multi-Axis Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 34.1 Explanation of TPhase1 and TPhase2 Example U16 CardNo=0, AxisNum=4; U16 NodeID[4]={1,2,3,4}, SlotID[4]={0,1,2,3}; I32 DistArrary[4]={1000, 2000, 3000, 6000}; I32 StrVel=1000, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.
Chapter 35 Buffer Operation API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 35 Buffer Operation API Table 35.
Chapter 35 Buffer Operation API | PCI-DMC-A01 / PCI-DMC-B01 35.1 _DMC_01_set_trigger_buf_function FORMAT I16 PASCAL _DMC_01_set_trigger_buf_function (I16 CardNo, U16 NodeID, U16 SlotID, U16 enable) Purpose Uses servo drive DI3 (SLD) to trigger Motion command.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 36 Interrupt API Table 36.1 Function Name Description _DMC_01_set_int_factor Set interrupt mode. Total of 8 modes available. _DMC_01_int_enable Enable interrupt feedback _DMC_01_int_disable Disable disable interrupt. _DMC_01_get_int_count Interrupt count. _DMC_01_get_int_status Get current interrupt status _DMC_01_Link_interrupt Link handling procedure. Called if interrupt enabled.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 36.1 _DMC_01_ set_int_factor FORMAT I16 PASCAL _DMC_01_set_int_factor (U16 CardNo, U16 NodeID, U16 int_factor) Purpose Sets interrupt mode. Parameters Name Data Type Unit CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID int_factor U16 Selection Description There are 8 modes in total: 1. Normal Stop 2. Next Buffer 3. Acceleration End 4. Deceleration Start 5. Sdo Finish (unavailable) 6. DMC Cycle Start 7.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 36.2 _DMC_01_ int_enable FORMAT I16 PASCAL _DMC_01_int_enable (U16 CardNo, U16 NodeID) Purpose Enables interrupt. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID Example U16 CardNo=0; U16 NodeID=1; I16 status = _DMC_01_int_enable (CardNo, NodeID); 36.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 36.4 _DMC_01_ get_int_count FORMAT I16 PASCAL _DMC_01_get_int_count (U16 CardNo, U16 NodeID, U16 count) Purpose Reads interrupt count.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 36.5 _DMC_01_ get_int_status FORMAT I16 PASCAL _DMC_01_get_int_status (U16 CardNo, U16 NodeID, U16 event_int_status) Purpose Reads current interrupt mode.
Chapter 36 Interrupt API | PCI-DMC-A01 / PCI-DMC-B01 36.6 _DMC_01_link_ interrupt FORMAT I16 PASCAL _DMC_01_link_interrupt (U16 CardNo, void (__stdcall *callbackAddr) (U16 CardNo, U16 NodeID)) Purpose Sets a handler procedure. When interrupt occurs, enter this handler.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 37 Security API Table 37.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.1 _DMC_01_ read_security FORMAT I16 PASCAL _DMC_01_read_security (U16 CardNo, U16 page, U16 array) Purpose Reads security data specified by the Master Card from memory.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.3 _DMC_01_write_security FORMAT I16 PASCAL _DMC_01_write_security (U16 CardNo, U16 page, U16 array ) Purpose Writes security data to memory block specified by the Master Card.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.5 _DMC_01_ check_userpassword FORMAT I16 PASCAL _DMC_01_ check_userpassword (U16 CardNo, U32 password_data, U16 password_state) Purpose Before reading/writing data on the Master Card, checks that user has permission to read/write to memory. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 Password_data U32 Number Enter password to check Password_state U16 Flag Response after password check.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.7 _DMC_01_check_verifykey FORMAT I16 PASCAL _DMC_01_check_verifykey (U16 CardNo, U32 Verifykey, U16state) Purpose Master Card: Checks verify key matches. Parameters Name Data Type Unit CardNo U16 Number Unit Verifykey U32 Number State U16 Flag Description CardNo is between 0~15 Verify key to check Response after verify key check.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.9 _DMC_01_ read_serialno FORMAT I16 PASCAL _DMC_01_ read_serialno (U16 CardNo, U32 Serialno) Purpose Reads product serial number in the Master Card memory.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.10 misc_slave_check_userpassword FORMAT I16 PASCAL _misc_slave_check_userpassword (U16 CardNo, U16 NodeID, U16 SlotID, U32 Password_data, U16 *Password_state) Purpose Before read/write data on Slave (04PI), checks that user has permission to read/write to memory.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.11 _misc_slave_write_userpassword FORMAT I16 PASCAL _misc_slave_write_userpassword (U16 CardNo, U16 NodeID, U16 SlotID, U32 Password_datae) Purpose Writes user password to Slave(04PI).
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.12 _misc_slave_get_serialno FORMAT I16 PASCAL _misc_slave_get_serialno (U16 CardNo, U16 NodeID, U16 SlotID, U32 Serialno) Purpose Reads Slave(04PI) product serial number.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.13 _misc_security FORMAT I16 PASCAL _misc_security (U32 OtherWord0, U32 OtherWord1, U32 SyntekWord0, U32 SyntekWord1, U32 *Password0, U32 *Password1, U32 *Password2, U32 *Password3) Purpose Slave(04PI): Feeds user specified 64bit key and 64bit Serialno into encryption algorithm to derive 128bit verify key.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.14 _misc_slave_write_verifykey FORMAT I16 PASCAL _misc_slave_write_verifykey (U16 CardNo, U16 NodeID, U16 SlotID, U32 Verifykey) Purpose Writes verify key to Slave(04PI).
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.15 _misc_slave_check_verifykey FORMAT I16 PASCAL _misc_slave_check_verifykey (U16 CardNo, U16 NodeID, U16 SlotID, U32 Verifykey, U16 *Lock_state) Purpose Checks verify key against Slave (04PI).
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.16 _misc_slave_user_data_buffer_read FORMAT I16 PASCAL _ misc_slave_user_data_buffer_read (U16 CardNo, U16 NodeID, U16 SlotID U16 Address, U32* Data) Purpose Reads data from memory specified by Slave (04PI).
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.17 _misc_slave_user_data_buffer_write FORMAT I16 PASCAL _misc_slave_user_data_buffer_write (U16 CardNo, U16 NodeID, U16 SlotID U16 Address, U32 Data) Purpose Writes data to buffer.
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 37.18 _misc_slave_user_data_to_flash FORMAT I16 PASCAL _ misc_slave_user_data_to_flash (U16 CardNo, U16 NodeID, U16 SlotID) Purpose Writes data in buffer to position specified by Slave(04PI).
Chapter 37 Security API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 38 Limit Reversal API Table 38.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 38.1 _ DMC_01_rm_04pi_set_MEL_polarity FORMAT I16 PASCAL _DMC_01_rm_04pi_set_MEL_polarity (U16 CardNo, U16 NodeID, U16 SlotID U16 inverse) Purpose Reverses direction of negative limit.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 38.2 _ DMC_01_rm_04pi_get_MEL_polarity FORMAT I16 PASCAL _DMC_01_rm_04pi_get_MEL_polarity (U16 CardNo, U16 NodeID, U16 SlotID U16 *data) Purpose Retrieves current status of negative limit.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 38.3 _ DMC_01_rm_04pi_set_PEL_polarity FORMAT I16 PASCAL _DMC_01_rm_04pi_set_PEL_polarity (U16 CardNo, U16 NodeID, U16 SlotID U16 inverse) Purpose Reverses direction of positive limit.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 38.4 _ DMC_01_rm_04pi_get_PEL_polarity FORMAT I16 PASCAL _DMC_01_rm_04pi_get_PEL_polarity (U16 CardNo, U16 NodeID, U16 SlotID U16 *data) Purpose Retrieves positive limit status.
Chapter 38 Limit Reversal API | PCI-DMC-A01 / PCI-DMC-B01 (This page intentionally left blank.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 39 Compare API Table 39.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.1 _ DMC_01_set_compare_channel_position FORMAT I16 PASCAL _ DMC_01_set_compare_channel_position (U16 CardNo, U16 compare_channel, I32 position) Purpose Sets new value for Position counter of Channel.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.2 _DMC_01_get_compare_channel_position FORMAT I16 PASCAL _DMC_01_get_compare_channel_position (U16 CardNo, U16 compare_Channel, I32 *position) Purpose Reads current value of Position counter for that Channel.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.3 _DMC_01_set_compare_ipulse_mode FORMAT I16 PASCAL _DMC_01_set_compare_ipulse_mode (U16 CardNo, U16 mode) Purpose Sets input phase mode for pulse interface module.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.4 _DMC_01_set_compare_channel_direction FORMAT I16 PASCAL _DMC_01_set_compare_channel_direction (U16 CardNo, U16 compare_channel, U16 dir) Purpose Sets Channel pulse direction.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.5 _DMC_01_set_compare_channel_trigger_time FORMAT I16 PASCAL _DMC_01_set_compare_channel_trigger_time (U16 CardNo, U16 compare_channel, U32 time_us) Purpose Sets Trigger enable duration.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.6 _DMC_01_set_compare_channel_one_shot FORMAT I16 PASCAL _DMC_01_set_compare_channel_one_shot (U16 CardNo, U16 compare_channel) Purpose Sets Trigger to one-time enable.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.7 _DMC_01_set_compare_channel_source FORMAT I16 PASCAL _DMC_01_set_compare_channel_source (U16 CardNo, U16 compare_channel, U16 source) Purpose Sets comparison source.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.8 _DMC_01_channel0_position_cmp FORMAT I16 PASCAL _DMC_01_channel0_position_cmp (U16 CardNo, I32 start, U16 dir, U16 interval, U32 trigger_cnt) Purpose Executes Compare1.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.9 _DMC_01_channel1_output_enable FORMAT I16 PASCAL _DMC_01_channel1_output_enable (U16 CardNo, U16 on_off) Purpose Sets Compare2 output to enable/disable.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.10 _DMC_01_channel1_output_mode FORMAT I16 PASCAL _DMC_01_channel1_output_mode (U16 CardNo, U16 Mode) Purpose Compare2 output mode. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 Mode U16 Number Unit 0: Normal mode 1: Custom mode Description Normal mode Figure 39.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 Custom mode When set to custom mode, level table's value is set to 0x88880000 as shown in Fig. 39.2. Figure 39.2 Compare Output's custom mode ※ In custom mode, Trigger On's position table is set using the “level_table” parameter in API”_DMC_01_channel1_position_compare_table_level”. ※ Trigger time is the time required to reach the next position (ex.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.11 _DMC_01_channel1_get_io_status FORMAT I16 PASCAL _DMC_01_channel1_get_io_status (U16 CardNo, U16* io_status) Purpose Reads Compare2 status.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.12 _DMC_01_channel1_set_gpio_out FORMAT I16 PASCAL _DMC_01_channel1_set_gpio_out (U16 CardNo, U16 on_off) Purpose Sets GPIO output pin status.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.13 _DMC_01_channel1_position_compare_table FORMAT I16 PASCAL _DMC_01_channel1_position_compare_table (U16 CardNo, I32* pos_table, U32 table_size,) Purpose Sets Compare2 to standard Compare data.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.14 _DMC_01_channel1_position_compare_table_level FORMAT I16 PASCAL _DMC_01_channel1_position_compare_table_level (U16 CardNo, I32* pos_table, U32* level_table, U32 table_size) Purpose Sets Compare2 to custom Compare data.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.15 _DMC_01_channel1_position_compare_table_cnt FORMAT I16 PASCAL _DMC_01_channel1_position_compare_table_cnt (U16 CardNo, U32* cnt) Purpose Reads Compare counter.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.16 _DMC_01_set_compare_channel_polarity FORMAT I16 PASCAL _DMC_01_set_compare_channel_polarity (U16 CardNo, U16 inverse) Purpose Sets Compare level.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.17 _DMC_01_channel0_position_cmp_by_gpio FORMAT I16 PASCAL _DMC_01_channel0_position_cmp_by_gpio (U16 CardNo, U16 dir, U16 interval, I32 trigger_cnt) Purpose Sets Compare trigger to GPIO control.
Chapter 39 Compare API | PCI-DMC-A01 / PCI-DMC-B01 39.18 _DMC_01_channel1_position_re_compare_table FORMAT I16 PASCAL _DMC_01_channel1_position_re_compare_table (U16 CardNo) Purpose Uses previous Compare condition and re-executes Channel1 Compare. Parameters Name Data Type CardNo U16 Unit Description Number Unit CardNo is between 0~15 Example U16 CardNo = 0; I16 status = _DMC_01_channel1_position_re_compare_table (CardNo); 39.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 40 Linear and Arc Interpolation Motion Control API Table 40.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 40.1 _DMC_01_start_rline_xy FORMAT I16 PASCAL _DMC_01_start_rline_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 pos1_x, I32 pos1_y, I32 pos2_x, I32 pos2_y, U16 mode, F64 param, I32 StrVel, I32 MaxVel, F64 Tacc, F64 Tdec,U16 m_curve, U16 m_r_a) Purpose 2-axis linear, arc R-angle interpolation motion control.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Mode Parameter Settings Figure 40.1 Mode = 0 Perpendicular distance from arc to right angle (AB) Figure 40.2 Mode = 1 Perpendicular distance from start of arc to right angle (AB) Figure 40.3 Mode = 2 Arc radius (AB) Example U16 CardNo=0, *NodeID=1, *SlotID=0; I32 pos1_x=0, I32 pos1_y=10000; I32 pos2_x=10000, I32 pos2_y=10000; U16 mode=1; param=3000; I32 StrVel=100, MaxVel=5000; F64 Tacc=0.1, Tdec=0.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 40.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Mode Parameter Settings Figure 40.4 Mode = 0 Perpendicular distance from arc to right angle (AB) Figure 40.5 Mode = 1 Perpendicular distance from start of arc to right angle Figure 40.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 40.3 _DMC_01_start_v3_rline_xy FORMAT I16 PASCAL _DMC_01_start_v3_rline_xy (U16 CardNo, U16* NodeID, U16* SlotID, I32 pos1_x, I32 pos1_y, I32 pos2_x, I32 pos2_y, U16 mode, F64 param, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose 2-axis linear, arc interpolation motion control with added EndVel. ※Values of StrVel and EndVel can be greater than MaxVel.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Description Figure 40.7 Explanation of TPhase1 and TPhase2 Mode Parameter Settings Figure 40.8 Mode = 0 Perpendicular distance from arc to right angle (AB) Figure 40.9 Mode = 1 Perpendicular distance from start of arc to right angle (AB) Figure 40.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, *NodeID=1, *SlotID=0; I32 pos1_x=0, I32 pos1_y=10000; I32 pos2_x=10000, I32 pos2_y=10000; U16 mode=1; param=3000; I32 StrVel=100, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.1; U16 m_curve=1, m_r_a=0; /*Set as multi-axis motion control using absolute coordinates with T-curve velocity cross-section.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 40.4 _DMC_01_start_v3_rline_xyz FORMAT I16 PASCAL _DMC_01_start_v3_rline_xyz (U16 CardNo, U16* NodeID, U16* SlotID, I32 pos1_x, I32 pos1_y, I32pos1_z, I32 pos2_x, I32 pos2_y, pos2_z, U16 mode, F64 param, I32 StrVel, I32 ConstVel, I32 EndVel, F64 TPhase1, F64 TPhase2, U16 m_curve, U16 m_r_a) Purpose 3-axis linear, arc interpolation motion control with added EndVel.
Chapter 40 Linear and Arc Interpolation Motion Control API | PCI-DMC-A01 / PCI-DMC-B01 Example U16 CardNo=0, *NodeID=1, *SlotID=0; I32 pos1_x=0, I32 pos1_y=10000, I32 pos1_z=10000; I32 pos2_x=10000, I32 pos2_y=10000, I32 pos2_z=10000; U16 mode=1; param=3000; I32 StrVel=100, MaxVel=50000; I32 EndVel=20000; F64 TPhase1=0.2; F64 TPhase2=0.1; U16 m_curve=1, m_r_a=0; /*Set as multi-axis motion control using absolute coordinates with T-curve velocity cross-section.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 41 Speed Continue API Table 41.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 41.1 _DMC_01_speed_continue FORMAT I16 PASCAL _DMC_01_speed_continue (U16 CardNo, U16 NodeID, U16 SlotID, U16 enable) Purpose Enables/disables speed continue.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 41.2 _DMC_01_speed_continue_mode FORMAT I16 PASCAL _DMC_01_speed_continue_mode (U16 CardNo, U16 NodeID, U16 SlotID, U16 mode) Purpose Sets Speed Continue mode.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 Mode is 1 Assume conditions are set to Dist is 1000, MaxVel is 20000, Tacc and Tdec are both 0.1. The above conditions mean the MaxVel of 20000 is impossible to reach during this Dist movement using the original acceleration/deceleration time. So when mode is 1, Tac and Tdec will stay as 0.1 but MaxVel is automatically reduced. Fig. 41.2 shows the original path in black and the actual path in red. Figure 41.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 41.3 _DMC_01_speed_continue_combine_ratio FORMAT I16 PASCAL _DMC_01_speed_continue_combine_ratio (U16 CardNo, U16 NodeID, U16 SlotID, U16 ratio) Purpose Sets Speed Continue combined percentage. Parameters Name Data Type Unit Description CardNo U16 Number Unit CardNo is between 0~15 NodeID U16 Number Unit Node ID SlotID U16 Number Unit Slot ID Ratio U16 Number Unit Combined percentage Description Ratio is 100 Figure 41.
Chapter 41 Speed Continue API | PCI-DMC-A01 / PCI-DMC-B01 NOTE ※ When axes 1 ~ 6 carry out Speed Continue, the resources of axes 7 ~ 12 will be used. Thus, when axes 1~6 are set to Speed Continue Enable, axes 7~12 cannot perform P2P and Continue motions. Speed Continue must be disabled for axes 7 ~ 12 to carry out further motions.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 Chapter 42 Other API Table 42.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 42.1 _misc_app_get_circle_endpoint FORMAT I16 PASCAL _misc_app_get_circle_endpoint (I32 Start_X, I32 Start_Y, I32 Center_X, I32 Center_Y, F64 Angle, I32* End_x, I32* End_y) Purpose Retrieves endpoint coordinates (X, Y) required for arc interpolation.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 42.2 _misc_app_get_circle_center_point FORMAT I16 PASCAL _misc_app_get_circle_center_point (I32 Start_X, I32 Start_Y, I32 End_x, I32 End_y, F64 Angle, I32* Center_X, I32* Center_Y) Purpose Retrieves center point coordinates (X, Y) required for arc interpolation.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 42.3 _misc_set_record_debuging FORMAT I16 PASCAL _misc_set_record_debuging (U16 enable) Purpose Shows whether Debug log function is enabled. Parameters Name Enable Data Type Unit U16 Selection Description 0: Disable Debug log 1: Enable Debug log Example U16 Enable = 1; I16 status = _misc_set_record_debuging (Enable); 42.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 42.5 _DMC_01_enable_dda_mode FORMAT I16 PASCAL _DMC_01_enable_dda_mode (U16 CardNo, U16 enable) Purpose Enables DDA Table writing function. Parameters Name CardNo Enable Data Type Unit U16 Number Unit U16 Selection Description Interface card CardNo are 0~15. 0: Disable DDA Table writing function. 1: Enable DDA Table writing function.
Chapter 42 Other API | PCI-DMC-A01 / PCI-DMC-B01 42.6 _DMC_01_set_dda_data FORMAT I16 PASCAL _DMC_01_set_dda_data (U16 CardNo, U32* abs_pos) Purpose Enters DDA Table data. Parameters Name Data Type Unit CardNo U16 Number Unit Abs_Pos U32* Description CardNo is between 0~15 Numerical data This field is a an array for data from 12 axes Example U16 CardNo = 0; U32 Abs_Pos[0][11] = {1000,2000,0,0,0,0,0,0,0,0,0,0}; //Abs_Pos is a 12-axis data array. Maximum Buffer is 1000 entries.