You are on page 1of 193

Teach yourself CX-Programming

VZ & SP

CXP-Tutorial

Startup screen for CX-Programmer

Pritiskom na levi taster mia , pozicionirajui


se na neku od gornjih lokacija ,mogue je
premesiti grupu na neku drugu lokaciju

L+D

L = Left Mouse Button / R = Right Mouse button / D = Drag

CXP-Tutorial

Kreiranje novog projekta ( Prva stvar koju treba uraditi )

Izaberi tip
CPU

Pridrui ime tvog


ureaja
Specificiraj
familiju PLC-a

Some PLC Description


Izaberi nain komunikacije

CXP-Tutorial

Konfiguracija komunikacionog kanala

Postavi komunikacione parametre za


odgovarajui tip mree

CXP-Tutorial

Serijska veza preko peripherial port-a

CS1W-CN226

COM1

SW 4 : OFF znai da je peripheral port u Auto Baud Rate(Protocol) modu


DIP- switch : Svi moraju biti OFF izuzev SW3 : ON

Auto baud rate

CXP-Tutorial

Serijska veza preko RS232 port


Izaberi Toolbus

PC

Ukoliko je switch 5 na ON RS232C port je u


Auto Baud Rate modu (Izaberi Toolbus)
DIP switch : Svi su stanju OFF izuzev SW3/5 : ON

Standard Host Link Unit cable

COM1

PLC

2
3
4
5
6
7
8
9

2
3
4
5
6
7
8
9

Auto baud rate

RS232C-Port
CXP-Tutorial

Serijka veza preko Ethernet konekcije


192.36.32.100 (IP-adresa na raunaru)

Ex. 192.36.32.100
Pridrui preko kontrol-panela (fiksnu) IP-adresu
+ Subnet mask 255.255.255.000

Postavlja se sa zadnje strane


Ethernet modula
CS1W_ETN01

SW1

SW8

SW2

SW7

SW3

SW6

SW4

SW5

C 0
1 2

2 4
3 4

Node no.
(66)Hex
CXP-Tutorial

0
5 6

Ethernet Hub

UTP (Cat5)

6 6
7 8

(66)hex = (102) dec

Transceiver + 24VDC PS

TCP/IP Settings na strani PC-ja


Control Panel - Network

Fixna IP-adresa

192.36.32.100
255.255.255.000
Subnet mask

CXP-Tutorial

Konfiguracija integrisanog serijskog porta (RS-232C)

CS1W-CN226

Tekua DIP-sw configuracija = 3 + 5 ON / 4 OFF


Komunikacija preko CS1W-CN226 na peripherial port

2xL

CXP-Tutorial

Konfiguracija integrisanog serijskog porta (RS-232C)

3. korak
PLC u Program Mod

2xL

1. korak : Double Clik levim tasterom mia na Settings


2. korak : Tab-om na (Host Link Port) i napravi izmenu (19200 Bps)
3. korak : PLC u Program ili Stop-mod a zatim opcija (Transfer to PLC)
4. korak :Iskljui PLC i postavi DIP-SW5 u OFF poziciju (Komunikacioni parametri PC-Setup-a)
5.korak : Upotrebi host link-kabl i pokuaj da uspostavi vezu preko SYSWAY-protocol na 19200 Bps

CXP-Tutorial

10

Konfiguracija integrisanog (RS-232C)

5. korak

-(1) Napravi neophodne izmene (OFF-Line)


-(2) Uspostavi vezu sa PLC
2xL

Komunikacija sa PLC-om sada ide preko RS232C port-a


na 19200 Bps (fixna brzina) DIP-SW 5 OFF (PC-Setup se koristi)

CXP-Tutorial

11

Konfiguracija integrisanog peripherial porta

CS1W-CN226

Tekua DIP-sw konfiguracija = 3 + 5 ON / 4 OFF


Komunikacija preko CS1W-CN226 na peripheral portu
pri baud rate 115200 Bps

2xL

CXP-Tutorial

12

Konfiguracija integrisanog Peripheral Port

3. korak
PLC u Program Mode

2xL

1.korak : Double Clik levim tasterom mia na Settings


2. korak : Tab-om na (Peripheral Port) i napravi izmenu (19200 Bps/Host Link Protocol)
3. korak : Postavi PLC u Program ili Stop-mod i idi na opciju (Transfer to PLC)
4. korak : Iskljui PLC i postavi DIP-SW4 u ON poloaj (Komunikacioni parametri definisani PC-Setup-om)
5.korak : Koristei CS1W-CN226 kabl pokuaj da uspostavi konekciju preko SYSWAY-protocola na 19200 Bps

CXP-Tutorial

13

Konfiguracija Peripheral Port-a

5. korak

