---
title: "Tecomat_PLC_EPSNET device"
canonical: "https://docs.cuesystem.com/space/CVCDD/447741979/Tecomat_PLC_EPSNET%20device"
format: markdown
---
# Overview

This device is the main communication resource for Tecomat PLC. It is connected to a *UDP client *connector of the CUEunit.

# Tecomat_PLC_EPSNET device Connection group of properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| IP address | Text | Any | 127.0.0.1 | IP address of Tecomat PLC |
| Timeout | Time | Any | 0:0:1.0 | Timeout for sending and receiving UDP packet |
| Scan time | Time | Any | 0:0:1.0 | Delay between reading variables values on background |
| Public definitions | Text | Any | Nothing | Content of variables public definitions file *.pub from Tecomat project directory |

# Public Functions

## ReadN

This functions reads *bLength *bytes from *lAddress *and *bArea *of PLC into *bsMemory *variable. This function returns *True *if function success, else it returns *False*. See Teco documentation for more information about Tecomat memory and areas.

#### Syntax

```visualbasic
ReadN (
  bArea As Byte, 
  lAddress As Long, 
  bLength As Byte, 
  ByRef bsMemory As ByteString) 
As Boolean
```

#### WriteN

This functions writes *bLength *bytes into *lAddress *and *bArea *of PLC from *bsMemory *variable. This function returns *True *if function success, else it returns *False*. See Teco documentation for more information about Tecomat memory and areas.

#### Syntax

```visualbasic
WriteN (
  bArea As Byte, 
  lAddress As Long, 
  bLength As Byte, 
  bsMemory As ByteString) 
As Boolean
```

## ReadB

This functions reads *bBit *bit of byte at *lAddress *and *bArea *of PLC into *boolBit *variable. This function returns *True *if function success, else it returns *False*. See Teco documentation for more information about Tecomat memory and areas.

#### Syntax

```visualbasic
ReadB (
  bArea As Byte, 
  lAddress As Long, 
  bBit As Byte, 
  ByRef boolBit As Boolean) 
As Boolean
```

## WriteB

This functions writes *bBit *bit of byte at *lAddress *and *bArea *of PLC from *boolBit *variable. This function returns *True *if function success, else it returns *False*. See Teco documentation for more information about Tecomat memory and areas.

#### Syntax

```visualbasic
WriteB (
  bArea As Byte, 
  lAddress As Long, 
  bBit As Byte, 
  boolBit As Boolean) 
As Boolean
```