txb softcontrol - beijer...

64
Tab5_TxB-SC_CODESYS_Intro 2014-02-03 1 CODESYS V3 TxB SoftControl TxB-SC

Upload: tranque

Post on 09-Apr-2018

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

1

CODESYS V3

TxB SoftControl

TxB-SC

Page 2: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

2

Agenda

• CoDeSys offer from Beijer Electronics

• CODESYS- Enable iX TxB-SC- Task, PLC-code, GVL, export of GVL- Communication, Modbus TCP to Remote I/O

• iX Developer 2.0 - Image- Enable TxB-SoftController- New driver, Direct Access

• Exercise- CODESYS project- KI00328 Basic, KI00330 Modbus TCP- Hardware, T7B-SC, NA-9189, ST-3702, ST-1218, ST-2324

• Performance

Option

- Diagnostics

- RUN/STOP CODESYS from TxB

- Update CODESYS and iX from USB

Page 3: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

3

The offer from Beijer Electronics

Cost-efficientHMI PLC + I/O

Low-end PLC(HMI optional)

High performanceHMI PLC + I/O

• CoDeSys Embedded Controllers

iX TxA SoftControl+ Crevis I/O

Serial Modbus RTU (Modbus TCP)

iX TxB SoftControl and SoftMotion

+ Crevis I/O

EtherCATModbus TCP

Crevis NA-9379

Page 4: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

4

Crevis NA-9379 - The Programmable I/O

• NA-9379 ”the PIO”

– A smart and compact PLC expandable

with various I/O-modules of FnIO-S

series

• General

– Modbus/TCP client for Remote I/O etc

– Modbus/TCP server for HMI/SCADA

communication

– Modbus RTU slave on RS485 port

– PLC<>PLC communication via standard

CODESYS functionality

– Application memory, 512 kB

– Operating temperature -20 -> +50°C

Page 5: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

5

Crevis NA-9379 – General data

• The PIO CPU unit

– Keil RTX RTOS

– ARM Cortex 120MHz CPU

– Application memory - 512 kB

– Data memory - 512 kB

– Non-volatile memory – 32 kB (Retain data)

– Ethernet interface as programming port

• Additionally– 2 ports RJ-45 for Ethernet

» The PIO has a built-in switch

– Run/Stop switch

» Stop means no monitoring possible

– Reset switch

» Same function as Reset Cold in CODESYS

Page 6: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

6

Crevis NA-9379 PIO – FnIO-S modules

• Use the existing range of FnIO-S modules for expansion of I/O

– Max 32 slots of expansion modules

– Max 1500 mA power consumption 5 VDC

– 126 words max input size

– 126 words max output size

• Designed for stability – mounted on

standard 35mm DIN rail and featuring

removable cage clamp connection

terminals

• Easy to mount, removable terminal

blocks spring-loaded to facilitate

installation and maintenance

• Also available, 16-channel modules

equipped with a 20-pole contact,

connected to pre-adapted cables of

various lengths

Page 7: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

7

Crevis NA-9379 PIO – Example maximum configuration (16-cha/module)

512 Digital I/O - if “20P connector” are used

96 Digital I/O, 80 Analog In, 40 Analog Out

ST-121F, 16 digital inputs

ST-222F, 16 digital outputs

Page 8: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

8| 8

The iX HMI SoftControl

• A combination of two automation products:

– iX HMI solution from Beijer Electronics» iX offer an open development platform through .NET components

and to create customized functionality using C# scripting

– CoDeSys, the SoftPLC runtime system

The iX TxA SoftControl range The iX TxB SoftControl range

RTU/TCPRTU

Page 9: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

9| 9

The iX TxA SoftControl range

• A cost-efficient solution for small to

medium sized HMI applications

• Display sizes 4, 7 and 10 inches

• High performance CPUs

• Communition with I/Os via serial

Modbus RTU

• The latest screen technology;

LED backlight for clear screens

with wide viewing angles

• Fast mounting and slim

hardware dimensions for easy

installation

Install the iX TxA SoftControl … … and simply add standard I/Os or other equipment

RTU

Page 10: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

10

iX TxA SoftControl + CoDeSys Control PLC runtime system

• PLC functionality

– Windows CE RTOS

– ARM Cortex 400Mhz CPU

– 80 MB program memory (shared iX/CoDeSys)

– 16 KB non-volatile memory (persistent data)

– Ethernet interface as programming port

