PLCM09 variables
PLCM09 device is a Wireless Modem with LED and digital I/O. The behavior of the related System Variables are depend on how the module has been configured inside the System Settings (see "PLCM09 Plugin Wireless Modem" for additional information)
Protocol Editor Settings
Path: ProjectView> Protocols
- Click + and select System Variables: the System Variables dialog is displayed.
- Select PLCM09 from the PLCModels list.
Tag Editor Settings
Path: ProjectView> Config > double-click Tags
- To add a tag, click +: a new line is added.
- Select System Variables from the Driver list: tag definition dialog is displayed.
Element | Description | Data type | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Input1 Input2 |
Value of the Input signals |
boolean Read only |
||||||||||||||||||||||||||||||||||||||||||
Output1 Output2 |
Value of the output signals Output variables are read/write only when configured as "User controlled" (see "PLCM09 Plugin Wireless Modem" for additional information). In the other configurations, where output signals are controlled directly from the PLCM09 module, the system variables are read only. |
boolean Read/Write |
||||||||||||||||||||||||||||||||||||||||||
Led1 Led2 |
Value of the LED status
LED variables are read/write only when configured as "User controlled" (see "PLCM09 Plugin Wireless Modem" for additional information). In the other configurations, where LED status are controlled directly from the PLCM09 module, the system variables are read only. |
unsignedByte Read/Write |
||||||||||||||||||||||||||||||||||||||||||
Mobile Start |
Write 1 inside this tag to force the mobile connection to start. This is a write only variable, command will executed any time you rewrite it. |
boolean Write Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Stop |
Write 1 inside this tag to force the mobile connection to stop. This is a write only variable, command will executed any time you rewrite it. |
boolean Write Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Restart |
Write 1 inside this tag to force the mobile connection to restart. This is a write only variable, command will executed any time you rewrite it. |
boolean Write Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile State |
Mobile connection state
|
int Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Signal |
Mobile signal quality (0-100) Value of the signal detected when the device is started |
byte Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Operator | Mobile operator name (e.g. 'Vodafone') |
string[8] Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Access Technology |
Mobile access technology
|
int Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Registration Status |
Mobile registration status
|
int Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile RX/TX | Number or received/transmitted bytes |
unsignedInt[2] Read Only |
||||||||||||||||||||||||||||||||||||||||||
Mobile Start Time (Sec) | When mobile connection was started (in seconds since epoch) |
unsignedInt Read Only |
Write Only Variables cannot be read. Be sure to not use the R/W access mode to avoid the read error icon.
JavaScript (Mobile Connection State)
The mobile connection state can be retrieved even from the below JavaScript interface where the "protocolSysVar" is the protocol instance code (e.g. "prot1", "prot2", etc.)