beautypg.com

Spectrum Controls 1746sc-NI8u User Manual

Page 65

background image

Chapter 5: Ladder Program Examples

53

Dynamic

Programming

The following example explains how to change data in the channel
configuration word when the channel is currently enabled.

Example - Execute a dynamic configuration change to channel 2 of the
universal module located in slot 3 of a 1746 chassis. Change from
monitoring a bipolar 10 V signal to monitoring the CJC sensors
mounted on the terminal block. This gives a good indication of what
the temperature is inside the control cabinet. Finally, set channel 2 back
to the bipolar 10 V range.

Figure 5.4

Dynamic programming example

Set channel 2 back ±10V

Set channel 2 to CJC

Set up all eight channels

s:1

] [

15

COP

COPY FILE

Source #N10:0

Dest #O:3.0

Length 8

Program Listing

s:1

] [

0

MOV

MOVE

Source N10:8
Dest O:3.2

B3

{ OSR ]

0

Rung 2:0

Rung 2:1

Rung 2:2

Rung 2:3

I:1.0

]/[

0

MOV

MOVE

Source N10:2
Dest O:3.2

B3

{ OSR ]

1

I ENDI