– OPC for HMI/SCADA communication» 3S OPC server on PC

• Programmable with CoDeSys V3.5

– The world leading hardware independent

IEC 61131-3 development system

• Recommended I/O driver

– Modbus RTU uses an open Master/Slave

application protocol and RS-485 line topology

with segments of up to 32 devices

Ethernet

Modbus

Page 11: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

11

iX TxA SoftControl – PLC Modbus RTU serial driver

• Use the RS485 port on the iX panel

• Crevis Network Adapters

– NA-9173 – RS485» Max 32 slots of expansion modules

– NA-9473 – RS485» Max 12 slots of expansion modules

– Use all the existing range of FnIO-S Series

modules for expansion of the I/O node

• I/O Data mapping in network modules

– Process Input image registers» Inputs to CoDeSys Control PLC runtime

system

– Process Output image registers» Outputs from CoDeSys Control PLC

runtime system

– In general, configuration of most field

buses are done directly in CoDeSys» No external tool required!

Page 12: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

12| 12

The iX TxB SoftControl range

• A cost-efficient solution for medium to

large sized HMI applications

• Display sizes 7, 12 and 15 inches

• High performance CPUs

• Communition with I/Os via high-speed

EtherCAT fieldbus or Modbus TCP

• The latest screen technology;

LED backlight for clear screens

with wide viewing angles

• Fast mounting and slim

hardware dimensions for easy

installation

Install the iX TxB SoftControl … … and simply add standard I/Os or other equipment

P2 inverter

RTU/TCP

Page 13: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

13

iX TxB SoftControl + CoDeSys Control PLC runtime system

• PLC functionality

– Windows CE RTOS

– Intel Atom 1.1 GHz CPU

– 1 GB program memory (shared iX / CoDeSys)

– 32 KB non-volatile memory (persistent data)

– Ethernet interface as programming port

– OPC for HMI/SCADA communication» 3S OPC server on PC

• Programmable with CoDeSys V3.5

– The world leading hardware independent IEC

61131-3 development system

• Recommended I/O driver

– EtherCAT

– Modbus TCP (Master)

– The Modbus RTU serial driver is available too

Ethernet

Modbus RTU

EtherCAT

Page 14: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

14

TxB SoftControl – EtherCAT - Modbus/TCP

• Use the Ethernet port(s) on the iX panel

• Crevis Network Adapters

– NA-9186 – EtherCAT» Max 32 slots of expansion modules

– NA-9189 – Modbus/TCP» Max 32 slots of expansion modules

– Use all the existing range of FnIO-S Series

modules for expansion of the I/O node

• I/O Data mapping in network modules

– Process Input image registers» Inputs to CoDeSys Control PLC

runtime system

– Process Output image registers» Outputs from CoDeSys Control PLC

runtime system

– In general, configuration of most field

buses are done directly in CoDeSys» No external tool required!

Page 15: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

15

The iX TxB-SoftMotion range

• A combination of great automation products:

– The iX HMI solution from Beijer Electronics

– CODESYS SoftMotion V3 - The SoftMotion Runtime System

– High speed communication via EtherCAT

iX T7B SoftMotion

Display size 7” Display format 16:9Resolution 800x480

iX T15B SoftMotion

Display size 15” Display format 16:10Resolution 1280x800

iX T12B SoftMotion

Display size 12” Display format 16:10Resolution 1280x800

Page 16: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

16| 16

iX TxB-SoftMotion - System overview

Ethernet

EtherCAT

LAN B is dedicated for

CODESYS EtherCAT

Page 17: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

17| 17

iX HMI SoftControl Software Architecture

Note!Drivers for iX can’t be used by CODESYS and vice versa!

Driver for iX application

iX application

Direct access PLC <-> iX

PLC application

Drivers for fieldbus

iX-Application

PLC-Program

iX shared

memory driver

PLC driver for I/O

iX-H

MI-S

oftc

on

trol

External driver

Page 19: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

19| 19

Fieldbuses - When to use what

• Modbus RTU

– For lower speed applications, pump, fan, HVAC, building automation

– Simple cabling, cheaper, slower

– One Master per bus

– Maximum 247 nodes per network (with repeaters)

– Powering down a single node does not influence other nodes

• Modbus TCP

– For medium speed requirements

– Standard RJ45 cabling, can coexist with other Ethernet nodes

– Limited support for multi-master

– Non deterministic bus cycle time, not suitable for synchronous data exchange

