Sensoray 2600 User Manual

Page 67

Advertising
background image

Sensoray 2600 Programming Guide

63

Gateway Action Scheduling

Returns:

Error code as described in section 5.5. Zero is returned if the operation was successful.

Benchmark: 0.9 ms.

Example:

// Set the PWM ratio for SSR channel 5 on the 2653 at MM number 0, IOM port 2.

// PWM ratio = on for 20 msec, off for 30 msec.

void *x = S26_SchedOpen( 0, 1 );

S26_Sched2653_SetPwmRatio( x, 2, 5, 10, 15 );

S26_SchedExecute( x, 1000, 0 );

Advertising