For MicroLogix PLC, the data types are defined by means of the used file types. In PLC programs, you can use many different file types, but only the types specified in the following table can be read or written by the mySCADA application.
Operator |
Function |
Description |
N – Integer |
16-bit long numbers, signed, this file is used for storing numeric values or bit information, read/write support. |
SLC and MicroLogix |
B – Binary |
16-bit long numbers, signed, this file stores internal relay logic, read/write support. |
SLC and MicroLogix |
F – Float |
This file stores numbers with a range of 1.1754944e-38 to 3.40282347e+38, read/write support. |
SLC and MicroLogix |
L – Long |
32-bit long numbers, signed, also called double word, read/write support. |
MicroLogix 1100, 1200, 1400 and 1500 |
O – Output |
This file stores the state of output terminals for the controller, read only. |
SLC and MicroLogix |
I – Input |
This file stores the state of input terminals for the controller, read only. |
SLC and MicroLogix |
The other file types like Strings, Timer, Counter, and Control are not supported.
There is a limitation that certain outputs can be read-only. To set outputs, you should use the other file type and then adjust the program design.
To access the file elements, you should specify the element position after the colon, i.e. to read or write to the third element of the integer file no. 100, use the following syntax:
N100:3
You can access each bit directly by defining its position after the slash, i.e. to access the seventh bit of the third element in the integer file no. 100 use the following syntax:
N100:3/7