-(1Napravi neophodne izmene (OFF-Line)


-(2) Uspostavi komunikaciju sa PLC
2xL

Komunikacija sa PLC sada ide preko Peripheral porta


na 19200 Bps (Fixna brzina) DIP-SW 4 ON (PC-Setup se koristi)

CXP-Tutorial

14

Konfiguracija Serijskog porta na SCU-modulu SCU21

PLC je u Program Mode

1xR
Izaberi
Software Switches
2. korak
Step_1
I/O-Tabela je
kreirana preko Options-Create

Konekcija preko Peripheral porta pri Auto Baud Rate

CXP-Tutorial

15

Konfiguracija Serijskog porta SCU-Unit SCU21

Konfiguracija porta 1 : unit 1, 38400 Bps , 1E72


Host Link Protocol

Konfiguracija porta 2 : unit 2, 57600 Bps , 1E72


Host Link Protocol

CXP-Tutorial

16

Konfiguracija serijskog porta SCU-Modula SCU21

- Izaberi : Opcija glavnog menija + Transfer to PLC


- Izaberi : Opcija glavnog menija + Reset Unit

CXP-Tutorial

17

Konfiguracija serijskog porta SCU-Unit SCU21 (Test Komunikacije)

Port 1 : 38400,1E72 , unit 1

CS1W-CN226
DIP-SW3/5 ON (others OFF)

Port 2 : 57600,1E72 , unit 2

Port 2

Port 1

CXP-Tutorial

18

Konfiguracija serijskog porta SCB-Board SCB21/41

1xR
2xL

Korak 3
Izaberi
Inner board Software Switches
nakon kreiranja IO tabele

Korak 1

Korak 2
Kreiranje I/O tebele PLC-a moze
se izvrsiti On-Line i u program modu

CXP-Tutorial

19

Konfiguracija serijskog porta SCB-Board SCB21/41


Korak 4

Step_6

Step_5

CXP-Tutorial

20

Konfiguracija seriskog porta SCB-Board SCB21/41

- Izbor : Opcija glavnog menija + Transfer to PLC (Korak 7)


- Izbor : Opcija glavnog menija + Reset Unit (Korak 8)

CXP-Tutorial

21

Konfiguracija serijskog porta SCB-Board SCB21/41 (Test komunikacije)

Port 1 : 38400,1E72 , unit 1

CS1W-CN226
DIP-SW3/5 ON (others OFF)

Port 2 : 57600,1E72 , unit 2


SCB21

Port 2

Port 1

CXP-Tutorial

22

Komunikacija kroz PSTN mrezu


Integrisani port moze biti konfigurisan
kroz PC-Setup na brzini 9600Bps
1 start bit , 8 data bits , No parity i 1 stop bit
Controller Link
Node 5

Node 4
CS1 moze da posluzi kao modem gateway

Standardni
modem kabl

Modem

DCE

PSTN
DCE

Modem
AT&F0
ATY0
ATQ1
ATE0
AT&W0

Postavljanje unutar ove opcije nije neophodno

CXP-Tutorial

DCE
2
3
4
5
6
7
8
20

PLC(DB9)
2
3
4
5
N
9
20

23

Komunikacija prko Controller Link mreze


3G8F5-CLK21-E koristi IRQ 10 / RAM-adresu C8000-C9FFF
Svi switch-evi na OFF

Svi switch-evi na OFF

1
2
3
4

1
2
3
4

Node 3

ON

Node 4/Unit 0

Node 5/Unit 0

Terminator OFF

Terminator ON

Korak 1 : Idi na FINS-Gateway folder i selektuj CLK_Config utility


Korak 2 : Napravi sledee izmene :

Terminator ON
Fig_1

Shared RAM : C8000-C9FFF


Interrupt level : 10

CLK_UNIT0 Running Manual


CPU_UNIT

Running Manual

Baud rate : 2Mbps


Run Controller Link Board as Polling Node
Korak 3 : Startuj FinsGateway Service Control Manager
Korak 4 : Startuj CPU-Unit kao i CLK_UNIT
Korak 5 : Kreiraj novi projekt sa setovanjem definisanim u sledecem slajdu

CXP-Tutorial

24

Konfiguracija cvora 4
Fig_3

Adresa cvora
PLC-a

Fig_2

Fig_4

Adresa cvora racunara

CXP-Tutorial

25

Konfiguracija cvora 5
Fig_6

Adresa cvora
PLC-a
Fig_5

Fig_7

Adresa cvora racunara

CXP-Tutorial

26

Otvaranje ekrana novog projekta

Global (system) symbols


I/O-Table Editor
PLC-Setup
Reading/Writing the Data memory map of the PLC
PLC-Program
Local Symbol Table
Subsection of NewProgram1
2xL
Da bi se pristupilo nekoj od opcija
treba najpre selektovati a zatim
double click na opciju

CXP-Tutorial

27

Large Icons
Small Icons
List
Detail

Monitor in Hex

Toggle Project Workspace


Toggle Output Window
Toggle Watch Window
Show address reference tool
Show properties
Cross reference report
View local symbols
View Diagram
View Mnemonic

Sta je sta ?

CXP-Tutorial
28

CXP-Tutorial

On-Line edit rungs


Cancel On-Line edit
Send On-Line edit changes

Compile Program
Compile PLC programs

Toggle Monitoring Window

New section
New Symbol

New PLC
New Program

Selection Mode
New Contact
New closed contact
New Vertical
New Horizontal
New Coil
New Closed Coil
New PLC-instruction

Zoom out
Zoom In
Toggle Grid
Show comments
Show Rung annotations

Sta je sta?

29

CXP-Tutorial

Set Password
Release Password

Differential Monitor
Data Trace

Program mode
Debug Mode
Monitor Mode
Run Mode

Transfer to PLC
Transfer from PLC
Compare with PLC

Pause upon trigger


Pause

Work Online
Toggle PLC Monitoring

About
Help

Find
Replace

Cut
Copy
Paste
Undo
Redo

New
Open
Save Project
Print
Print Preview

Sta je sta?

30

Prvi program
Korak 1 : Testirajmo komunikaciju sa PLC-om

Double click na selektovani


PLC, mozemo izmeniti
komunikacione parametre

Ukljuciti komunikaciju sa PLC-pm


(Komunikacioni parametri koji se koristejesu oni
koji su definisani za vreme kreiranja projekta)

CXP-Tutorial

31

Prvi program
Korak 2 : Kreiranje I/O-Tabele

2xL

Korak 2.0
Korak 2.1

PLC u Program Mode


On-Line rad

Izbor Options + Create


Korak 2.2

Double Click
levim tasterom misa

Korak 2.4

Step 2.3

CXP-Tutorial

32

Prvi program
Korak 3 :Iscitavanje kreirane I/O tabele

1xL

CXP-Tutorial

33

Prvi program
Korak 4 :Razvoj PLC-Programa

OFF-Line rad
(Prekidac je dezaktiviran)

2xL

Sections mogu se uporediti sa blokovima unutar


Block-Network Manager SYSWIN-a . Oni omogucavaju
struktuiranje programa podelom u manje funkcionalne celine.
Program se moze sastojati od nekoliko sekcija
In the case of an assembly line , a section would be one fysical entity
on the line , given his own name

CXP-Tutorial

34

Prvi program
Korak 4 :Razvoj PLC-Programa

Izbor otvorenog kontakta

I/O-adresa kontakta
Komentar

Refresh method + type of triggering

CXP-Tutorial

35

Prvi program
Korak 4 :Razvoj PLC programa

I : Znai Input (ulaz)


0.00 znai bit no. 00 CIO(IR)-rec 0
Izbor izlazne spulne

Adresa izlaza

CXP-Tutorial

36

Prvi program
Korak 4 :Razvoj PLC programa

komentar
Unos instrukcije

Q : means Output
Kraj programa definisan
END-Instrukcijom

Kucaj END ili unesi 001 kao kod funkcije

Takodje se moze izbrati instrukcija iz liste


instrukcija podeljene u pod-kategorije

CXP-Tutorial

37

Prvi program
Korak 5 :Kompajliranje programa

Kompajliraj
PLC-Program

Rezultat kompilacije

CXP-Tutorial

38

Prvi program
Korak 6 :Ostvarivanje konekcije sa PLC-jem

Pritisni prekidac
Working On-Line

CXP-Tutorial

39

Prvi program
Korak 7 :Postavljanje PLC-a u Program-mod

Online rad

Smesti PLC u Program Mode


pre dowload programa
(Ukoliko vec nisi upitan za prebacivanje u mod)

CXP-Tutorial

40

Prvi program
Korak 8 :Download PLC-programa

Prenos programa ka PLC-u

Work On-Line

Prenos samo program-koda

CXP-Tutorial

41

Prvi program
Korak 8 :Download PLC-programa

Nakon transfera mora se verifikovati da je program


koji je downloadovan isti kao onaj u PCs memory

CXP-Tutorial

42

Prvi program
Korak 9 : Postavljanje PLC-a u Monitor-mod

On-Line rad

Prebaci na On-Line monitoring


Prebaci PLC u Monitor Mode

CXP-Tutorial

43

Prvi program
Korak 10 :Testiranje programa

1xR

Aktiviraj fizicki ulaz ili

desnim klikom misa akiviraj Set ili Force SET ulaza I:0.00

CXP-Tutorial

44

6 7 8

Broj slota

1 2 3

5 6

OC222

OC225

Default mapiranje

ID212

OC222

OC225

ID212

Definisanje I/O-Tabele PLC-ja

broj slota

CIO 0000
CIO 0001
CIO 0002

CIO 0000
CIO 0001
CIO 0002

Type of unit
CIO channel number
Slot Number

CXP-Tutorial

45

1 2 3

OC225

ID212

OC225

Definicija I/O-Tabele PLC-ja

5 6

Broj slota

Prenos novokreirane I/O-tabele


ka PLC (Program-mode)

Rezervacija 16-kanalnog virtuelnog modula za naredna prosirenja


1xR

16 pt Unit - 16pt Dummy

CXP-Tutorial

46

Definisanje startne adrese reka


0

1 2 3

Broj slota

Ofset adresa CPU reka = 0010

1 : Kreiranje I/O tabele


2 : Specifificiraj strtnu adresu CPU reka
3 Prenos I/O tabele ka PLC-ju
Sve ove akcije se izvrsavaju
iz Options Menu

CXP-Tutorial

47

Citanje Error Log-a

2xL

Brisanje error log

CXP-Tutorial

48

Postavljanje sata realnog vremena PLC-a

Aktiviraj Synchronise

Program Mode

2xL

CXP-Tutorial

49

Korisnik moze ukljuciti ili iskljuciti razlicite prozore

View - Windows

Workspace Window

Address Reference Tool

Section Content

Watch Window

CXP-Tutorial

Output Window

50

Ukljucenje Workspace

Workspace is switched
ON

CXP-Tutorial

51

Iskljucenje Workspace

Workspace je iskljucen

CXP-Tutorial

52

Ukljucenje Output Window

Output Window

CXP-Tutorial

53

Iskljucenje Output Window

Zatvaranje : Single Click

Output Window

CXP-Tutorial

54

Ukljucenje Watch Window

Closing
Single click

Watch Window

CXP-Tutorial

55

Umetanje reda i kolone

Ctrl

Alt

Umetanje kolone

Ctrl

Alt

Brisanje kolone

Ctrl

Alt

umetanje novog reda

Ctrl

Alt

CXP-Tutorial

Brisanje reda

56

Opening the Rung vertically

1xR

Right Click : Insert Row

CXP-Tutorial

57

Opening the rung vertically

CXP-Tutorial

58

Opening the rung horizontally

1xR

Right click : Insert Rung Column

Place for an additional contact has been created

CXP-Tutorial

59

Inserting a rung

1xL

(1) Select the rung


(2) Insert Rung Above the actual Rung

1xR

CXP-Tutorial

60

Inserting a rung

CXP-Tutorial

61

Selecting a Rung + Copying it

1xL

1xL

(1) Select the entire Rung

(2) Choose the option Copy

CXP-Tutorial

62

Copying the selected Rung

1xR

Copy
Button

Paste
Button

Place the mouse pointer into the next rung , right mouse click and Paste the rung
You can also use the copy and paste buttons

CXP-Tutorial

63

Pasting the selected Rung

Or Use the Paste button

1xR

Right Click the mouse and select Paste

CXP-Tutorial

64

Deleting a Rung

1xR

1xL

(1) Select the entire Rung

(2) Choose the Delete Option

CXP-Tutorial

65

Cutting the selected Rung

You can also use the


Cut - button

1xR

Right mouse click : Cut

CXP-Tutorial

66

Deleting the empty Rung

Deleting the empty Rung

1xL

Select the rung by positioning the cursor on the left side

CXP-Tutorial

67

Deleting the Rung

1xR

Right Click the mouse and select the option Delete

CXP-Tutorial

68

Screen after deleting the Rung

CXP-Tutorial

69

Switching ON the Address Reference Tool

Closing
Single Click

Address Reference Tool

CXP-Tutorial

70

Working with the watch window

Choose the data type of


your variable

Change the size of the watch window


L+D

1xR

Right mouse click


(ADD Watch)

CXP-Tutorial

71

Working with the watch window

On-Line Monitoring

Force ON

Work On-Line

Force

Set

Force OFF
Force Cancel
ON
OFF

Value

1xR

CXP-Tutorial

72

Copying data from Excel to the Symbol editor

CTRL+V
2xL

Columns A/B/C must be set to TEXT-format


Enter the data + select the
part you want to copy
CTRL + C

L+D

Select TEXT for all columns

CXP-Tutorial

73

Working with I/O-symbols created from within Excel

Name

Comment
2xL

Double click Section 1


to see the result

CXP-Tutorial

74

Adding a local Symbol to the List

Right Click and choose Insert Symbol


1xR
2xL

Double click on
Symbols

CXP-Tutorial

75

Working with Undo and Redo

1xR

Condition to be deleted (Place the cursor on top of it , right click and choose delete)

CXP-Tutorial

76

Working with Undo and Redo

The contact has been deleted

CXP-Tutorial

77

Working with Undo and Redo

Undo-button

Press two times on the Redo button and the contact will disappear again

CXP-Tutorial

78

Working with Undo and Redo

The Condition reappears


Press the Undo button and the original condition will be restored

CXP-Tutorial

79

Working with Shortcuts

Tools Keyboard mapping

Reset all user defined shortcuts to their


default values
Currently assigned shortcut
for a normal open contact

CXP-Tutorial

80

Step 1 : Select the Macro for which you want to define a shortcut (F2 = N.O Contact)

Highlight the sort cut


Step 4 :Press F2

Step 2 : Remove the shortcut (/)

Step 5 :
Confirm

Step 3 : Create the shortcut

CXP-Tutorial

81

Create New Section

Create New
PLC

Working with Sections

New program
New Section

Each PLC can be configured differently


(Type of PLC , Communication channel)
Project

New PLC

Create New Program

New program

PLC_1

Program_1

Section_1

(*) Only the CS1-series can have multiple programs

CXP-Tutorial

PLC_2

PLC_3

Program_N (*)

Section_N

82

Working with Sections

Sections are created by pressing on this button


and are a method for structuring your application
This program NewProgram1 contains 6 subsections

CXP-Tutorial

83

Working with sections

2xL

Double click to become an overview of all the sections

CXP-Tutorial

84

Working with sections

1xR

Sections can be given a name


Sections can be rearanged (Moved up)
Sections can be copied,deleted and cut

CXP-Tutorial

85

Creating Sections for Structuring the program

Creating a new section

Each section contains a part of the PLC-program


2xL

CXP-Tutorial

Double click to visualize itscontents

86

Copying between rungs between section

Rungs for Section 1


Only the last section may contain the END-instruction
(In this example section 3)
2xL

CXP-Tutorial

87

Copying between rungs between section

To switch to another section


via the main menu
Rungs for Section 2

2xL

CXP-Tutorial

88

Copying between rungs between section

1xL

Select the rung you want to copy


Press the Copy button

CXP-Tutorial

89

Copying between rungs between section

2xL

Switch to Section 1 into which the rungs have to be copied


or use the pull down Window in the main menu

Double click

CXP-Tutorial

90

Copying between rungs between section

Paste the rungs from the clipboard


The other rungs will be shifted downwards

CXP-Tutorial

91

Removing a Section of a program

PLC is OFF-Line
Right click + delete the
highlighted section
1xR

CXP-Tutorial

92

Working with Sections

Program 2 has been defined as a cyclic task


(This is only for CS1-Series)
Properties

1xR

Right Click and


change the properties
of the new program

Define program 2 as a cyclic Task 02


CXP-Tutorial

93

Working with Sections

Sections allow the programmer to structure his application


A section within one program(task) can be copied to a section
within another program(task)CS1-Only

Copy
Paste
Right click

CXP-Tutorial

94

Working with Sections

A Name can be given to the Section


1xR

Right Click and go to


properties of the selected
section

A Description can be
given to the Section

CXP-Tutorial

95

Viewing several sections at the same time

Double Click to
Open the Drilling Section

CXP-Tutorial

96

Viewing several sections at the same time

CXP-Tutorial

97

Viewing several sections at the same time

2xL
Double Click to
Open the Cooling Section

CXP-Tutorial

98

Viewing several sections at the same time

CXP-Tutorial

99

Tile the two program sections horizontally

Window - Tile Horizontally

CXP-Tutorial

100

Viewing several sections at the same time

2xL

Select Symbols
and double click

CXP-Tutorial

101

Tile horizontally

CXP-Tutorial

102

Viewing Several Sections at the same time

Tile Vertically

Several Program
Sections

CXP-Tutorial

103

Defining and working with Commented Rungs

1xR

Commented Rungs
Right click within this part
and select properties
Enter a rung comment

CXP-Tutorial

104

Defining and working with Commented Rungs

1xR

Select the rungand section you need


A Commented Rung within the specified
section can be searched for

Right Click +
select Go to Commented Rung

CXP-Tutorial

105

Configuring Options

Show Rung and Step Numbers

Tools (Options)

CXP-Tutorial

106

Configuring Options

Show Rung Dividers

Tools (Options)

There are no divider lines

CXP-Tutorial

107

Configuring Options

Show Grid by Default

Tools (Options)

The Grid disappears

CXP-Tutorial

108

Configuring Options

Hide Rung annotation Lists

CXP-Tutorial

109

Configuring Options

Show Rung annotation Lists

Button : Show Rung Annotations

CXP-Tutorial

110

Configuring Options

Show Contact Name

The Name appears above the element

Choose Tools in the menu followed by Options

CXP-Tutorial

111

Configuring Options

Show Contact Name

The name appears under the element

Tools (Main menu) + Options

CXP-Tutorial

112

Configuring Options

Show Contact Address

The I/O address appears afther the Name

CXP-Tutorial

113

Configuring Options

Show Contact Address

The Address appears above the Name

CXP-Tutorial

114

Configuring Options

Show Contact Address

The Address appears below the Name

CXP-Tutorial

115

Configuring Options

Show Contact Comment

Select Tools in the Main menu followed by


Options

CXP-Tutorial

116

Configuring Options

Show Contact Comment

No comments are shown

CXP-Tutorial

117

Configuring Options

Defining the number of comment lines

CXP-Tutorial

118

Configuring Options

Defining the number of comment lines

CXP-Tutorial

119

Configuring Options

Defining the number of comment lines

Comment
Name
Comment

Address

Operand Description

CXP-Tutorial

120

Configuring Options

Defining the number of comment lines

I/O-Name

I/O-address

Annotation List

Symbol comment

Annotation Reference

CXP-Tutorial

121

Configuring Options

Symbol Comments

No symbol comments
are shown

CXP-Tutorial

122

Configuring Options

Symbol Comments

CXP-Tutorial

123

Configuring Options

Instruction Description

CXP-Tutorial

124

Configuring Options

Operand description

No operand description

CXP-Tutorial

125

Configuring Options

Operand description

CXP-Tutorial

126

Entering Element Properties

1xR

Right Click on the element


and choose Properties

CXP-Tutorial

127

Working with the Annotation List

1xR

Select the entire rung by right clicking within this section


Select properties

CXP-Tutorial

128

Opening the Annotation List

Double Click to open the Annotations List


2xL

CXP-Tutorial

129

Showing the annotation list and contact symbol comments

Show Annotations List


Show Comments

CXP-Tutorial

130

Hiding the annotation list and the contact symbol comments

Annotations List is not shown


Comments are not shown

Name

Address

CXP-Tutorial

131

Working with the Cross Reference List

Cross Reference Report :


Select the type of Data area as well as the type of report

CXP-Tutorial

132

Detailed Cross Reference Report

Type of area
Double click on the desired
Section to return
to the ladder diagram
or switch through
Window

CXP-Tutorial

133

Cross Reference of used elements

Area Type
Only the used I/Os are displayed
Double click on the desired Section to call the ladder rungs
or go to the main menu and choose Window

CXP-Tutorial

134

Overview of all I/Os (including unused I/O)

Double click on the desired


Section to return
to the ladder diagram
or choose Window

CXP-Tutorial

135

Finding variables within your program

Find button

CXP-Tutorial

136

Finding variables (as addresses)

Find

Searching for the next occurence

To generate a detailed Report

The Output window must be switched OPEN

CXP-Tutorial

137

Finding variables (as symbol names)

Open the output window

Open the output window

CXP-Tutorial

138

Finding a variable as Symbol Comments

Open the output window

Open the output window first

CXP-Tutorial

139

Finding a variable as Program Comments

Open the output window

Open the output window

CXP-Tutorial

140

Replacing a variable as an Address

CXP-Tutorial

141

Replacing a variable as an Address

CXP-Tutorial

142

Working with Data Trace

Execute Trace/Time Chart

STEP 1

Right mouse click (New)


1xR

STEP 2

CXP-Tutorial

STEP 3

143

Working with Data Trace

Condition to be traced

Trigger condition (Rising edge)


Add the trigger condition to the watch
window and set it from there.(Set-Force Set)
(It can also be set from within your process)

CXP-Tutorial

144

Start Trace
Upload Trace Data

Stop Trace

IN/Out zooming

Configure

Working with Data Trace

CXP-Tutorial
145

Making On-line changes

On-line edit rungs

Cancel On-line edit

Send On-line edit changes

Step 1 : Select the rung you want to modify


Step 2 : Switch to On-line edit mode
Step 3 : Make the changes
Step 4 : Confirm or cancel the changes

CXP-Tutorial

146

Making On-line changes

Switch ON On-Line edit mode


Double click on the condition
you want to change On-Line

CXP-Tutorial

147

Making On-line changes

Execute the change by selecting the button


Send On-Line edit changes

CXP-Tutorial

148

Working with the watch window

Working online + monitoring is on

PLC is in the Monitor mode

Right click the mouse while 0.0 has been selected


(Choose the option SET - ON)
Actual status off the input
(0.0 will be set for one scan time)

Output Window

Watch Window

CXP-Tutorial

149

Differential Monitoring

Step 1

Right Mouse
click (Set-ON)/
(SET-Off)
Step 2

Changes color each time the condition


goes from OFF to ON (Rising edge)

CXP-Tutorial

150

Setting a Password

Step 3

Step 1
1xR

Place the cursor on the PLC


and right click (properties)

Step 2
Enter your password

CXP-Tutorial

151

Releasing the program protection

Enter your password

CXP-Tutorial

152

Uploading a PLC-program from a protected PLC-program

CXP-Tutorial

153

CXP-Tutorial

Zoom Out
Restore zoom
Zoom In

Resize Columns

Binary
BCD
Decimal
Signed Decimal
Floating Point
Hexadecimal
Text

Monitor

Fill Data Area


Clear Data Area
Transfer to PLC
Transfer from PLC
Compare with PLC

Cut
Copy
Paste

Open
Open File
Save in Project
Print
Print Preview

Working with the memory editor

Areas which can be monitored


154

Download

Upload

Transferring Data to the PLC

Enter your Data and


highlight the part you
want to download

PLC

Double Click on
the desired area

2xL

Download

Transfer only the visible part


to the PLC

Upload

Transfer only the visible part


from the PLC
CXP-Tutorial

Compare only the visible part


between the PC and the PLC
155

Copying data between Excel and the Memory editor

Step 1 : Highlight the desired data

Paste the data into your


spreadsheet

CXP-Tutorial

156

Copying data within the same data area


Paste
Copy

Step 1 : Highlight the part you want to copy


Step 2 : Press the Copy Button
Step 3 : Select the cell from which you want to paste the copied data and press the Paste Button
CXP-Tutorial

157

Zoom IN and OUT of data

Zoom IN

Zoom OUT

CXP-Tutorial

158

Calling the forced I/O Status

CIO 0.0 has been forced ON


Double Click

Select the address Tab


CXP-Tutorial

159

Working with the Memory Card

Local drives

2xL

Double Click

CXP-Tutorial

160

Working with Memory Cards


Saving data memories
onto the Card

Right Click

Right Click
(Transfer to Card)

Select the I/O-memory Area


Select partial save
From
Number

From CPU-to Card

CXP-Tutorial

161

Working with Memory Cards

The File has been saved


on the memory card

Double click the folder to see its contents

CXP-Tutorial

162

Working with Memory Cards

Enter a Filename

Right Click (Transfer to Card)

The filename appears in the memory card folder

CXP-Tutorial

163

Working with Memory Cards


Creating folders onto the card

Right clik on the Memory Card folder


Choose the option New folder)

