71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
/**
|
|
* <interfacename>CmpAtomModbus</interfacename>
|
|
* <description></description>
|
|
*
|
|
* <copyright></copyright>
|
|
*/
|
|
|
|
SET_INTERFACE_NAME(`CmpAtomModbus')
|
|
|
|
/** EXTERN LIB SECTION BEGIN **/
|
|
/* Comments are ignored for m4 compiler so restructured text can be used. changecom(`/*', `*/') */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* <description>
|
|
* Create FUNCTION atMbCall_cext returning UDINT, paste this declaration.
|
|
* Properties > Build > External implementation must be selected.
|
|
* Library filename and Project Information title: CmpAtomModbus.
|
|
* This declaration is the SINGLE external entry point for the C engine.
|
|
* </description>
|
|
* <element name="atMbCall_cext" type=OUT></element>
|
|
* <element name="command" type=IN></element>
|
|
* <element name="handle" type=IN></element>
|
|
* <element name="ipAddress" type=IN></element>
|
|
* <element name="port" type=IN></element>
|
|
* <element name="unitId" type=IN></element>
|
|
* <element name="functionCode" type=IN></element>
|
|
* <element name="startAddress" type=IN></element>
|
|
* <element name="quantity" type=IN></element>
|
|
* <element name="pData" type=IN></element>
|
|
* <element name="dataCapacity" type=IN></element>
|
|
* <element name="pStatus" type=IN></element>
|
|
* <element name="statusCapacity" type=IN></element>
|
|
* <element name="nowMs" type=IN></element>
|
|
* <element name="connectTimeoutMs" type=IN></element>
|
|
* <element name="responseTimeoutMs" type=IN></element>
|
|
* <element name="retryDelayMs" type=IN></element>
|
|
*/
|
|
typedef struct tagatmbcall_cext_struct
|
|
{
|
|
RTS_IEC_UDINT command;
|
|
RTS_IEC_UDINT handle;
|
|
RTS_IEC_DWORD ipAddress;
|
|
RTS_IEC_UINT port;
|
|
RTS_IEC_BYTE unitId;
|
|
RTS_IEC_BYTE functionCode;
|
|
RTS_IEC_UINT startAddress;
|
|
RTS_IEC_UINT quantity;
|
|
RTS_IEC_WORD *pData;
|
|
RTS_IEC_UDINT dataCapacity;
|
|
RTS_IEC_UDINT *pStatus;
|
|
RTS_IEC_UDINT statusCapacity;
|
|
RTS_IEC_ULINT nowMs;
|
|
RTS_IEC_UDINT connectTimeoutMs;
|
|
RTS_IEC_UDINT responseTimeoutMs;
|
|
RTS_IEC_UDINT retryDelayMs;
|
|
RTS_IEC_UDINT atMbCall_cext;
|
|
} atmbcall_cext_struct;
|
|
|
|
DEF_API(`void',`CDECL',`atmbcall_cext',`(atmbcall_cext_struct *p)',1,0x709EE65B,0x00020000)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** EXTERN LIB SECTION END **/
|
|
|