– Maximum number of nodes only limited by IP address range

– Powering down a single node does not influence other nodes

• EtherCAT

– For high speed applications, machine control etc.

– We recommend dedicated ethernet RJ45 cabling, separated from other ethernet nodes

– One master per bus

– Hard Real-Time support for servo/motion control, suitable for synchonising multiple slaves

– Maximum number of nodes 65535

– Powering down a single node influences following nodes

Page 20: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

20

Example different system solutions

Ethernet

PLC-PLCcommunication

between CoDeSys nodes

Modbus RTU

EtherCAT

Page 21: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

21| 21

Performance – I/O response

• Classic PLC with local I/O:s

• SoftController with fieldbus

Bus task

PLC task

Input signal

Outut signal

PLC detects input, sets output

Input status is read Output status is written

Bus cycle

PLC cycle

PLC task

Input signal

Outut signal

PLC detects input, sets output

Input status is read Output status is written

PLC cycle

Page 22: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

22| 22

Main differences

– iX TxA/TxB SoftControl and PLC-system

• PLC application memory

– iX TxA SoftControl»Nearly unlimited

– iX TxB SoftControl»Unlimited

– PLC»Depends on CPU types/sizes

• Execution of compiled PLC code

– iX TxA SoftControl»Very fast - especially integer/floating point

– iX TxB SoftControl»Outperforms almost any PLC today

– PLC»Compact PLCs, fast handling of especially boolean logic

»Modular PLCs, very fast in general

• Execution of PLC application

– iX TxA/TxB SoftControl»Fixed intervals, defined via tasks in CODESYS project

»Otherwise iX won’t get any time to execute!

–PLC»”As fast as possible”

• I/O communication

– iX TxA SoftControl»Moderate speed via serial Modbus RTU which is not a real-time bus

– iX TxB SoftControl»Real-time performance with EtherCAT

– PLC»Very fast as CPU and I/O is one unit

Time left for iX etc.PLC application

Task interval in CODESYS project

iX TxA/TxBSoftControl FnIO

PLC Loop:- Set output- Read input- TxA approx. 50ms- TxB approx. 20ms

Page 23: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

23

CoDeSys V3

TxB SoftControl

Create application

TxB-SC

Page 24: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

24

TxB SoftControl

• Programming tools

– iX HMI application, iX Developer 2.0 (SP1) or later version

– SoftControl, CoDeSys V3.5 SP1 Patch 4 or later version

Software version: see StartUp KI00328

TxB SoftControl

SoftControliX HMI

application

EtherCAT

Modbus TCP/RTU

Ethernet

Page 25: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

25

TxB SoftControl

• Communication: iX HMI to TxB SoftControl and remote I/O

– Driver 1: iX HMI application <--> TxB SoftControl (Codesys Control

Direct Access)

– Driver 2: TxB SoftControl <--> Remote I/O (Modbus TCP)

- EtherCAT on “LAN B” (Always reserved for EtherCAT!)

- Modbus TCP on “LAN A”

- Modbus RTU at COM1: RS-232, COM2: RS-485, COM3: RS-232

Image TxB-SC/ Driver version: see StartUp KI00328

TxB SoftControl

SoftControliX HMI

application

Driver 1

iX-driver

“Direct

access”

Driver 2

Page 26: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

26

iX Developer – Add TxB Softcontrol

• TxB Softcontrol – product from Beijer Electronics Automation AB

– To get the TxB SoftControl terminals in iX Developer

=> Run the file: “TxB SoftControl Setup.msi”

• Double click on the “TxB SoftControl Setup.msi” file to install

• Note, latest file version can be found on Beijer Electronics Support web page

Help online, use “Start-up: iX TxB SoftControl, Basic Setting (KI00328)”

Page 27: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

27

iX Developer – Install/Update driver

• Install the driver “CODESYS SoftControlDirectAccess”

– Most common using “Update Drivers From Internet”

• Install / Update driver from Internet

– Run iX Developer as Administrator, open any project

– Click on the symbol under “iX” in the

upper left corner of the program

– Select “Update Drivers”,

then “Update Drivers From Internet”

– Select CODESYS SoftControlDirectAccess, download!

– Once installed, re-start iX Developer

• Install / Update driver from File

– Browse to the location where the

driver is downloaded then highlight the driver file

“CODESYS_SoftControl_Direct_Access_Pre2.mpd”, press “Open”

