Convert S7 1500 example to S7 300

barryoc

Lifetime Supporting Member
Join Date
Nov 2009
Location
Kilkenny
Posts
148
Hi all,


Hope everyone is well. Finally getting around to a home project and am using a S7 1500 example but i only have an S7 300(WinAC RTX). Im following a modbus example and one block uses the move_blk in scl. In my 300 there is only blk_mov. Can anyone help me to write the S7 1500 example to work in my 300. Any help will be greatly appreciated. Apologies for the poor quality image. Link to the video is https://www.youtube.com/watch?v=eH3UUMKy_I0


Image is from 15m 57 seconds.


Many Thanks,
Barry.

S7 1500 SCL.JPG
 
Good old fashioned for loop solution:


Code:
FUNCTION FC2:VOID
VAR_TEMP
    SlaveId:INT;
    Count:INT;
    Index:INT;
END_VAR
Count:=10;
CASE SlaveId OF
    1:
    FOR index:=1 TO Count DO
        DATA_BUFF.REGISTERS[Index]:=MB_COLLECTION.SLAVE1[Index];         
    END_FOR;
    
    2:
    FOR index:=1 TO Count DO
        DATA_BUFF.REGISTERS[Index]:=MB_COLLECTION.SLAVE2[Index];         
    END_FOR;
END_CASE;    
END_FUNCTION
 

Similar Topics

I need to convert some Siemens PLC logic using Siemens TIA V16 to Modicon M580 logic. Is there a tool out there that will get me started? How...
Replies
3
Views
2,666
Dear all For a certain project I have 100+ temperature measurements. Each measurement has a tag name(coming from the electrical schemes). I want...
Replies
5
Views
1,742
I have a dead panelView1400 (not 1400e) that is being replaced with a panelView+1500. I need a little help with the conversion. For the 1400...
Replies
3
Views
2,188
Hello, I am a veteran Mitsubishi programmer, but am new to AB. I have a Micrologix 1500. I am receiving a string via RS232 on Channel 1. In...
Replies
3
Views
4,999
Hello all, I'm currently working on a servo motor linear positioning system (ball screw). I'm all set up regarding communication between my HMI...
Replies
1
Views
79
Back
Top Bottom