A new folder named Error1 has been created

Two folders

CXP-Tutorial

164

Working with Memory Cards


Restoring data from the Card

Right Click the file and choose


Transfer to D-Area

IOMD2.IOM

From Card -to CPU

CXP-Tutorial

165

Copy a file from the memory card onto your local C-Drive

Right Click
(Choose the option Copy)

Right Click
(Choose the option Paste)

CXP-Tutorial

166

Working with Data Link Tables


Start up the CX-Net Configuration tool
from the menu TOOL (Network Configuration Tool)

Area 1

Write

Read

CIO 000-CIO009

Read

Write

CIO 010-CIO019

Write

Read

D 000-D009

Read

Write

D010-D019

Status area CIO20-CIO35

Status area CIO20-CIO35

Area 2

Node 4/Unit 0

Terminator ON

Fig 1.1

Node 5/Unit 0

Terminator OFF

CXP-Tutorial

Terminator ON

167

Working with Data Link Tables


- Configure all nodes at the same baudrate and assign node addresses (PC:03),CS1:04 and 05
- Connect the computer to the peripheral port of the CS1-PLC
- Start the CX-Net Configuration tool and create a new .CDM-project (Fig 1.3-Fig 1.4)
- Add devices to this project via the Project menu. (Fig1.5-Fig 1.9)
- Choose from the main menu of CX-Net : Data Link - Editor - Controller Link
- Go to table and start the DataLink Wizard . Specify the nodes who will be part of the data link table (4 and 5)
- Select Fast Default Table Generation and press the Next-button
- Define a status area and press Set . Choose CIO0020 as start address of the status area
- Validate your settings and save your newly created project (1.13 - Fig. 1.14)
- Place your cursor on Node 4 or Node 5 and make the connection with the PLC.
Connect to the network and download the data link tables to Node 4 and Node 5 (Fig. 1.16 and 1.17)
- Select the Datalink Status Button and start the data link (Fig 1.17)
- Read the Controller Link Network Status (Fig. 1.18)

