Produkte


dd

Beispielskripts: Kategorien

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.
Download  example_3964.dss
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.
Download  example_3964R.dss
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.
Download  example_DIN19244_(Master).dss
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"
Download  Example_Modbus-RTU_(Master).dss
Example_Modbus-RTU (Slave)
 
This script realized the Modbus-RTU-SLAVE function Communication - Modbus - Read modbus Slave Data Write Modbus Slave Data
Download  Example_Modbus-RTU_(Slave).dss
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
Download  Example_Modbus-RTU_(Slave)_fr_IC_Basisb.dss
example_ModBus_Slv
 
This script realized the Modbus-RTU-SLAVE function Communication - Modbus - Read modbus Slave Data Write Modbus Slave Data
Download  example_ModBus_Slv.dss
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
Download  example_RSModBusRTUSlv.dss
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.
Download  Example_RS_output.dss
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.
Download  example_WaitBusDataChanged.dss
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.
Download  example_WaitBusDataChanged_PB.dss

 

« Zurück