Produkte » Produkte
Beispiel-Scripts
Kategorie: Communication
| example_3964 | |
|---|---|
Communication with 3964R or 3964 needs an initialization before data exchange is possible. You need to set the ReceiveBuffer and the maximum number of bytes to receive.
|
| example_3964R | |
|---|---|
Communication with 3964R or 3964 needs an initialization before data exchange is possible. You need to set the ReceiveBuffer and the maximum number of bytes to receive.
|
| example_DIN19244 (Master) | |
|---|---|
This command exchanges data with DIN 19244 routine.
Sendbuffer and Receivebuffer must have a special data format. See DIN19244 specification for details.
After data was sent by the gateway the routine waits for a response.
|
| Example_Modbus-RTU (Master) | |
|---|---|
This command takes two buffers and sends the data given in the variable Source. Source contains all data necessary for a Modbus RTU record except the CRC checksum. This checksum is generated by the function itself.
The function returns the number of bytes received by the Modbus Slave. If a timeout occurs this value is 0. If no timeout occurs the function copies the slave's response data into the variable Destination.
You can also set the timeout (before "BusStart") for the response with "Set ( ModbusRTUTimeout , 0 ) ; // 0..65535"
|
| Example_Modbus-RTU (Slave) | |
|---|---|
This script realized the Modbus-RTU-SLAVE function
Communication - Modbus - Read modbus Slave Data
Write Modbus Slave Data
|
| Example_Modbus-RTU (Slave) für IC Basisb | |
|---|---|
This script realized the Modbus-RTU-SLAVE function - for IC Basisboard with LED display.
Communication - Modbus - Read modbus Slave Data
Write Modbus Slave Data
|
| example_ModBus_Slv | |
|---|---|
This script realized the Modbus-RTU-SLAVE function
Communication - Modbus - Read modbus Slave Data
Write Modbus Slave Data
|
| example_RSModBusRTUSlv | |
|---|---|
Only for RS RS Hardware.
This script realized the Modbus-RTU-SLAVE function on the fieldbus side.
Communication - Modbus - FBRS Modbus RTU Slv Read
FBRS Modbus RTU Slv Write
|
| Example_RS_output | |
|---|---|
SendRS writes the given number of characters to the output buffer of the gateway. As the Buffer is filled with data the hardware (no longer the software) is responsible for accessing serial lines.
With the action SendRS the script has no more control over the data, it is not possible to clear output string etc.
Number is a variable (word) containing the number of bytes to be sent, source is a variable (byte, word, long, ...) containing the data itself.
|
| example_WaitBusDataChanged | |
|---|---|
The command waits the given time for changing busdata. The number of bytes set in the variable Watchsize are observed. If no byte of the observed changes a timeout (return code 2) occurs. The command immediately return on changing data.
If the value for timeout is 0 then the commands wait infinite.
The value for the Watchsize should never be 0.
|
| example_WaitBusDataChanged_PB | |
|---|---|
description
The command waits the given time for changing busdata. The number of bytes set in the variable Watchsize are observed. If no byte of the observed changes a timeout (return code 2) occurs. The command immediately return on changing data.
If the value for timeout is 0 then the commands wait infinite.
The value for the Watchsize should never be 0.
|