beautypg.com

6 s826_virtualsafeenablesread, S826_virtualsafeenablesread – Sensoray 826 User Manual

Page 17

background image

enables

Pointer to array of values (see Section 4.2) to be programmed into the Safe Enable registers.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value is an error code.

Remarks

This function should only be called when the SWE bit is set (see S826_SafeWrenWrite). The function will fail without
notification (return S826_ERR_OK) if SWE=0 (see Section 10.1.1).

4.2.6 S826_VirtualSafeEnablesRead

The S826_VirtualSafeEnablesRead function returns the contents of the virtual output channel Safe Enable registers.

int S826_VirtualSafeEnablesRead(
uint board, // board identifier
uint *enables // pointer to data buffer
);

Parameters

board

826 board number. This must match the settings of the board's dip switches as described in section 2.2.

enables

Pointer to a buffer (see Section 4.2) that will receive the Safe Enable register contents.

Return Values

If the function succeeds, the return value is zero.

If the function fails, the return value is an error code.

826 Instruction Manual

12

Virtual Outputs