Chaptersix,extensioncards, 1d/aconversioncard, 1features – CREATOR CR-PGMIII User Manual

Page 23: 2externalinput, 3operationinstructions, Chapter six, extension cards, 1 d/a conversion card, 16 pgmⅢ programmable ethernet control system

Advertising
background image

CREATOR CHINA 2011-03

WWW.CREATOR1997.COM

16

PGMⅢ Programmable Ethernet Control System

Chapter Six, Extension Cards

6.1 D/A Conversion Card

6.1.1 Features

Input: 3 ways high-impedance DC input

Output: 3 ways DC output

Convert: Convert between Digital and Analog

Signals: can be used for sampling and controlling.
It is of 10 bit sampling accuracy, and 12 bit output
accuracy.

Input

Voltage

Range:

0V

~

+12V

Output

Voltage

Range:

-12V

~

+12V

The outputted voltage can be adjusted through

the software

Max input voltage: +36V DC

Max Output Current: 5mA

6.1.2 External Input

Max Output Sampling Value: +12V

Overvoltage: +36V

6.1.3 Operation Instructions

How to control the output voltage (D/A

Conversion)
The

CR-PGMⅢ

controller

sends

out

the

commands about the output voltage and channel
number to the Conversion Card. After the
Conversion Card receives the commands, it will
output the corresponding voltage

Read the input voltage (A/D Conversion)

The

CR-PGMⅢ

controller

sends

out

the

commands about which channel’s voltage to be

read. After the Conversion Card receives the
command, it will read and feedback the actual
voltage to the CR-PGMIII.

The following is the programming instructions

for the CR-PGMIII when using the Conversion
Card:
SEND_QACAR
Void SEND_QACAR (String dev, in it channel)

Function: Send out the request of the Conversion
Card’s voltage. After the request being sent out,
the Data EVENT of the Conversion Card will be
triggered, and the voltage value will be seen there.
For the detailed example, please refer to other
functions’ BYTE_TO_INT.

Parameters

dev

-

D/A

Conversion

Card

Device

channel -:The device’s channel number

Sample

Acar_m = M:8:ACAR:192.168.1.20; //Define a
Conversion Card whose mother board number is
8

SEND_QACAR (Acar_m,1); // Read the voltage
on Acar_m’s first channel

BYTES_TO_INT

Int

BYTES_TO_INT

(byte[]

b)

Function: use the byte array’s first 4 bits as an int
value.

Returns

Return converted int value

Sample: The Conversion Card returns data: the
actual voltage of the Conversion Card = returned

Advertising