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.
Parameters
Name
Data Type
CardNo
U16
Pos_table
I32*
Level_table
U32*
Table_size
U32
Example
U16 CardNo = 0;
I32 Pos_table[4] ={1000,2000,3000,4000};
U32 Level_table[4] ={1,0,0,0};
U32 Table_size =50000;
I16 status = _DMC_01_channel1_position_compare_table_level (CardNo, pos_table,
level_table, table_size);
39-16
Unit
Number Unit
CardNo is between 0~15
Calculate the Pos_Table for compare based on the
Number Unit
given data
Number Unit
Set Level_table for Compare
Number Unit
Size of Pos_table to Compare
Description
Revised March, 2012