Produkte » Produkte
Beispiel-Scripts
Kategorie: Device Control
| example_Basisboard_Set_RS_FB_StateLED | |
|---|---|
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_Basisboard_Set_RS_StateLED | |
|---|---|
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_databits_9_bit | |
|---|---|
It is possible to set the number of data bits for the serial communication.
|
| Example_delay | |
|---|---|
Execution of the actual script is delayed for given time. The time is in milliseconds and can take directly values from 0 to 65535. It is not possible to hold the time in a variable.
|
| example_Errorcode | |
|---|---|
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_FieldbusID | |
|---|---|
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_Get_FieldbusLen | |
|---|---|
read or write the actual size of the bus input side, input is seen from the device's view.
|
| example_gw_control_set_baudrate | |
|---|---|
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_gw_control_set_RS_StateLED | |
|---|---|
only for SC
Set RS_State_LED will set the bicolor Led on the RS side
|
| example_gw_control_set_select_ID | |
|---|---|
only for SC
Set SelectID will set static the 4 yew Led´s on the RS side
|
| example_gw_control_set_warningTime | |
|---|---|
only for SC
Set Errorcode will set the 4 yew led´s on the RS side during a default value of 60.000 ms (1 min) or your customer value.
|
| example_IC_CO_set_ID_and_baudrate_with_basebord | |
|---|---|
This example need the base board to set the CO ID and baudrate over the dip switch.
Sets the given parameter to the const-value. The parameter is one of the parameters defined for this command, the value must be one of the valid values for this parameter.
|
| example_IC_functions_DirectAccess | |
|---|---|
This value is to be used for ShiftRegisterInputType and ShiftRegisterOutputType.
It is necessary to set Input and Output Type to the same value.
This is a possibility to direct access the µP port pins.
|
| example_InitFIFO | |
|---|---|
Sets a virtual ringbuffer to a user defined lenght.
|
| example_ParamBusStateLED | |
|---|---|
This script shows how the state of the bus may be
detected from a script.
|
| example_ReadWriteEEROM | |
|---|---|
This script demonstrates saving a number
of values permanently in the devices EEROM
those values remain even if the device is restarted.
|
| example_RS485 | |
|---|---|
Determine the kind of the RS interface.
Possible values range from 0 to 2, reflecting RS232, RS422 and RS485. If you like to use a UNIGATE-SC in RS485 mode or if you like to use a UNIGATE-IC's TE pin set the corresponding RS-type.
|
| example_SetSerialInBufLen | |
|---|---|
Set the system serial input buffer to a user defined lenght.
The serial input data stored now in the buffer "a_Source".
|
| example_ShiftRegister_Basis_FB_FB | |
|---|---|
Example for shift registers and the base board
the LED's of the base board are connected to the
shift register.
In this example a simple value is shifted, so some LED
are on and some other are off.
The calculate function ignores any overflow,
so we have an ring counter, and
the 4 yellow LEDs behave like a binary counter.
This script will compile and run from
Version 1.28 of Protocol Developer,
earlier Versions produce compile errors.
|
| example_ShiftRegister_Basis_IC | |
|---|---|
Example for shift registers and the base board.
The LED's of the base board are connected to the
shift register.
In this example a simple value is shifted, so some LED
are on and some other are off.
The calculate function ignores any overflow,
so we have an ring counter, and
the 4 yellow LEDs behave like a binary counter.
This script will compile and run from
Version 1.28 of Protocol Developer,
earlier Versions produce compile errors.
|
| example_Watchdog | |
|---|---|
An internal timer decrease with a frequency of 1 millisecond.
The parameter is write only.
|