Pepper Computer RS485, RS232 user manual SMSSISetSetPoint Syntax

Models: RS485 RS232

1 320
Download 320 pages 36.43 Kb
Page 314
Image 314

SMART I/O User’s Manual

Chapter 6 Communications Modules

 

 

 

 

 

 

 

 

 

 

6.2.12.4 SMSSISetSetPoint

Syntax

error_code SMSSISetSetPoint(u_int8 PortNr, u_int32 Setpoint);

Description

This function copies the setpoint to an internal register which will only be sent to the SM-SSI when the function SMSSISetCtrlReg() is called. This function is used to set the preset value for the comparator if testing for a match.

Input

u_int8 PortNr

u_int32 Setpoint

Number of the SM port to set

Value of the comparator register (0x0 -> 0xFFFFFF) 24-bit

Output

error_code

Example

SUCCESS

E_BMODE if the module is unknown or standard OS-9 error code (refer to the OS-9 Technical Manual Error Codes Section).

RetVal = SMSSISetSetPoint(0, 0xFF00FF);

 

 

 

 

Page

6- 32

©1996 PEP Modular Computers GmbH

October 01, 1996

 

 

 

Page 314
Image 314
Pepper Computer RS485, RS232 user manual SMSSISetSetPoint Syntax