¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

CH5 Reserved Joins #reservedjoins #xpanel #ch5


 

So I've gotten my Ch5 angular project to upload and show up on the TSW1060.

I'm trying to detect if the touchpanel is Online with the system... reserved join 18494.
But all i ever get is false, even though the processor says it's online.

I've got this in the constructor off my app.component.ts:
CrComLib.subscribeState('b', '18494', (value:any) =>{
        console.log("Received from join 18494",value);
        this.ControlSystemOnline = value;
      }
and this on the HTML
      ControlSystemOnline={{ControlSystemOnline}}
Any suggestions??


 

For reserved joins you can subscribe to the signal name instead of using the reserved join number when working with CH5.

I (among others) use:l something like this:

CrComLib.subscribeState('b', 'Csig.All_Control_Systems_Online_fb', (state) => {
? ? console.log(`Control system online: ${state}`);
});?

Check out the reserve join reference thats referenced by the CH5 developer microsite - I'm away from my computer and can't link directly.

-Scott


On Fri., Feb. 25, 2022, 6:59 p.m. Daniel Portugal, <joyousdan@...> wrote:
So I've gotten my Ch5 angular project to upload and show up on the TSW1060.

I'm trying to detect if the touchpanel is Online with the system... reserved join 18494.
But all i ever get is false, even though the processor says it's online.

I've got this in the constructor off my app.component.ts:
CrComLib.subscribeState('b', '18494', (value:any) =>{
        console.log("Received from join 18494",value);
        this.ControlSystemOnline = value;
      }
and this on the HTML
      ControlSystemOnline={{ControlSystemOnline}}
Any suggestions??