AdvancedHMI Write to analogue o/p card

pr_wainwright

Member
Join Date
Jun 2011
Location
Stockton on Tees
Posts
109
Hi,
I have created a test rig for testing our company PLC code. I have also created a SCADA program using AdvancedHMI to drive the I/O. I am using Allen Bradley CompactLogix & the digital I/O is working fine with Advanced HMI but I can not write values to the analogue output cards. I am using the code below:

EthernetIPfofCLXComm1.WriteData("EXP_RACK_1:6:0.Ch0Data", nud_Rack1_A0_0_0.Value)

nud_Rack1_A0_0_0 is a numeric up/down component.

I am getting an 'Index was outside the bounds of the array' exception.

Any help appreciated.

Thanks
Paul.
 
Hi,
I have created a test rig for testing our company PLC code. I have also created a SCADA program using AdvancedHMI to drive the I/O. I am using Allen Bradley CompactLogix & the digital I/O is working fine with Advanced HMI but I can not write values to the analogue output cards. I am using the code below:

EthernetIPfofCLXComm1.WriteData("EXP_RACK_1:6:0.Ch0Data", nud_Rack1_A0_0_0.Value)

nud_Rack1_A0_0_0 is a numeric up/down component.

I am getting an 'Index was outside the bounds of the array' exception.

Any help appreciated.

Thanks
Paul.
Update - nud_Rack1_A0_0_0.Value is a decimal value. When casting to an integer the code works.
 

Similar Topics

I would like to temporarily install AdvancedHMI on the same computer as FactoryTalk View SE. I am waiting for another contractor to finish the FTV...
Replies
3
Views
556
Hi all, just wanna ask if anyone has used an M221 controller and successfully connected to AdvancedHMI
Replies
1
Views
1,313
MessageDisplayByValue question is there a way to embed a tag value in the messages of the MessageDisplayByValue function ??? Similar to what is...
Replies
10
Views
2,817
Hi All I have been switching between 2017 and 2019, all depending on which one i found more stable, at the moment I use 2019 I was just...
Replies
1
Views
1,478
I tried to use AdvancedHMI as a Modubius Client and it does poll the data from a Modbus server. But I am unable to use AdvancedHMI as a server...
Replies
10
Views
3,043
Back
Top Bottom