This section describes the Pulse Counter module functions. They are used to control Pulse Counter interface and modify its settings.
Actual control of the device is performed by use of commands and responses. Each function utilizes respective commands and responses. You can send such commands directly if necessary.
The DlnPlsCntGetPortCount()
function retrieves the number of pulse counter ports available in your DLN-series adapter.
The DlnPlsCntEnable()
function configures a port as Pulse counter.
The DlnPlsCntDisable()
function releases a port from Pulse counter.
The DlnPlsCntIsEnabled()
function informs whether a port is currently configured as Pulse counter.
The DlnPlsCntSetMode()
function is used to set mode and limit parameters of specified Pulse Counter port.
The DlnPlsCntGetMode()
function is used to get mode and limit parameters of the specified Pulse Counter port.
The DlnPlsCntGetResolution()
function retrieves the current Pulse Counter Module resolution.
The DlnPlsCntGetValue()
function retrieves the current timer and counter values of the specified Pulse Counter port.
The DlnPlsCntReset()
function resets the timer and/or counter on the Pulse Counter port.
The DlnPlsCntResume()
function resumes the pulse counter operation state on the Pulse Counter port.
The DlnPlsCntSuspend()
function suspends pulse counter operation state on the Pulse Counter port.
The DlnPlsCntIsSuspended()
function informs whether a port is currently suspended.
The DlnPlsCntSetEventCfg()
function defines the event configuration for the specified Pulse Counter port.
The DlnPlsCntGetEventCfg()
function is used to get event configuration of the specified Pulse Counter port.