3964R_RK512_01.lib - Wago

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

13.07.2015 Views

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

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

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

Saved successfully!

Ooh no, something went wrong!