![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Nov 2022
Location: New Zealand
Posts: 16
|
Omron CX-Programmer Initialising Arrays
Is there a way in CX-Programmer to initialise an array?
Set all values to zero or false depending on the data type Solutions in Ladder and Structured Text are needed The solution that uses the fewest steps is desired. ![]() Potential solutions - Set each element to 0 or False (Consumes many steps to do this) - Use a for loop to reset all values - Incapsulate a for loop into a function that has an array as an In_Out Parameter. - For Bool arrays mov a #0 into the first element of the array. (Not able to do this with other array types) I would like to know if there are methods that I am not seeing for accomplishing this task. ![]() |
![]() |
![]() |
#2 |
Member
|
Take a look at the BSET(071) instruction.
|
![]() |
![]() |
#3 |
Member
![]() ![]() Join Date: Nov 2022
Location: New Zealand
Posts: 16
|
Is there a way to call BSET from Structured Text?
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Omron CX programmer retentive timer | gzPLC | LIVE PLC Questions And Answers | 3 | January 3rd, 2020 04:28 PM |
Unable to Open Omron CX Programmer Project | isteak007 | LIVE PLC Questions And Answers | 4 | April 7th, 2014 12:43 PM |
Omron cx programmer keep | T Gibbs | LIVE PLC Questions And Answers | 4 | December 17th, 2012 05:54 PM |
Omron CX Programmer slow screen update while online | 69FIREBIRD | LIVE PLC Questions And Answers | 7 | May 8th, 2009 03:39 AM |
advantech with Twincat over Parker with Omron CX Supervisor | rock | LIVE PLC Questions And Answers | 3 | March 7th, 2004 07:54 PM |