Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I connect to s7-1200?There are no tracks and slots in s7-1200,errors:invalid pdu received or invalid buffer passed to send/receive '19' #51

Closed
XQacc opened this issue Nov 1, 2021 · 4 comments

Comments

@XQacc
Copy link

XQacc commented Nov 1, 2021

No description provided.

@robinson
Copy link
Owner

robinson commented Nov 2, 2021

Hi,
for s7-1200 just add slot=0, rack=0 and it should work.
BR

@robinson robinson closed this as completed Nov 2, 2021
@XQacc
Copy link
Author

XQacc commented Nov 3, 2021

Hi, for s7-1200 just add slot=0, rack=0 and it should work. BR

set slot=0, rack=0 ,errors:client.AGReadDB: ISO : Invalid Buffer passed to Send/Receive'19'
and used the packet capture tool to view protocol is ISO 8073/COTP,is need other setting?
connectionTypePG = 1 // Connect to the PLC as a PG
connectionTypeOP = 2 // Connect to the PLC as an OP
connectionTypeBasic = 3 // Basic connection
Is it related to this?

@robinson
Copy link
Owner

robinson commented Nov 4, 2021

no, I think the configuration is that, but you are reading the wrong size of data... i suggest you take a look in the example

@iotopo
Copy link

iotopo commented Mar 15, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants