Someone with a Siemens S7 1200 who wants to test ?

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hi,

I search someone who wood like to test an application that I made on a S71200 PLC.

Anyone who has a 1200 on his desk ?

variablereaderwriter.jpg

Thanks,
C
 
Hi

Hi,

Thanks for your reply,
If you have the time, could you test this program in communication with the S71200 ?
I've written and tested it with an S7300, but never on a 1200. I think you have to set PLC Slot to 1 for an S71200.

Here is the program:
View attachment Debug.zip

Thanks in advance,

Kind regards,
Combo
 
Db

First: big thanks to test !

Question about the DB, are these optimized DB's or absolute adressed ? Maybe that can cause this... I'm not sure. It works good on an S7-300, but if you say that you cannot read variables, then I think I will need to buy an S7-1200 to optimise my software for getting it work on a S7-1200 as well..

Kind regards,
G

I seem to get a connected but am unable to read any values.
 
No problem.

I think they both were optimized. But I get similar result for absolute DB:

1200Cap.jpg
 
Thanks

Thanks, that would be great.
That schould not be an issue, I tested on Slot 2 with a 300 CPU.

About the S7-1200, I think I will buy one to optimise my software and get it working. o_O

Thanks (y)

Kind regards,
G

I might be able to hook up to a 300 PLC later today
 
Am in the midst of panel construction, but will hopefully get a bit of time later. For the S7-1200 I think it should be Rack 0, Slot 1.
 
Libnodave

Hi,

Yeah, I also tought it would be slot 0, but it looks like something is missing in the Libnodave, because on a S7-300 it works.

Regards,
C



Am in the midst of panel construction, but will hopefully get a bit of time later. For the S7-1200 I think it should be Rack 0, Slot 1.
 
Rack is zero, but Slot is 1.

I can't open up the Advanced HMI Siemens version that I got working, I don't have Visual Studio available, but that was via Libnodave and that worked fine with the S7-1200.
 
Connect code

Code:
Public Class S7ConClass
    Private fds As libnodave.daveOSserialType
    Private di As libnodave.daveInterface
    Private dc As libnodave.daveConnection
    Private res As Integer
    Private buf(100) As Byte
    Private localMPI As Integer = 0
    Private rack As Integer = 0
    Public slot As Integer = 1
    Private plcMPI As Integer = 2
    Public IP As String = "0.0.0.0"
    Public Connection As Boolean = False
    Public ConnectionStatus As String = "Disconnected"

    Public Sub Connect()
        fds.rfd = libnodave.openSocket(102, IP)
        fds.wfd = fds.rfd
        If fds.rfd = 0 Then
            MsgBox("IP adress not reachable", MsgBoxStyle.Information, "Error")
            ConnectionStatus = "Disconnected"
            Connection = False
        End If
        If fds.rfd > 0 Then       ' if step 1 is ok
            di = New libnodave.daveInterface(fds, "IF1",
                            0, libnodave.daveProtoISOTCP,
                            libnodave.daveSpeed187k)
            di.setTimeout(1000000)
            res = di.initAdapter
            If res = 0 Then       ' init Adapter is ok
                ' rack amd slot don't matter in case of MPI
                dc = New libnodave.daveConnection(di, 0,
                                                   rack, slot)
                res = dc.connectPLC()
                If res = 0 Then
                    Connection = True
                    ConnectionStatus = "Connected to " + IP
                End If
            End If
        End If
    End Sub

This is the conection code I used in My S7 Classfile.

Can you take a look if you see any mistakes ?

Thanks,

Kind Regards,
G
Rack is zero, but Slot is 1.

I can't open up the Advanced HMI Siemens version that I got working, I don't have Visual Studio available, but that was via Libnodave and that worked fine with the S7-1200.
 

Similar Topics

If there is anyone that would be willing to open up a Siemens S7 program for me, please shoot me a message with your email and I can email the...
Replies
2
Views
1,461
Can someone please explain to me how to use a counter in siemens S7. After reading and simulating both the up and down counters in S7, they work...
Replies
7
Views
8,049
Does anyone know of a way to detect if someone is online with the controller in ControlLogix (from logic) I'm thinking that maybe there is a CIP...
Replies
7
Views
292
Long story short lost our parameter setup for an indradrive m. I have these files saved as backups but dont know how to open them. Can someone...
Replies
12
Views
858
If a programmable controller controls the operation of a motor, what connects motor control to the PC? A) Line voltage B) I/O device C) Modem D)...
Replies
27
Views
6,955
Back
Top Bottom