beautypg.com

Setpoint – Watlow LogicPro User Manual

Page 230

background image

Chapter 12: Function Blocks

LogicPro User’s Guide

214

Watlow Anafaze

Doc.# 28002-00 Rev 3.00

Setpoint

A setpoint can be used in a logic program by creating a vari-
able in the logic program that points to the setpoint parameter
as if it were physical I/O. This allows the logic program to ex-
amine or set the value of a setpoint. The I/O address for Set-
point is constructed from the channel number only.

To read or set a setpoint with a logic program variable:

1.

Open the

Add Program/Resource Variable

dialog box.

2.

Enter a unique variable

Name

.

3.

Select

INT

from the

Type

list.

4.

Select

Input

or

Output

by clicking the corresponding check

box.

5.

Select

Setpoint

from the

IO Driver

list.

6.

Select

WORD

as the

IO

Size.

7.

In the

IO Physical Address

field enter the channel number

(1 to 5 for CPC204; 1 to 9 for CPC208).

8.

Click

[OK]

.

Setpoint Addressing Example

To create a variable named Setpoint_2 that reads the value of
the setpoint of channel 2, set the options in the

Add Program/

Resource Variable

dialog box as illustrated below.