Create Array and Get Array in 800xA Control Builder Programming

I am trying to create an array of String. "new" is a structured datatype of strings. Also using Get array I am trying to read the value one at a time and use this string value as a message for my Alarm Cond Block.

Please let me know where might be the errors. I am getting Status = -1 for CreateArray and Status = -6 for GetArray.

 CreateArray - GetArr.png

Add New Comment


asked 7 months ago



Try to create array in first scan, either place CreateArray code in '_start' code or in follwoing if else statement.

Where FirstScan has initial value as True.

If FirstScan then

FirstScan: = false;

CreateArray(MyArray, 1, 20, InputElement, Status);


Try to follow online help


answered 7 months ago


Add New Comment


The "CreateArray" call should only execute ONCE, at Warm Start.

On a general note ... Arrays of strings are likely to be a terrible waste of memory. And string handling in an AC800M is quite inefficient. Try to hold messages like this in Project Constants and reuse them as much as possible (Project Constants are only held in one single location in memory and are much more efficient when sharing common values). Avoid doing calulations and parsing on String values if at all possible.

Rob Lyon   

answered 7 months ago


Add New Comment

Get weekly AKS updates

Partner Exclusive Webinars


> – Login to the partner portal to register

Points Redemption Program - Redeem your points for ABB training, Bluetooth speakers and mugs. Terms and conditions >

Earn points when you refer a friend
AKS Referral Program is "Live" - Learn more

AKS Experts

Ask MMM   

Rank: 5

ABB PA CT Technical Support

Ask kstoilov   

Rank: 11

Control System Engineer: 800xA, Compact 800, AC500, AC31-50, Advant Master, Simatic, AC&DC Drives 11 years worked for ABB - Control Systems

Ask Flavio Mussolin   

Rank: 4

ABB AVP, Senior Electronic and Automation Engineer with over 30 years of experience in the field of process automation automotive, pharmaceutical, hollow glass, steel and rolling.

Ask Govindaraj   

Rank: 10

Working in ABB India Operation Center. Have Project engineering and commissioning experience in ABB 800xA, Freelance, AC500.

Ask Harsha.D   

Rank: 7

Tech.Support,software and commisioning engineer with Proficient knowledge in 800xA and its products, RNRP,Networking in general.

Ask Rob Lyon   

Rank: 2 I'm an independent DCS software and commissioning engineer with extensive experience in 800xA and other ABB products. I've worked in almost every corner of the world and still haven't seen it all.

Ask nikismith   

Rank: 247

I have been a part of the Recording & Control Factory team for 17 years in total, having spent a number of years as a repairs technician withi the manufacturing department, but being in my current role for 9 years now.

Ask Ronny Lindström   

Rank: 17

ABB Service Engineer

Ask Dieter Henkel   

Rank: 19

Ask WvanWees   

Rank: 6

I'm a senior service engineer working for ABB in The Netherlands.

Ask Stefan Stromqvist   

Rank: 1

I joined ABB in the year of 1994 and has since 1999 been working as a Service & Support Engineer at BU Control Technologies in Västerås, Sweden. My areas of expertise are: 800xA Base, 800xA for Advant Master, Information Management, operating systems, RNRP and Ethernet comms/networking in general.

Ask Sumit Gargav   

Rank: 3

I have worked with Freelance in majority, with 800xA FD and Melody system partly. Also had opportunity to work with Protocols - HART,Profibus,FF & Modbus.