InputAnalog16
This class can be used for a 16-bit analog input element.
Syntax:
FUNCTION_BLOCK FB_InputAnalog16 EXTENDS FB_InputBase
I/O variables
Name | Type | Direction | Description |
---|---|---|---|
WcState | BIT | Input | |
AnalogValue | INT | Input | Numerical signed analog input value. |
AdsAddr | AMSADDR | Input | ADS address of the I/O element for asynchronous communication. |
Toggle | BIT | Input | Bit switching with the update rate of the mapping. |
InfoDataState | UINT | Input | Numerical information on the state of the EtherCAT slave (see State). |
Properties
Name | Type | Access | Description |
---|---|---|---|
InputScale | DINT | Get, Set | Scale for scaling the input value. |
Methods
Name | Description |
---|---|
Cyclic() | Cycle method |
Reads the status word of the input element. | |
Writes the status word of the input element. | |
Reads the EtherCAT status of the input/output element. | |
Writes the EtherCAT status of the input/output element. | |
Reads the terminal-specific input/output value. | |
Writes the terminal-specific input/output value. |
Interfaces
Type | Description |
---|---|
I_IoBase | Standard interface on FB_IoBase. |
I_InputAnalog16 | Standard interface on FB_InputAnalog16. |
I_InputBase | Standard interface on FB_InputBase. |
I_IoEcAds | Standard interface on FB_IoEcAds. |
I_IoEc | Standard interface on FB_IoEc. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86) | Tc3_PlasticFunctions (>= v3.12.5.0) |