Language Dictionary - 6
cfGetDigitalConfig
Syntax
int cfGetDigitalConfig(CF_HANDLE server, int bitnum, CF_EXT_SIGNAL *signal, CF_POLARITY *polarity, CF_REFERENCE *reference);
Description
This function returns the function and logic sense mapping any of the 16 pins of the digital I/O port. See the function cfSetDigitalConfig for a detailed description of digital I/O port configuration. The following signals are defined:
CF_EXT_FAULT_IN | External Fault Input |
CF_EXT_FAULT_OUT | External Fault Output |
CF_EXT_INTERLOCK | External Interlock |
CF_EXT_TRIGGER | External Trigger |
CF_DIG_IN | General purpose input |
CF_DIG_OUT | General purpose output |
CF_DIG_IN_OUT | General purpose input/output |
CF_POWER_FAIL_IN | Power fail input |
CF_POWER_FAIL_OUT | Power fail output |
CF_DIG_OUT_AND_NOT_FAULT_IN | Digital output and not fault input |
See Also
cfSetDigitalPort, cfGetDigitalConfig
cfGetDigitalPort
Syntax
int cfGetDigitalPort(CF_HANDLE server, int *data);
Description
Reads a data word from the digital I/O port. See the function cfSetDigitalConfig for a detailed description of the digital I/O port.
See Also
cfSetDigitalPort, cfGetDigitalConfig
cfGetGroups
Syntax
int cfGetGroups(CF_HANDLE server, char
names[CF_MAX_GROUPS][CF_MAX_GROUP_NAME_LEN], int start[CF_MAX_GROUPS], int size[CF_MAX_GROUPS]);
Description
Returns information about all defined groups. The arguments names, start, and size are arrays of size CF_MAX_GROUPS which hold the return information of defined group names, their start cell numbers and sizes. If there are less than CF_MAX_GROUPS defined, the entry in the size array after the last valid group entry contains the value of 0.
73