beautypg.com

ProSoft Technology MVI56E-LDM User Manual

Page 109

background image

ControlLogix Platform ♦ "C" Programmable

CIP API Functions

Linux Application Development Module

Developer's Manual

ProSoft Technology, Inc.

Page 103 of 264

March 12, 2014

OCXcip_ImmediateOutput

Syntax

int OCXcip_ImmediateOutput(OCXHANDLE apihandle,
OCXHANDLE connHandle );

Parameters

apiHandle

handle returned by previous call to OCXcip_Open

connHandle

handle of open connection

Description
This function causes the output data of an open connection to be queued for
transmission immediately, rather than waiting for the next scheduled
transmission (based on RPI). It is equivalent to the ControlLogix IOT instruction.

apiHandle

must be a valid handle return from

OCXcip_Open

.

connHandle

must be

a handle passed by the

connect_proc

callback function.

Return Value

OCX_SUCCESS

data was read successfully

OCX_ERR_NOACCESS

apihandle

does not have access

OCX_ERR_BADPARAM

connHandle

or offset/dataSize is invalid

Example

OCXHANDLE apihandle;
OCXHANDLE connHandle;
BYTE buffer[128];

// Update the output data and transmit now

OCXcip_WriterConnected (apiHandle, connHandle, buffer, 0, 128);
OCXcip_ImmediateOutput (apiHandle, connHandle);

See Also
OCXcip_WriteConnected