3964R_RK512_01.lib - Wago
3964R_RK512_01.lib - Wago 3964R_RK512_01.lib - Wago
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
- Page 1 and 2: Appendix A - Other librariesWAGO-I/
- Page 3 and 4: Appendix A - Other librariesContent
- Page 5: Appendix A - Other librariesWAGO-I/
- Page 9 and 10: typ3964R_BUFFER (data type)Appendix
- Page 11 and 12: Appendix A - Other librariesDeclara
- Page 13 and 14: Appendix A - Other librariesWAGO-I/
- Page 15 and 16: Appendix A - Other librariesRK512_A
- Page 17 and 18: Appendix A - Other librariesInput/o
- Page 19 and 20: Appendix A - Other librariesRK512_P
- Page 21 and 22: Appendix A - Other librariesWAGO-I/
- Page 23 and 24: Appendix A - Other librariesWAGO-I/
- Page 25 and 26: Appendix A - Other librariestypDB (
- Page 27 and 28: Appendix A - Other librariesRK512_A
- Page 29 and 30: Appendix A - Other librariesWAGO-I/
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