CXP-Tutorial

168

CXP-Tutorial

169

CXP-Tutorial

Broadcast Test

Echo Back Test

On-Line configure Data Links

Data Link Status

Routing Table Setup

Configure PLC Settings


Configure I/O-Table
Configure Comms Unit

Display PLC Error Status


Show Unit Status

Set PLC Operation Mode

Edit Project
Open Project Device
Display PLC Information

Open Project

Working with Data Link Tables

Fig 1.2

170

Working with Data Link Tables


Step 2 : Add Devices to the project (Via Project-menu)

Step 1 : Create a new project

Fig 1.4

Fig 1.6

Fig 1.3

Fig 1.7

Fig 1.5

CXP-Tutorial

171

Working with Data Link Tables

Fig 1.8

Step 3 : Repeat the same procedure for Node_5

Fig 1.9

CXP-Tutorial

172

Working with Data Link Tables


Step 4 : Choose from the main Menu of CX-Net : Data Link - Editor - Controller Link
Fig 1.10

Open the graphical view


L+D

Fig 1.11

Step 5 : Table - Wizard

Work only with node 4 and 5

CXP-Tutorial

173

Working with Data Link Tables

Step 8 : Save your project

Step 6 : Define a status area and press Set

Fig 1.12

Fig 1.13

Step 7 :Validate your settings

