Peripheral Devices
548 9836 3521 01
8.14.3 Enumerators exported by the API
The PowerMACS API exports a number of enumerated types representing return values, possible control
strategies and statuses.
RetCodeEnum
This enumerator lists the codes being returned by the functions of the API
Function did not execute OK for reasons other then listed below
No answer was received from the TC within 4 seconds
The buffer supplied is not big enough for the returned data
A TCP/IP connection cannot be established to the specified IP-address
eRetWrongPlcAddress = -56
Incorrect PLC address (check parameters Address and/or Bit)
The data requested (Cycle data, Event, Trace or Setup) is not available.
Command not supported by the current version of TC SW
Supplied data type not supported
Necessary USB key not found
SeverityEnum
This enumerator lists the possible Severities of an event (see View Event Log for a description of
Severity).
The event is classified as information only.
The event is classified as a warning.
The event is classified as an error.
DeviceInstanceEnum
This enumerator is used to select which of the API devices to access if more than one device is defined on
a TC.
Communicate with target TC's primary API device