beautypg.com

4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 234

background image

234

2 Installation and Specifications

2.4 F

o

rm

ulas

Dout function syntax

Hn = Dout(Pin number/range of pins, state, delay)

Where:

Pin number/range of pins specifies which output pin or
pins are used.

State is the logic level to output to the specified pins.

Delay is the output period in seconds - if a delay is not
included, the output is continuous.

Example 1:

H1 = Dout(3,1)

H1 = Sets Dout pin 3 to a logical 1 continuously

Example 2:

H1 = Dout(3--5,1,5sec)

H1 = Sets Dout pins 3 through 5 to a logical 1 for 5 seconds, then
to zero