| | |
| | | public class S7Config { |
| | | @Bean(name = "s7SerializerWLOne") |
| | | public S7Serializer s7SerializerWLOne() { |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.15"); |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.100"); |
| | | return S7Serializer.newInstance(s7PLC); |
| | | } |
| | | |
| | | @Bean(name = "s7SerializerWLTwo") |
| | | public S7Serializer s7SerializerWLTwo() { |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.21"); |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.130"); |
| | | return S7Serializer.newInstance(s7PLC); |
| | | } |
| | | |
| | |
| | | return S7Serializer.newInstance(s7PLC); |
| | | } |
| | | |
| | | @Bean(name = "s7SerializerMBTwo") |
| | | public S7Serializer s7SerializerMBTwo() { |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1200, "192.168.10.18"); |
| | | return S7Serializer.newInstance(s7PLC); |
| | | } |
| | | |
| | | @Bean(name = "s7SerializerMBExtra") |
| | | public S7Serializer s7SerializerMBExtra() { |
| | | S7PLC s7PLC = new S7PLC(EPlcType.S1500, "192.168.20.100"); |
| | | return S7Serializer.newInstance(s7PLC); |
| | | } |
| | | } |