3964R_RK512_01.lib - Wago

3964R_RK512_01.lib - Wago 3964R_RK512_01.lib - Wago

13.07.2015 Views

PROCEDURE_3964RGraphical representation:WAGO-I/O-PRO 32 library elementsFunction description:The function module „PROCEDURE_3964R“ must be called cyclically in the main program.The module supports the communication between a serial connection and a communicationpartner using the 3964R protocol.The driver operates under the following reaction times:QVZ = 2 sec acknowledgement delayZVZ = 220 ms character delayBVZ = 4 sec block delaySYZ = 1 sec synchronization delayNote:If the cycle time of the user program is too long, errors may occur in the communication(possibly use of task system at 841).6 – 3964R_RK512_01.lib ml00401d WAGO-I/O-PRO 32

Appendix A - Other librariesWAGO-I/O-PRO 32 library elementsReceive message:Via the parameter “xNEW_DATA_RECEIVED” = TRUE, the user is informedthat a telegram has been received.The user program now calls parameter “ERROR” “ERR_3964R_NO_ERROR”and assumes, if no error is present,the number of valid characters as indicated by the receive structure element “Count”from the receive structure array “Data”.Subsequently, the user program must delete the parameter“xNEW_DATA_RECEIVED”.Code example: IF xNEW_DATA_RECEIVED = TRUE THENIF ERROR = ERR_3964R_NO_ERROR THENFOR I := 0 to (utRECEIVE_BUFFER.Count – 1) DOEND_FOR(* data utRECEIVE_BUFFER.Data[ I ] accept *)xNEW_DATA_RECEIVED := FALSE;END_IF (* NO ERROR *)END_IF (* data received*)Note: If the parameter “xNEW_DATA_RECEIVED” is not deleted, thenext valid telegram will still be written to the receive buffer and previous data are overwrittenWAGO-I/O-PRO 32 Version 1.0.2 3964R_RK512_01.lib - 7

PROCEDURE_<strong>3964R</strong>Graphical representation:WAGO-I/O-PRO 32 library elementsFunction description:The function module „PROCEDURE_<strong>3964R</strong>“ must be called cyclically in the main program.The module supports the communication between a serial connection and a communicationpartner using the <strong>3964R</strong> protocol.The driver operates under the following reaction times:QVZ = 2 sec acknowledgement delayZVZ = 220 ms character delayBVZ = 4 sec block delaySYZ = 1 sec synchronization delayNote:If the cycle time of the user program is too long, errors may occur in the communication(possibly use of task system at 841).6 – <strong>3964R</strong>_<strong>RK512</strong>_<strong>01.lib</strong> ml00401d WAGO-I/O-PRO 32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!