CXP-Tutorial

Fig 1.14

174

Working with Data Link Tables


Step 9 : Connect to the network and download the data link tables to Node4 and Node_5
Go to data link Setup
(The actual contents will be uploaded)

Verify the transfer

Fig 1.15

Download the DataLink Table to the selected PLC


Repeat this procedure for the other nodes or work
in Network mode
Fig 1.16

Connect to the network

CXP-Tutorial

175

Working with Data Link Tables


Start the data Link

Controller Link Network Status

Fig 1.18
Fig 1.19

Controller Link Network Setup

Fig 1.17

Choose run
followed by Set
Change this setting
according to your needs

CXP-Tutorial

176

Working with Data Link Tables


Fig 1.20

Fig 1.21

Fig 1.22

Fig 1.23

CXP-Tutorial

177

Working with Data Link Tables


Fig 1.25
Echo Back Test

Fig 1.24

Broadcast Test

Fig 1.27

Fig 1.26

Fig 1.28

CXP-Tutorial

178

Working with Data Link Tables


Fig 1.29

CXP-Tutorial

179

Working with Routing tables

Node 102/Unit 4 (ETN01)


IP-Address : 192.36.32.102 Node 5/Unit 0 (CLK21)

Node 4/Unit 0 (CLK21)


PLC_2

