beautypg.com

Pepper Computer Modular Computers RS485 User Manual

Page 281

background image

SMART I/O User’s Manual

©1996 PEP Modular Computers GmbH

October 01, 1996

Page 5 - 125

5

Chapter 5 Analog Modules

A complete list of the operate

COMMANDS

may be obtained by selecting a

project from the ISaGRAF projects group, opening an application and

observing the Common defines in the Dictionary 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

: The syntax and usage have already been explained.

O_SET_LED

: This operate call allows the user to control the two

red LEDs on the board’s front panel. The syntax

is as follows:

:= OPERATE(, O_SET_LED, );

where

represents the analog return variable and can

be zero if the operate call is supported and the

correct

is passed or non-zero if an

error occurred.

represents any module variable and

represents the LED to be controlled and must

be one of:

OA_LED1_ON, OA_LED2_ON,

OA_LED1_OFF

or

OA_LED2_OFF.

O_ENABLE_CONV

: This operate calls tells ISaGRAF to enable the

conversion of a particular channel of a connected

SM-DAC1 module. The syntax is as follows:

:= OPERATE(, O_ENABLE_CONV, 0);

where

represents the analog return variable and can

be zero if the operate call is supported and the

correct

is passed or non-zero if an

error occurred.

is the variable name for the channel where the

operate call is to take effect.

This manual is related to the following products: