EasyManua.ls Logo

ALTUS Nexto NX3004 - Page 217

ALTUS Nexto NX3004
388 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4. Configuration
209
REFRESH_OUTPUT
This function block is used to update the specified module outputs. It is not necessary to wait until
the cycle is finished. It is important to notice that the update time of the module outputs will have to
be considered in the effective time of the outputs update in the application developed by the user.
ATTENTION:
The REFRESH_OUTPUT function must only be used in MainTask task
To update outputs in other tasks, the option, Enable I/O Update per Task must be selected, for
further information about this option, consult Table 4-1.
ATTENTION:
REFRESH_OUTPUT function does not support inputs that have been mapped to symbolic variables.
For proper operation it is necessary that the input is mapped to a variable within the memory direct
representation of input variables (% Q).
Figure 4-103. Block for Output Updating
Input parameters
Type
Description
byRackNumber
BYTE
Rack number
bySlotNumber
BYTE
Position number where the module is
connected
Table 4-148. REFRESH_OUTPUT Input Parameters
Possible ERRORCODE:
NoError: Execution success.
IOModuleAbsent: The module was configured but is absent.
IOModuleNotConfigured: The module was not configured.
ParameterMismatch: This error is returned in case the Always Update Variable option is not set
or in case the REFRESH_OUTPUT function is called for a module that has only inputs.
OutputWriteFail: Module internal critical failure (the function transmitted frame was not returned
within the defined time-out).
FrameTransmitError: Module internal critical failure (error during the frame transmission in the
function).
BusBusy: Module internal critical failure (o the bus isn’t enabled for frame transmission in the
function).
Utilization example in ST language:
PROGRAM MainPrg
VAR
Info: ERRORCODE;
byRackNumber: BYTE;
bySlotNumber: BYTE;
END_VAR
//INPUTS:
byRackNumber := 0;
bySlotNumber := 10;
//FUNCTION:
//Function call.
Info := REFRESH_OUTPUT (byRackNumber, bySlotNumber);
//Variable ‘Info’ receives possible function errors.

Table of Contents