Difference between revisions of "Switch Digital Inputs Reading"

From IPLOG
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<font color="red" size="+1">This page is beign temporarily revised with the newest updates.</font>
 
 
 
= IPLOG-GAMA How to Read Switch Digital Inputs =
 
= IPLOG-GAMA How to Read Switch Digital Inputs =
  
IPLOG-GAMA can read states of switch digital inputs via protocol TCP Modbus. Switch is configured as Modbus TCP Slave and listen at the Modbus TCP port 502 (default). EVENTS configuration connects automatic actions with Modbus registers.
+
IPLOG-GAMA as Modbus Master TCP device can read states of digital switch inputs via protocol TCP Modbus. The Switch is configured as Modbus TCP Slave and listens at the Modbus TCP port 502 (default). EVENTS configuration connects automatic actions with Modbus registers.
  
 
== Switch Configuration ==
 
== Switch Configuration ==
 
Switch is a Modbus Slave device and connected together via TCP connection with the Modbus TCP Master device IPLOG-GAMA.
 
Switch is a Modbus Slave device and connected together via TCP connection with the Modbus TCP Master device IPLOG-GAMA.
  
=== 1. Switch TCP Port Configuration ===
+
=== 1. Switch Modbus TCP Port Configuration ===
 
SIMULand.v4 configuration software download: {{DownloadSIMULand.v4}}
 
SIMULand.v4 configuration software download: {{DownloadSIMULand.v4}}
  
  
 
'''Extension -> Modbus -> TCP'''
 
'''Extension -> Modbus -> TCP'''
 +
 
- '''Enable''' - Allows TCP connection.
 
- '''Enable''' - Allows TCP connection.
 +
 
- '''TCP listening port''' - The listening '''TCP port 502 is reserved for Modbus communications'''. It is mandatory to listen by default on that port. However, some device or applications might require that another port is dedicated to Modbus over TCP. For that reason, it is possible to change Modbus TCP listening port. It is important to note that even if another TCP server port is configured for Modbus service in certain applications, TCP server port 502 must still be available in v addition to any application specific ports.  
 
- '''TCP listening port''' - The listening '''TCP port 502 is reserved for Modbus communications'''. It is mandatory to listen by default on that port. However, some device or applications might require that another port is dedicated to Modbus over TCP. For that reason, it is possible to change Modbus TCP listening port. It is important to note that even if another TCP server port is configured for Modbus service in certain applications, TCP server port 502 must still be available in v addition to any application specific ports.  
  
Line 20: Line 20:
 
   
 
   
 
=== 2. EVENTS Configuration ===
 
=== 2. EVENTS Configuration ===
Creating automatic actions to connect Switch digital inputs and Modbus registers.
+
Creating automatic actions to connect digital switch inputs and Modbus registers.
  
  
Copy both states Close/Open of Digital Input 1 to Modbus register DISCRETE IN 1, Modbus register 1.  
+
Copies both states Close/Open of Digital Input 1 to Modbus register DISCRETE IN 1, Modbus register 1.  
  
 
'''EVENT 1 Input Part'''
 
'''EVENT 1 Input Part'''
Line 44: Line 44:
 
[[File:IEC ProgramSwitchDigitalInputReading.png|600px]]
 
[[File:IEC ProgramSwitchDigitalInputReading.png|600px]]
  
 +
 +
 +
== Related links: ==
 
How to create program: [http://wiki.iplog.eu/wiki/METEL_IEC_61131-3_IDE_Getting_Started Getting Started]
 
How to create program: [http://wiki.iplog.eu/wiki/METEL_IEC_61131-3_IDE_Getting_Started Getting Started]
  
METEL IEC 61131-3 IDE: {{DownloadIEC61131-3}} Download]
+
Download: {{DownloadIEC61131-3}}

Latest revision as of 06:20, 16 April 2020

IPLOG-GAMA How to Read Switch Digital Inputs

IPLOG-GAMA as Modbus Master TCP device can read states of digital switch inputs via protocol TCP Modbus. The Switch is configured as Modbus TCP Slave and listens at the Modbus TCP port 502 (default). EVENTS configuration connects automatic actions with Modbus registers.

Switch Configuration

Switch is a Modbus Slave device and connected together via TCP connection with the Modbus TCP Master device IPLOG-GAMA.

1. Switch Modbus TCP Port Configuration

SIMULand.v4 configuration software download: SIMULand.v4


Extension -> Modbus -> TCP

- Enable - Allows TCP connection.

- TCP listening port - The listening TCP port 502 is reserved for Modbus communications. It is mandatory to listen by default on that port. However, some device or applications might require that another port is dedicated to Modbus over TCP. For that reason, it is possible to change Modbus TCP listening port. It is important to note that even if another TCP server port is configured for Modbus service in certain applications, TCP server port 502 must still be available in v addition to any application specific ports.

ModbusSlaveTCP.png


2. EVENTS Configuration

Creating automatic actions to connect digital switch inputs and Modbus registers.


Copies both states Close/Open of Digital Input 1 to Modbus register DISCRETE IN 1, Modbus register 1.

EVENT 1 Input Part

SwitchEVENT-InputToModbusConfig1.png


EVENT 1 Output Part

SwitchEVENT-InputToModbusConfig2.png

*Create EVENT 2 to monitoring Digital Input 2 connected to Modbus register DISCRETE 2.



IPLOG-GAMA Configuration

Create the program in METEL IEC 61131-3 IDE and upload it to the IPLOG.

IEC ProgramSwitchDigitalInputReading.png


Related links:

How to create program: Getting Started

Download: METEL IEC 61131-3 IDE