S7
S7 is a polling based protocol over tcp. This is not ideal for high resolution logging, as it takes a certain time to complete a read request. These are the datatypes we support:
Type | Example mapping |
---|---|
Word (Db 1, offset 1) | DB1,DBW1 |
Double | DB1,DBD1 |
Bit (Offset 0 bit 0) | DB1,X0.0 |
Int | DB1,DI1 |
Dint | DB1, DI1 |
Real | DB1,REAL1 |
Lreal | DB1,LREAL1 |
BYTE | DB1,BYTE1 |
String (Offset 1 length 10) | DB1,STRING1.10 |
Inputs, for example bit (no comma needed!) | IX0.2 |
Output, for example bit (no comma needed!) | QX0.2 |
To set up an s7 connection, you need a CPU type, Rack and Slot number.
CPU type | Default Rack | Default Slot |
---|---|---|
S7-300 | 0 | 2 |
S7-400 | 0 | 2 or 3 |
S7-1200 | 0 | 1 |
S7-1500 | 0 | 1 |
PLC requirements
In order to be able to communicate with your target, "Permit access with PUT/GET communication from remote partner" should be checked: (S7-1200 & S7-1500 => due to the built-in firewall) In order to be able to log data from datablocks, optimized block access should be disabled: