3964R_RK512_01.lib - Wago
3964R_RK512_01.lib - Wago 3964R_RK512_01.lib - Wago
PROCEDURE_3964RWAGO-I/O-PRO 32 library elementsSend message:Via the parameter “xSEND_DATA” = FALSE, the user checks whether the module isready to accept a send job.If the module is ready to send, the user transfers his user data in thesend structure array "Data“ as well as the number of bytes to be sent inthe send structure element "Count“ and trigger the job by setting the parameter "xSEND_DATA“ .Upon execution of the job, the module automatically triggers the parameter"xSEND_DATA“, signaling the user the execution of the job.The user can now verify the error-free execution by testing the parameter "ERROR“.Code example: IF xSEND_DATA = FALSE THEN(* prepare send data *)utSEND_BUFFER.Data[ 0 ] := 16#01;utSEND_BUFFER.Data[ 1 ] := 16#02;utSEND_BUFFER.Data[ 2 ] := 16#03;(* enter number of data to be sent *)utSEND_BUFFER.Count := 3;(* trigger job *)xSEND_DATA := TRUE;END_IF (* ready to send *)8 – 3964R_RK512_01.lib ml00401d WAGO-I/O-PRO 32
typ3964R_BUFFER (data type)Appendix A - Other librariesWAGO-I/O-PRO 32 library elementsCategory:Name:typ3964R_BUFFERType: Data type X EnumerationLibrary name:3964R_RK512_01.libStructure:Element: Data type: Description:Count INT Number of characters in thearrayData ARRAY[0..127] OF BYTE Byte array for user dataDeclaration:TYPE typ3964R_BUFFER :STRUCTCount : INT;Data : ARRAY[0..127] OF BYTE;END_STRUCTEND_TYPEDescription:This structure supports the data exchange to the user.WAGO-I/O-PRO 32 Version 1.0.2 3964R_RK512_01.lib - 9
- Page 1 and 2: Appendix A - Other librariesWAGO-I/
- Page 3 and 4: Appendix A - Other librariesContent
- Page 5 and 6: Appendix A - Other librariesWAGO-I/
- Page 7: Appendix A - Other librariesWAGO-I/
- 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>WAGO-I/O-PRO 32 library elementsSend message:Via the parameter “xSEND_DATA” = FALSE, the user checks whether the module isready to accept a send job.If the module is ready to send, the user transfers his user data in thesend structure array "Data“ as well as the number of bytes to be sent inthe send structure element "Count“ and trigger the job by setting the parameter "xSEND_DATA“ .Upon execution of the job, the module automatically triggers the parameter"xSEND_DATA“, signaling the user the execution of the job.The user can now verify the error-free execution by testing the parameter "ERROR“.Code example: IF xSEND_DATA = FALSE THEN(* prepare send data *)utSEND_BUFFER.Data[ 0 ] := 16#01;utSEND_BUFFER.Data[ 1 ] := 16#02;utSEND_BUFFER.Data[ 2 ] := 16#03;(* enter number of data to be sent *)utSEND_BUFFER.Count := 3;(* trigger job *)xSEND_DATA := TRUE;END_IF (* ready to send *)8 – <strong>3964R</strong>_<strong>RK512</strong>_<strong>01.lib</strong> ml00401d WAGO-I/O-PRO 32