Appendix a – function library – CTEK Automation Control Application APN007 User Manual
Page 43

Application Note – Automation Control Application
APN007 25 July, 2014
38
Appendix A – Function Library
Functions are predefined building blocks used to build user defined programs. Parameters or
arguments to the functions must be separated by a single space.
The following is the current list of functions available for creating user programs: Following the
function list is a detailed description of each individual function.
Function List
Digital I/O – Set
Numeric I/O – Set
Numeric I/O – Add
Numeric I/O – Subtract
Numeric I/O – Multiply
Numeric I/O – Divide
Remote I/O - Set
Timer/Counter – Start
Timer/Watchdog – Start
Timer/Clock – Start
Timer/Counter/Ext/Clk – Start
Timer/Alarm Override - Start
Timer/Any – Stop
Motor Group Control
Application Status – Set
Input Threshold – Set
Execute New Configuration
Function Descriptions
Digital I/O – Set
Digital I/O – Set
P1 P2 P3 P4
P1 and P2 define the destination that is being set while P3 and P4 define the source. Use user
defined value 1 to set a pin and user defined 0 to reset a pin.
P1 = i for input or o for output (must be digital)
P2 = pin number (must be digital)
P3 = i for input, o for output or u for user defined value
P4 = pin number or user defined value
Example: Setting digital output pin 6 to On (1)
Action = Digital I/O – Set