S7-1500 SCL - Move Individual REAL values into an Array

Yes, you can program it symbolically, without PEEK or POKE.

I suggest to use method 2 described in this FAQ:
How do you copy memory areas and structured data in STEP 7 (TIA Portal)?

Notice that you have to decide on one the two requirements:
One of the two requirements below must be met to be able to use the "Serialize" and "Deserialize" functions.

Requirement 1: Disable the optimized block access
In the project navigation you right-click the function "Copy"
Click "Properties"
In the column on the right you select "Attributes"
Remove the check mark for "Optimized block access"

Requirement 2: In the "Retain" column you select "Set in IDB"
Choose an FB instead of an FC
Save the array ("tempStore") as a static variable
For the array ("tempStore") you select "Set in IDB" in the "Retain" column
 
I'm sorry if I'm not seeing something obvious here, but can you tell me why do you even have any FB's or loops or anything.. like Lare and janner_10 said...
Since all your tags are scattered around the program and you have to link them manually anyway, why don't you link them directly to the needed tags...

Even if you did what you wanted with for..next I just don't see it cleaner then a simple

"ModbusComms".Reg4000[0]:="Analogue_In_DB".FIT101_Scaled;
"ModbusComms".Reg4000[1]:="Analogue_In_DB".FIT102_Scaled;
etc...

Clean, with visible indexes at first glance, much more readable..
 
I agree, that after seing in post #10 that the addreses are not in a continous block (there is a gap from DB2.DB136 to DB2.DBD188) it is not possible to loop through the data or to transfer the data as a block.
The only way is to transfer them one by one.
 

Similar Topics

Hi guys! Is there a document somewhere that states the difference between SCL in TIA portal versus SCL in classic Step7? I want to reuse some...
Replies
8
Views
3,134
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
87
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
82
Hello, I have a 1764 1500 LSP Series A that keeps failing with DTL_E_FAIL I/O error. Searching around it seems there's a weird issue specifically...
Replies
2
Views
106
Hi all Trying to remotely connect to a TIA Portal PLC. I can ping it without a problem but can't get my software to connect. I've opened port...
Replies
8
Views
331
Back
Top Bottom