– Highlight the driver in the new window, press “Install”

– Once installed, re-start iX Developer

Driver version: see StartUp KI00328

Page 28: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

28

CODESYS – Professional user

• Change to Professional user , to get all features available

Page 29: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

29

CODESYS – TxB-SC to CODESYS

• Install TxB SoftControl to CODESYS

– “TxB-SoftControl.devdesc.xml“

TxB_SoftControl.devdesc.xml

See StartUp KI00328

Page 30: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

30

CODESYS – Programming

• Standard project

– Meny File and New project

Page 31: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

31

CODESYS – Important Settings

• Boot after Online Change or Restart of TxB-SC

– Create Boot application

– Highlight the “Application” option in

the “Device” window and right click

at “Properties”

• Auto Save Project

– Meny “Tools/Options”

– Function to

automatically save

project after a

specific time

Page 32: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

32

CODESYS – Project Archive

• Project Backup

– All files in the project are stored in a “Project Archive file”

– Save/Send for backup

– Extract Archive for restore the project

Note!

Always use “Project Archive file” to open the project in other computer!

Page 33: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

33

CODESYS – Important Settings

• Compiler Version, for TxB-SoftControl use 3.5.1.40

– Menu selection “Project/Project Settings”

See StartUp KI00330

Page 34: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

34

CODESYS – BusTask

• Add a task for update the I/O

– Right click at “Task Configuration”

– Add Object “Task”

– Name “BusTask”

– Interval “10ms” = T#10ms

• Add the BusTask to “PLC setting”

– Double click at “Device (TxB SoftControl)” and set like the picture

T#10ms

See StartUp KI00330

Page 35: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

35

CODESYS – Communication to Remote I/O

• Modbus/TCP

– Ethernet

- Ethernet com-port

– Modbus_TCP_Master

- A device that works as a Modbus TCP Master

– Modbus_TCP_Slave

- A generic device that works as a Modbus TCP Slave

• Ethernet Adapter Ver 3.4.2.0,

communication to Crevis remote I/O

• Modbus TCP Master Ver 3.5.1.40,

communication to Crevis remote I/O

• Modbus TCP Slave Ver 3.5.1.0,

communication to Crevis remote I/O

See StartUp KI00330

Page 36: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

36

CODESYS – Driver, Ethernet

• Ethernet Adapter

– Right click at “Device (TxB SoftControl)”

– Add device “Ethernet”

– Ver 3.4.2.0

See StartUp KI00330

Ethernet Adapter Ver 3.4.2.0

Page 37: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

37

CODESYS – Driver, Modbus TCP Master

• Modbus_TCP_Master

– Right click at “Ethernet”

– Add Device “Modbus TCP Master”

– Ver 3.5.1.40

See StartUp KI00330

Modbus TCP Master

Ver 3.5.1.40

Page 38: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

38

CODESYS – Modbus TCP Slave

• Modbus_TCP_Slave

– Right click at “Modbus_TCP_Master”

– Add Device “Modbus TCP Slave”

– Ver 3.5.1.0

See StartUp KI00330

Modbus TCP Slave Ver 3.5.1.0

Page 39: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

39

CODESYS – Setup Modbus TCP Master/Slave

• Setup for NA-9189

• Modbus_TCP_Master

– Auto-reconnect restart communication with slave

• Modbus_TCP_Slave

– Set IP adress

– Unit-ID, 1

– Respons timeout, 1000ms

– Port, 502

See StartUp KI00330

Page 40: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

40

Connection, PC - TxB-SC - Remote I/O

• IP-Setting

iX T7B-SCService menu

iX Developer – Download..

NA-9189IOGuidePro - BootP server

Arp-command (dos)

Computer

Network Connections LAN A: 192.168.11.7Ethernet

Modbus TCP

24 VDC COM 1/2 LAN A USB LAN B COM 3/4

192.168.11.xxx 192.168.11.89

Switch

See StartUp KI00330

Page 41: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

41

CODESYS – Configure the Remote I/O

• Example, NA-9189, ST-3702, ST-1218, ST-2324

• Read and Write area

– 3 register In

– 1 register Out

• Start adress (offset)

– Read area 0x0000

– Write area 0x0800

• Function Code

– Read/Write Multiple register

(Function Code 23)

See StartUp KI00330

Page 42: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

42

CODESYS – Configure the Remote I/O

• Read and Write data to NA-9189

