8send_lite, 9send_dmx512, 10send_acar – CREATOR CR-PGMIII User Manual

Page 32: 11send_qacar, 12on_vol, 25 pgmⅢ programmable ethernet control system

Advertising
background image

CREATOR CHINA 2011-03

WWW.CREATOR1997.COM

25

PGMⅢ Programmable Ethernet Control System

Example
Io_m = M:1000:IO; // define the I/O interface with
the mother board number of 1000
int iostate =READ_IO(Io_m,1); // read the first
channel’s status of Io_m

7.6.2.8 SEND_LITE

void SEND_LITE(String dev,int channel,int val)
Function:Control the lighting
Parameters:
dev - :Lighting device
channel - :Device channel number
val - :Analog value(Note: the analog value range
is 0 - 65535)

Example
lite_n = N:8:LITE; // define the lighting device with
the CR-NET number of 8
SEND_ LITE (lite_n,1,65535); // send analog
value of 65535 to the first channel of lite_n

7.6.2.9 SEND_DMX512

Void
SEND_DMX512(String dev,int channel,int val)
Function:Control DMX512
Parameters:
dev - :lighting device
channel - :Device channel number
val - :Analog value(Note: the analog value range
is 0 - 65535)

Example
lilt_L = L:7:DMX512; // define the DMX512 device
with the CRLINK(CAN) number of 7
SEND_DMX512(lilt_L,1,65535);// send the
analog value of 65535 to the first channel of lilt_L

7.6.2.10SEND_ACAR

void SEND_ACAR(String dev,int channel,int val)
Function : Control the voltage output put of the
conversion Card

Parameters:

dev - :Conversion Card device
channel - :Device channel number
val - : Analog value (Note: get the value
according the actual external device. The general
range is -12V ~ 12V of double type)

Example
acar_L = L:7:ACAR; // define the ACAR device
with the CRLINK(CAN) number of 7
SEND_ACAR( acar_L,1,-12);// send analog value
-12 to the first channel of lilt_L, i.e., set the
Conversion Card’s output to -12V

7.6.2.11SEND_QACAR

Void SEND_QACAR (String dev,int channel)
Function : Send the request for the Conversion
Card’s voltage value. After the request being sent
out, the Data EVENT of the Conversion Card will
be triggered, and the voltage value will gotten
there. For the detailed example, please refer to
the other functions’ BYTES_TO_INT
Parameters:
dev - :Conversion Card Device
channel - :Device channel number

Example
Acar_m = M:8:ACAR; //Define the Conversion
Card with the motherboard number of 8
SEND_QACAR (Acar_m,1); //Read the voltage
value of the first channel of the Acar_m

7.6.2.12 ON_VOL

void ON_VOL(String dev,int channel)
Function:Turn on the volume
Parameters:
dev - :Sound controlling device
channel - :Device channel number

Example
vol_N = N:9:VOL; // define the sound controlling
device with the CR-NET device number of 9:
vol_N

Advertising