PLC_1

Toolbus for local configuration

CS1W-CN226

Ethernet
Network 1

Controller Link : Network 2


3COM Hub

Node 100/Unit 17 3COM Ethernet card


IP-Address : 192.36.32.100

Fig 1

CXP-Tutorial

180

Working with Routing tables


- Built up the network by assigning node addresses and Unit addresses to the different communication Units
- Start the FINSGateway Service Control Manager and startup the CPU_UNIT as well as the ETN_UNIT (Fig.1)
- Select the ETN_UNIT and press the button in the upper right corner (FinsGateway Network Navigator
- Change the network address from 0 to 1 (Node address :100 is based on the TCP/IP settings within Windows)
- Add a relay network to reach network 2 (Controller Link) through network 1 node 102 (CS1_PLC)
- Startup the CX-Net Network Configuration Tool from CX-Server and create a new CDM-project
- Add Devices to this project by starting with the TOOLBUS-Connection
(Needed to define and download the routing tables)
- Add the other connections with the parameters mentionned in the figures 16-23
- Make the connection (Through Toolbus) with PLC_1 (Node 5) and configure its routing table
as mentionned in the drawings Fig.28 and Fig. 29 by right clicking on the SIOU-Unit.
- Save and transfer the routing table to the PLC
- Make the connection (Through Toolbus) with PLC_2 (Node 4) and configure its routing table
as mentionned in the drawings Fig.30 and Fig. 31 by right clicking on the SIOU-Unit.
Specify a relay network to reach network 1.(Table view tab)
- Save and transfer the routing table to the PLC
- Test the Ethernet by using the Ping Test utility (Fig.38 - Fig 40)
CXP-Tutorial

181

CXP-Tutorial

182

Working with Routing tables


Start both services

Select the Ethernet_Unit and


press this button
FinsGateway Network Navigator

Fig.3

Fig.2
Fig.4

Choose property and change the network number from 0 to 1


Add a relay network to reach network 2 via network 1 node 102(CS1_PLC)

CXP-Tutorial

183

Fig 5

Working with Routing tables

Fig 6

Fig 7

CXP-Tutorial

184

Fig.8

Working with Routing tables

Fig.10

Fig.9

Fig.11

CXP-Tutorial

185

Working with Routing tables


Project - (Add)(Change) device

Fig.12

Fig.13

Step 2

Enter a Name

Step 3

Select the PLC


type

Step 4
Choose a network
or gateway

Fig.15

Fig.14

CXP-Tutorial

186

Working with Routing tables


Project - (Add)(Change) device

Fig 16

Step 1

Step 2

Enter a Name

Step 3

Select the PLC


type

Step 4
Choose a network
or gateway

Fig 17
Step 5

(66)Hex

Fig 18
CXP-Tutorial

Fig 19
187

Working with Routing tables


Project - (Add)(Change) device

Fig 21

Fig 20

Step 2

Enter a Name

Step 3

Select the PLC


type

Step 4
Choose a network
or gateway

Fig 22
CXP-Tutorial

Fig 23
188

Fig 24

Working with Routing tables

Fig 25

Fig 27

Fig 26

CXP-Tutorial

189

Routing table for PLC_1


Fig 28

PLC_1 belongs to Network 2 via SIOU unit 0

Define for each Network Unit the SIOU number


+ the Type of network
Fig 29

Network 1 = Ethernet
Network 2 = Controller Link
PLC_1 belongs to Network 1 via SIOU unit 4

Once defined you can download the newly created


routing table to the connected node
(Use for this purpose the local toolbus connection)

Fig 27
CXP-Tutorial

190

Routing Table for PLC_2


Fig 30

PLC_2 belongs to network 2


via SIOU unit 0

We can reach Network 1 through relay node 5


belonging to network 2

CXP-Tutorial

Fig 31

191

Working with Routing tables


Routing table of Computer

Routing table of PLC_1

Fig 32

Fig 34

Fig 33

Fig 35

CXP-Tutorial

Routing table of PLC_2

Fig 36

Fig 37

192

Testing the ethernet network using the PING-Utility


Ping Test

Fig 39

Fig 38

Fig 40

Node address = (66)Hex = (102)Dec


IP-Address : 192.36.32.102

C 0
1 2
CXP-Tutorial

2 4
3 4

0
5 6

6 6
7 8
193

You might also like