[GitHub] [plc4x] glcj opened a new pull request #264: S7event

2021-08-11 Thread GitBox


glcj opened a new pull request #264:
URL: https://github.com/apache/plc4x/pull/264


   The purpose of this PR is to incorporate event handling in the S7 driver, 
specifically for S7-300, S7-400 & VIPA devices.
   
   The supported events are:
   
   MODE: Changes in the operating state of the CPU.
   SYS: Internal events of the CPU and its components.
   USR: User events that are stored in the diagnostic buffer.
   ALARM: Alarm events by user program, namely: ALARM, ALARM_S, ALARM_8, NOTIFY.
   
   An example program is attached to show the handling of these events 
asynchronously.
   
   The modifications were tested against S7-314 and S7-417 CPUs, obtaining 
satisfactory results.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




PR: S7Event

2021-08-11 Thread Cesar Garcia
Hello,
Set the PR for event handling with the S7 driver.

With this PR it is possible to receive asynchronously the events of the PLC
S7-300, S7-400 & VIPA, as well as the VFD G120 PN which generates ALARM_S
for its diagnostics.

I annex the files that are indicated as with differences, I require your
help to match the files since it is indicated that it must be a person with
administrative rights.

Thanking you for your help and guidance,



Conflicting files
build-utils/language-java/src/main/java/org/apache/plc4x/language/java/JavaLanguageOutput.java
plc4j/drivers/pom.xml
plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7ProtocolLogic.java
protocols/s7/src/main/resources/protocols/s7/s7.mspec






-- 
*CEOS Automatización, C.A.*
*GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
*PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*

*FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
*Ing. César García*

*Cel: +58 414-760.98.95*

*Hotline Técnica SIEMENS: 0800 1005080*

*Email: support.aan.automat...@siemens.com
*


ModBus observe connection state...

2021-08-11 Thread Andreas Vogler
Hi,

How can I check the state of a connection? Especially if it is lost.

I have a ModBus connection and when I turn off the ModBus server I do not get 
any error. 

I have found the orTimeout option at the response object… 

But I want somehow detect if a connection is lost, so that I can do a reconnect…

Hope someone can give me an advice how this is typically done with Plc4x.

Regard,
Andreas