05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SETPORTCONFIG(PORT, PARAM, VALUE)<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

The following setup shows how to modify the RS232 port from the device display.<br />

• Create a tag for each parameter value, i.e. Baud, DataBits, StopBits, Parity<br />

and PhysicalMode. Make sure all tags are set to retentive.<br />

• Insert the tags on the User Interface for operator access.<br />

• Create a button, set its action to User Defined and enter the CommitAndReset()<br />

function in the OnPressed field.<br />

• Create a user program with the following code:<br />

Program1<br />

SetPortConfig(2, 1, Baud);<br />

SetPortConfig(2, 2, DataBits);<br />

SetPortConfig(2, 3, StopBits);<br />

SetPortConfig(2, 4, Parity);<br />

SetPortConfig(2, 5, PhysicalMode);<br />

• Call this program in the OnLoad field in the User Interface.<br />

The user can now enter the port settings on the display and will commit the changes when<br />

pressing the button. The device will cycle power to change the port settings.<br />

PAGE 410<br />

http://www.redlion.net/controller

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!