User guide

176 運動控制功能原理介紹
模組 PWM 輸出時若對應關係已經建立時PWM 輸出是否啟動或
停止將由當時相對應的數位輸出狀態及邏輯決定。以下為簡單使用
範例
1. 使用 APS_set_board_param() 依照卡片參數表設定 PWM
輸出通道與相對應數位輸出以及判斷邏輯。
2. 在點表 (Point table) 指定點的選項 (Option) 中打開
DO_Enable,決 DO_Channels DO_ON DO_OFF
對應關係圖
4-4:卡片參數表 (Board parameter table)
NO. SYMBOL Description Default
110h PRB_PWM0_MAP_DO
(1) 1: Disable mapping ; > 0: Enable mapping
(2) Bit0~7: Specify a Do channel.
(3) Bit8: Select logic;
Set to 1: Turning on Do maps enabling PWM0.
Turning off Do maps disabling PWM0. Set to 0:
Turning on Do maps disabling PWM0. Turning
off Do maps enabling PWM0.
-1
111h PRB_PWM1_MAP_DO Please see description of
PRB_PWM0_MAP_DO
-1
112h PRB_PWM2_MAP_DO Please see description of
PRB_PWM0_MAP_DO
-1
113h PRB_PWM3_MAP_DO Please see description of
PRB_PWM0_MAP_DO
-1
preliminary