Digital Modules

SMART I/O User’s Manual

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A complete list of the operate COMMANDS may be obtained by selecting a project from the ISaGRAF projects group, open- ing an application and observing the Common defines in the Dic- tionary pull-down menu. Note that not all calls in the list may be used within the SMART I/O environment. However, the calls applicable to this module are:

O_INIT_CODE

Syntax and usage as explained above.

O_SET_LED

This operate call allows the user to control the yellow LED on the board’s front panel. The syntax is as follows:

<analog var> := OPERATE(<iovar>, O_SET_LED, <var>);

where

<analog var> represents the analog return variable and can be zero, if the operate call is supported and the correct <var> is passed, or non-zero, if an error occurred.

<iovar>

represents any module variable, and

<var>

represents the LED to be controlled and must

 

be one of

 

OA_LED1_ON or

 

OA_LED1_OFF.

O_EXT_POWER

This operate call can detect whether the external power has failed or not, and has the following syntax:

<analog var> := OPERATE(<iovar>,

08 Jan. 98

Manual ID 09901, Rev. Index 0500

Page 4 - 51

Page 137
Image 137
Pepper Computer RS232, RS485 user manual Oextpower