6editingtheprogram, 36 pgmⅢ programmable ethernet control system – CREATOR CR-PGMIII User Manual

Page 43

Advertising
background image

CREATOR CHINA 2011-03

WWW.CREATOR1997.COM

36

PGMⅢ Programmable Ethernet Control System

Right click at the blank area, and choose IPM at
the pop up menu, then the following dialog will
show up: choose the cir file learnt just now to
open: as shown below:

After successful import, we can see our learnt IR
control codes in the IR Control Codes Database,
as shown in the following image:

7.7.6 Editing the program

After finishing all the above configuration steps,
we need start the programming stage

We want the controller to send out IR control code
for

PLAY

when

we

press

down

tp_1’s

JOBMONBER 1 button, and send out IR control
code for PAUSE when we press down tp_1’s
JOBMONBER 2 button.

Hereby

we

need

to

use

the

function

SEND_IRCODE ( ) to send out the IR control
codes.

The program is as following:

BUTTON_EVENT(tp_1,1)

//

tp_1 touch

panel’s JointNumber1

{

PUSH()

{

//send out IR control code for PLAY from

DVD_M

SEND_IRCODE(DVD_M,1,

IRCODE<“UserIRDb:DENON:DVD:RC-1102

:T20110225093436:Paly”);

}
RELEASE()
{
}

}
BUTTON_EVENT(tp_1,2)

//tp_1 touch

panel’s Jointnumber 2
{

PUSH()
{
// send out IR control code for PAUSE

from DVD_M’s IR channel 2
SEND_IRCODE(DVD_M,2,
IRCODE<“UserIRDb:DENON:DVD:RC-1102:
T20110225093436:Pause”>);

}
RELEASE()
{
}

}

Advertising