– Function code 23, Cyclic time, 0 ms, Read/Write area

See StartUp KI00330

Page 43: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

43

CODESYS – Configure the Remote I/O

• Config Slave

– Update all I/O

See StartUp KI00330

Page 44: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

44

CODESYS - Variables

• Global Variables

– Create a Global Variable List (GVL)

Textual

Tabular

See StartUp KI00330

Page 45: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

45

CODESYS - Persistent Variables

• TxB-SC support Persistent Variables

• Add Persistent Variables…

See StartUp KI00330

Page 46: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

46

CODESYS - Global Variable

• Write Global variables, for programming and export to iX HMI

See StartUp KI00330

Page 47: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

47

CODESYS - Persistent Variable

• Write Persistent variables, for programming and export to iX HMI

See StartUp KI00330

Page 48: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

48

CODESYS – I/O Mapping

• Connect variables to Modbus TCP Slave

See StartUp KI00330

Page 49: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

49

CODESYS – PLC program, example

See StartUp KI00330

Page 50: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

50

CODESYS – PLC program, example

Page 51: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

51

CODESYS – Compile project

• Rebuild the program

• View Error, Warning, Message

– Example

Page 52: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

52

CODESYS – Export variables to iX HMI

• Create a “XML” file (variables to iX HMI)

– Add Symbol configuration

– Created/updated when

- Generate code

- Transfer project to TxB-SC

• The file are saved in same directory

as the CODESYS project

• Select Global and Persistent variables

See StartUp KI00330

Page 53: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

53

CODESYS – Transfer project to TxB-SC

• Gateway, PC to HMI

– Check that Gateway is active in systray, then Scan network

– Set active path

– The last “group” in IP address (in this example 07)

• Download the project

• Start the SoftControl with F5 or the symbol

See StartUp KI00330

Page 54: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

54

CODESYS – Monitor

• PLC Program, GVL, I/O…..

Page 55: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

55

CODESYS – Monitor

• Watch window

– Modbus Slave

Page 56: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

56

iX Developer – New Project

• Select the terminal T7B SoftControl

• Driver: CODESYS / SoftControl Direct Access

• Change the driver name..

Page 57: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

57

iX Developer – Example project

• Open project from “USB”

“iX_T7B_SC_NA9189.neoproj”

• Save Open project “iX_T7B_SC_NA9189.neoproj” in directory \MyProject\

Page 58: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

58

iX Developer – Import variables

• Import variables from CODESYS project

• Connect the “xml file”

“CoDeSys_T7B_SC_NA9189.Device.Application.xml”

• Select “Import” and “All Items”

Page 59: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

59

iX Developer – Test of application

• Download iX-project to T7B-SC!

• Test application!

Page 60: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

60

Performance

1. Number of I/O on Screen, Alarms, Poll time, Trends, Screen jump

2. “Direct access” the driver between iX and PLC

3. PLC scantime

4. Modbus driver, Modbus TCP communication with remote I/O

5. Crevis FnIO bus-time, ie. reading /writing of I/O modules

Page 61: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

61

Performance

1. Number of I/O on Screen, Alarms, Poll time, Trends, Screen jump- Every I/O that changes status => Image is redrawn!- Mean value in the PLC decreases the CPU load

2. "Direct access" the driver between iX and PLC- Update controlled by the poll time

3. PLC scantime- Program size, type of instruction…- Task type (Cyclic, Event or Freewheeling)

4. Modbus driver, Modbus TCP communication with remote I/O

- BusTask (update of I/O)- Communication speed to remote I/O

5. Crevis FnIO bus-time, ie. reading /writing of I/O modules - Number of I/O modules

• The CPU load is affected by

Page 62: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

62

Performance – iX TxB-SC (NA-9189)

Note!

- Cycle time 0,5ms is equivalent to approximately 50k program step in a high performance PLC

- Cycle time 1.0ms is equivalent to approximately 100k program step in a high performance PLC

Page 63: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

63

Remote I/O ”BusTask” ”I/O RAM” CODESYS ”Task”Timeline

10 ms

20 ms

30 ms

40 ms

I/O Refresh

Page 64: TxB SoftControl - Beijer Elektronikfiles.beijerelektronik.com.tr/downloads/Soft_Control/Dokumanlar/... · application protocol and RS-485 line topology ... »No external tool required!

Tab5_TxB-S

C_CO

DESYS_In

tro 2

014-0

2-0

3

64