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

can the PLC send an "unsolicited" message #4

Closed
delarosa1962 opened this issue Sep 25, 2015 · 7 comments
Closed

can the PLC send an "unsolicited" message #4

delarosa1962 opened this issue Sep 25, 2015 · 7 comments

Comments

@delarosa1962
Copy link

I see the bit for request|response in the header. As a client it is clear to set as request --- when the reply comes the response bit should be set. So, in the event that the PLC decides to send a block of data --- what would the instruction be in the PLC and what should the header/command would look like at the client when the message is received ?

@soberschmidt
Copy link
Contributor

It is a client API actually without server functions. Use notification to update your client without polling

@delarosa1962
Copy link
Author

Hello,

So, if the SoftPLC has a UDT that represents some transaction and the PLC is updating it --- would the PLC be able to issue a "send UDT now" ? I understood that the notifications can be used, this is fine. But how are notifications handled for an UDT or array for example and their updates are not done in one scan for example. Other PLC systems have instructions to send data (ie, Siemens = TSEND, AG_SEND, Rockwell = MSG, Mitsubishi = BUFSND)

@soberschmidt
Copy link
Contributor

Notifications can be used for standard datatypes (bool, int, etc) and complex datatypes (structs, arrays....). Their is no difference

@delarosa1962
Copy link
Author

Thanks. Is the notification sent because the data changes or because the SoftPLC decidest to send it?

@soberschmidt
Copy link
Contributor

depend on the attributes of the notification. the plc can sent it cyclically or onchange

@delarosa1962
Copy link
Author

What PLC instruction will deliver a block of data ?

@soberschmidt
Copy link
Contributor

check your issue #3

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

2 participants