RS500 & Panel Builder 32 Train

Preview:

Citation preview

وبرنامج ) Rslogix500(في برنامج دورة )panel builder 32(

وترجمة من اللغة الصينيةاعداد اآرم ناصر حارث

٢٠١٠العراق

برامج الدورة يمكن البحث عنها على جميع التاليالرابط

www.filecrop.com

1

First experiment with RSLinxCreate a communication path

In the beginning SLC500 Before the experiment, it is necessary to create a communication path. Communication path behind the creation of the IO to complete the automatic configuration and procedures are necessary to download。 From Start->program->Rockwell software-> RSLinx,Run RSLinx, Screen appears as follows:

In the main menu, click Communications After the drop-down menu in the mid-point of the pop-up Configure Divers, Configuration-driven dialog box appears

2

In Available Drivers Types Office Locations live drop-down button, select the drive in there RS232 DF1devices, Press the Add New button, pop-up dialogue in the article by clicking on OK to retain the name of the default screen after the following

Select the correct PC communication port, click Auto_Configure, communication will be automatically configured.

3

Well, we have created the Well DF1 communication, click on the icon, on-line browsing device ,。

This experiment a're done

4

Experiment 2: RSLogix500 software applications to create a new Application run RSLogix500, Start-> program-> Rockwell software-> RSLogix500. Click on the following screen appears

Select processor type (in this experiment Processor 1747-L541,, click the OK button to enter the engineering screen

5

2, I / O configurationSLC500 support the I / O, automatic configuration, the project tree, find the Controller folder, double-click the IO Configuration, the screen appears

6

At this point, click on Read IO Config button, select the communication path of a picture, select the first experiment to create the DF1 driver, and then press the Read IO Config button, will complete the automatic configuration IO.

7

About SLC500 memory, data files and the address expression

1) program file

2) data files

8

program files

1) system files:

2) The master process: only one LAD2

3) General routines: The main program or other subroutine calls,

LAD3 ---- 255

SLC500 only support LADDER

9

O0、I1、S2、B3、T4、C5、R6、N7、F8

• 0-8 for the system definition file can not be changed, deleted

• File only SLC5/03 above F8

• When non-SLC500 the presence of DH-485 device, file 9 for network

communication

• File 10-255 free to define T / C / B / N / F / R / ST / A file type

Expression data file address

Address including: file type, file number,: element number or data structure / bit number 1) O0 O: es / be: slot number s: font size b: Bit No. I1 I: e.s / b For example, O: 3 / 15 DO, 3 slot bit15 O: 5.1 DO, 3 slot word1 I: 7 / 8 DI, 7-slot bit 8 I: 7 DI, 7-slot word 0

10

2) S2 S: 1 / 15 Element 1, bit 15. Power "first pass" bitS: 6 Fault Code 3) B3 B3:3/14 Bit 14, element 3

B3:252/00 Bit 0, element 252 B3/62 Bit 62 = B3:3/14

4)T4 timing accuracy 1ms/10ms/1s T4: 0 / 15 or T4: 0/EN enable bit T4: 0 / 14 or T4: 0/TT are time-bit T4: 0 / 13 or T4: 0/DN complete bit T4: 0.1 or T4: 0.PRE preset value T4: 0.2 or T4: 0.ACC cumulative

5) C5, count range (-32,768, +32,767) C5: 0 / 15 or C5: 0/CU plus Count Enable bit C5: 0 / 14 or C5: 0/CD by Count Enable bit C5: 0 / 13 or C5: 0/DN complete bit C5: 0 / 12 or C5: 0/OV overflow bit C5: 0.1 or C5: 0.PRE preset value C5: 0.2 or C5: 0.ACC cumulative

6) R6, such as instructions to use PID control register

7) N7, integer (16bit) to the word or bit addressable N7: 2 N7: 2 / 8 N25: 22

8) F8 float, 2word

11

Addressing modes:

I/O Module Addressing O0 O: es / be: slot number s: font size b: Bit No.I1 I: e.s / b1: Local Rack

eg: IB16 I:1.0/0—15 OB16 O:2.0/0—15 OB32 O:3.0/0—15 O:3.1/0—15 NI4 I:4.0—3 NO4 O:5.0—3

12

2:Local I / O expansion rack

7 8 9 10 11 12 13

1 # rack Ibid No. 2 slot rack # 1 # 6 from the beginning, the other by analogy IB32 I: 7.0/0-15 I: 7.1/0-15 **: Can be extended up to three local **: Up to 30 slot numbers

1747-C16

13

3: Remote I / ORIO

extension

** SN support each scanner 32 RIO stations, each station the maximum of 30 RIO I / O ** Each scanner SN 32 words in the processor input and output I / O image area RIO

addressing 2 # IB16 I: eX/0-15; e on behalf of SN in the local rack slots.

14

The following wording to determine X Definition:1:SN in the CPU, I and O take up to 32 characters, that is, 32 I / O group (group) 2: a rack RACK group accounted for 8 3: addressing rack addressing modes (physical frame and corresponding relationship between logical rack), the DIP switch settings in the ASB addressing modes, starting RACK and I / O number. • 1 slot addressing a slot corresponds to an I / O group of the most commonly used ****** • 2 slot 2 slot corresponds to an addressable I / O Group • 1 / 2 slot addressing a slot corresponding to two I / O Group 1 slot addressing mode: 1 RACK == 8 I / O group == 8 slot hardware SN = 4 RACK = 32 I / O group = 32 slots

15

available

2 # of the first one IB16 I: 6.0/0-15 The second block IB16 I: 6.1/0-15

16

If 2 # rack of I / O as follows

The I / O address is: IB32: I: 6.0/0-15 I: 6.1/0-15 OB32: O: 6.0/0-15 O: 6.1/0-15 I borrowed words and O words each, 32 points must be matched I and O to install, or a waste of address space Experiment 6 introduced the basic instructions

Instruction focuses on:

• Bit operation (relay)

• Timer / Counters

• Operational

• transmission

• File Operations

Instruction set to help:

17

1: Bit manipulation instruction • XIC - [] - on the bit to ON state detection (normally open) • XIO --[/]- state detection of the bit to OFF (normally closed) • OTL - (L) - the output latch (Set) • OTU - (U) - Output unlock (Reset) • OSR - [OSR] - a response to commands input conditions change by the increase real output to maintain a cycle (rising edge triggered) On the OSR For example

18

2: Timer

Command

• Timer address elements from the three words (3 word)

consisting of data structures.

19

Word0 for the control word: EN, TT, DN

Word1 preset value for the PRE

Word2 storage time running total ACC

Input parameters: PRE, Time Base Timer time base (1ms,

10ms, 1000ms)

Address structure:

T4: 0 / 15 or T4: 0/EN enable bit

T4: 0 / 14 or T4: 0/TT are time-bit

T4: 0 / 13 or T4: 0/DN complete bit

T4: 0.1 or T4: 0.PRE preset value

T4: 0.2 or T4: 0.ACC cumulative

Timer Type:

• TON conduction delay

• TOF delay off

• RTO to keep time

• RES reset the timer and counter

TON conduction delay

Status Bit Set Conditions Remain set until

DN(Bit13) ACC 》PRE Rung condition is false

TT (Bit14) Rung conditions are true

and ACC《 PRE

Rung condition is false;

DN=0

EN (Bit15) Rung conditions are true Rung condition is false

20

1) is a time not yet reached PRE value, such as power failure or RUN ==

"PRO follows:

EN and TT Set, ACC remains the same

2) to return to RUN state, the timer to continue:

Rung conditions are true: to re-timing (EN and TT Set, ACC = 0)

Rung condition is false: all reset

TOF Delayed Disconnect

Status Bit Set Conditions Remain set until

DN(Bit13) Rung conditions are

true

Rung condition is false and

ACC》PRE

TT (Bit14) Rung condition is

false and ACC

《 PRE

Rung conditions are true;

DN=0

EN (Bit15) Rung conditions are

true

Rung condition is false

RTO to keep time When conditions become false by the true, the timer is not

reset when the condition has become true from the false, continue timing.

Its state changes and the same TON.

21

RES reset the timer and counter

- (RES)

3: Counter instruction

Counter address from the words element (3 word) the composition of the

data structure.

Word0 for the control word: CU, CD, DN, OV, UV

Word1 preset value for the PRE

Word2 store count accumulated value-added ACC

C5: 0 / 15 or C5: 0/CU plus Count Enable bit

C5: 0 / 14 or C5: 0/CD by Count Enable bit

C5: 0 / 13 or C5: 0/DN complete bit

C5: 0 / 12 or C5: 0/OV overflow bit

C5: 0.1 or C5: 0.PRE preset value

C5: 0.2 or C5: 0.ACC cumulative

22

CTU/CTD Plus counting and by counter

****: Input conditions change from the fake implementation of a true 10

plus

minus

23

4: Comparison instructions

• EQU ==

• NEQ <>

• LES <

• LEQ <=

• GRT>

• GEQ> =

• MEQ to shield

• LIM Ultimate Test

** Compared with the default command DEC, can also be used

0101B, 0FAB3H

** Source A must be address, such as the N7: 0 or # N7: 0

LIM Limit test 1

24

MEQ Comparison of shielding

• To compare the address of the source

• Shielding: bit = 1, through the data; bit = 0, are shielded

• Comparison: Value or Address

eg: Sourec to N7: 0 (xxxx xxxx abcd xxxx)

Shield: 00F0h (0000 0000 1111 0000)

Comparison: N7: 1 (0000 0000 mnop 0000)

Only to B3: 16 of bit4-Bit7 comparison, when abcd =

mnop comparison to TRUE; otherwise FULSE

25

5: Arithmetic Instruction

• mathematical operations ADD, SUB, MUL, DIV, NEG, SQR,

SCP, ABS

• Calculation of instruction CPT

• trigonometric functions sin, cos, tan, atn

• Advanced computing XPY, LN, LOG, RAD, DEG

These processors support floating-point operations SLC5/03

1) SCP works tuning

SLC5/03/04/05 support

For example, AI Calibration :0-32767 ----- "0-50kpa (engineering units)

AO calibration 0-100 %------" 0-32767

AI direct engineering calibration: input source 0 (min) 32767 (max)

26

Calibration after 0 (min) 50 (max)

6: Logical order AND OR NOT XOR

7: Conversion instructions

TOD, FRD

DEG,RAD

DCD,ENC 4-1decode,1-4encode

8: Copy and copying

COP FLL CLR

1)COP

File a copy of the document

• Source and Dest address symbol # must be that the starting position

• Lenth maximum length of 128

27

2) FLL

• • Source is a constant or a register

• Dest must address sign #, that the starting position

• Length Lenth

28

3) CLR Clear operation of a word.

• 9: send the command

• Mov

• MVM

1)Mov

• source is a constant or address

• Dest must address

• implement a 16bit integer or 32bit floating-point

• When the source is floating point, integer address purpose, the result

rounded rounded

29

• data transfer more than one address, the use of COP

instruction

30

2)MVM Shielded transmissionPart of the data is shielded

(depending on the mask, bit = 0 Screen

Cover) The cases that b3: 2 of bit0-bit3 and bit8-bit11's value is not a result of

the implementation of the b3: 0 data to the b3: 2 and change

31

10: Shift Instruction

• BSL

• BSR

• SQO

• SQC

When the step change conditions powered by false true, BSL / BSR

instruction to enter into a queue, the queue data in the whole left / right shift

that, while unloading a bit into the unloading UL

1) BSL

32

• length maximum 2048,128 word

• When the need to achieve the cyclic shift, it will become a UL Bit Address

spaces can, in this case R6: 14/10

2) BSR And BRL similar

3) SQQ Comparison of instruction sequencer

• 11: Buffer command FIFO, LIFO

FIFO instruction word into the files and loaded in

accordance with the order they were discharged; LIFO after

the first out just the opposite.

(FIFO and BSL can be compared to understand, one is Bit,

one word)

• FFL, FFU FIFO load, FIFO unloading

33

• LFL, LFU LIFO load, LIFO unloading

• Use must be loaded and unloaded using paired

• Cascade conditions become true by the implementation of

a false

• FFL trigger conditions for the rising edge

• FFU trigger conditions for R6: 0.DN

34

When R6: 0.POS 33, the N7: 45⎝time will be N7: 10

FFL: When the rising edge arrives, FFL's EN = 1, N7: 10 N7: 9, POS + 1;⎝

Until the stack are filled (34 elements), DN = 1, prohibits the source load.

FFL: When the rising N7: 11,⎝edge arrives, FFU of EN = 1, the elements of

the stack position 0 out POS minus 1. Until the stack is empty

12: program control instructions

JMP, LBL, JSR, RET, SBR

1) JMP, LBL

35

• Matching using

• label up to 0-999

2)JSR、SBR、RET

36

SLC5/01 four subroutines

• SLC5/02 more than eight subroutines

• STI, DDI, Fault, HSC interrupt, only three

• JSR in the file number for the 3-255

13: MSG communication instruction

SLC5/03/04 communication

channel

Alternative means of

communication

37

Parameter

configuration

Configuration menu

38

Experiment 4 editing program, save and download

In this study, a simple procedure for: PLC control of a flashing light,

flashing once every 1 second.

1, double-click the LAD 2, enter the programming state

2, enter the ladder diagram shown

39

Which, T4: 1, T4: 2 are two timers, O: 1 / 0 is the output indicator. Parameter on the timer, in the previous experiment was introduced, not in the description here. 2, program download In the first experiment we have created the DF1 communication path. Program before downloading, click the icon in the toolbar Works calibration to determine the correct procedure. Click on the icon

Save the file.

Then the program downloads to the processor. In the menu

to find Comms-> System Comms, click

40

Select Path dialog box appears, in the DF1 communication, the click

of the mouse to SLC-5/04 processor, and then click the Download

button to start the download process。

Well, the processor is running, you can see the interval of 1 second

flashing lanterns. Congratulations, successful experiments!

41

Experiment 5 Notes to editor

We continue to test the contents of four, notes of procedures.

1, the program RUNG for comments. In the Program Edit mode, the mouse

point to the right to comment the line, select Edit Comment

42

In the Rung Comment, enter notes, press OK button, the program line

will appear just enter the text annotation。

2 notes address the procedure

Right click the address you want to comment, find Edit

Description, click into the dialog box

Program line comments

43

Enter descriptive text annotation, click the OK button, you can see in the program you enter text notes Rights, the program will appear in the same address you enter comments.

44

OK, this experiment is complete.

45

Six experimental and Panelview600 SLC500 DeviceNet communication through We are in the content, you need to SLC500 Communication via DeviceNet and Panelview600, during PV experiments before the DeviceNet preparations. Experiments will be used RSNetworx for DeviceNet software, network configuration. The experiment by 1784-PCD card connected to the device from a PC, network, network connection, and with 1747-SDN DeviceNet interface PV. Before the experiment we have completed the network connection has been created in the PC, the communication driver 1784-PCD, in the experiment only the software for network planning. 1, Start-> program-> Rockwell Software-> RSNetworx-> RSNetworx for DeviceNet, running RSNetworx for DeviceNet

46

Click on the icon ,Create a new document. Click the Online icon ,

Select 1784-PCD, press OK button in the message dialog box that appears,

click on OK button, and enter the network node scan。

The following screen will appear, only three nodes on the network now。

47

Right-click the 1747-SDN scanner, find Properties, click the configuration

into the 1747-SDN

In General, you can see the modules, address (where you can modify the

station address). Next, we enter Scanlist configuration. Click Scanlist, and

then upload

48

Because PV does not contain any of the I / O, so the need for I / O

configuration. Click the Edit I / O Parameters button to I / O configuration

We chose POLLED type, input and output of all 10words (input and output

bytes and PV to be the same tree). In the input and output can be seen under

the PV assigned to the I / O address

49

Well, we completed the network configuration and I / O allocation.Now, we

return to the programming software, look at the I / O data files, from I: 6.0

from the input and from the O: 6.0 allocated to the output from the PV, the

10 words. They used to use the data swap。

And PV of communication, we put a PV to the specific description. Also,

come through DeviceNet communication, be sure to activate it yo. Method is

to scan the output from running the command register bit (RUN) to 1, which

is located in the output word 0 bit 0.

50

Experimental seven familiar Panelbuilder32 Content: • Startup dialog box • Application window • window screen • Toolbar • Status Bar • Right-click menu • Set the default value of reference and • Online Help 1, start dialog When running PANELBUILDER32, the following screen appears:

51

1, the application window

1, display window

1, toolbar There are nine Toolbar。

52

1, set the reference, and default values

TOOLS->OPTIONS

53

Eight applications and screen test Content: • generate new applications • Use the application screens • Generate application reports 1, generate new applications Create a new application, depending on the experimental device, select the type of PV, communication protocols and operator input type.

Application is open, with a blank screen

54

1, using the application screen

Each screen has the following attributes: • Name (default is Screen1, Screen2 ... ..) • Screen number (1-255) • Background • Description Right-click Screens New, open screen dialog box

1, save the application PanelBuilder32 use three file types

File Save or Save as

55

1, generate application reports In OPTIONS, set reporting information, based on demand, set the report◊TOOLS format, and the application of information printed text

56

Nine experiments using the screen object 1, configuration, communication PanelView and controller and remote devices can communicate more in the way, DH-485, DH +, RemoteI / O, Ethernet / IP, DeviceNet, DF1, ControlNet, Modbus, etc. This experiment DeviceNet. In the Application Settings, double-click communications setup, configuration dialog appears

Enter the node address, select the baud rate, I / O input and output word number

57

and when we make the same DeviceNet network planning. 1, the generated image objects

: such as, or choose an object from the Object, From the Toolboxinstantaneous

button

1, the mouse in the screen (+) location where the object to be placed

58

1, the configuration object properties Right-click the Add button object, find the object properties, the following screen appears

Click the Edit Tag button to edit a new tab

Edit a new tab

59

It is worth noting: For the PV, I / O address from the I: 0 / 0 and O: 0 / 0 start, and in the SLC500 is from I: 6.1 / 0 and O: 6.1 / 0 start (6 is 1747-- SDN's slot number), I: 6.0 and O: 6.0 back occupied for read-only. Well, the corresponding controller tags to be okay. Next, then we look STATE table, you can enter information, respectively, to 0,1 values of text, for example, 0 is "STOP", 1 for the "START

This to make a button in the picture

60

In this study, the definition of this object is given only the general steps, and other screen objects set identical. Can try to add the following screen display objects: buttons, digital input and output, state selection, scene selection, etc.

61

Ten PannelView and SLC experiments by DH +, DH485, EtherNet communication established 1, DH-485 communication path established New Project, select the operator terminal type, click OK

Click the "Terminal Setup", set the terminal,

62

Communication with the PLC to be connected, the default end address bit is 2, enter the node name and the PLC type, and address

Click Settings Communication

63

Click OK, communication is set up. 1, DH + communication path established New Project, select the terminal type, and click OK

64

Click the "Terminal Setup", set the terminal

The default terminal address, set the PLC to communicate with information

Click Settings Communications

65

Click OK, communication is set up. 1, Ethernet communication path established New Project, select the terminal type, and click OK

66

Click the "Terminal Setup", set the terminal,

The default terminal address, set the PLC to communicate with information

Click Settings Communications

67

Click OK, communication is set up.

68

Experiment XI PannelView and SLC DH + communication procedures by example 1, SLC program established, as stated before, the new project, established within the SLC in RSlinx download path, through the RS232 serial download, auto upload I / O configuration.

2, check the SLC CPU communication port settings, use the default value

69

3, write a test program with the ladder

70

1、, configuration PannelView screen by using the aforesaid example DH +

communication with the SLC to create a new project, configure the

communication path. Create a new image。

2, the Add button on the screen, light, numerical display, bar graph display function screen. 1) Add button, double-click the button to compile button functionality

新建屏幕

71

Edit Labels

Button type

72

Editing

Click the OK button to produce finished。

2) Add

indicator

73

Double-click the indicator compiled attribute, edit the variable

label

Indicator is set up

74

3) Add display bar

graph

Double-click Compile

property

75

4) Add the output value

shows

Double-click Compile

property

76

Build a successful numerical display。

Of course, you can add other features, testing procedures, pay attention to

label the variable sources, types match。

Do not forget to add configuration Go to configuration Button。

Experiment 12 SLC5/05 And PVplus Use EtherNet Communication

1、 RSlinx Set up Ethernet ,Configuration IPAddress

2、 Open RSview Studio Software , “ME” Create a new project,

configure communication path。

3、 A new screen, compile label variable, right-click “Tag”“Refresh All

Folders” Refresh variable, the variable you want to connect, the

configuration OK。

77

4、Set the splash screen

5、Generate “Runtime File"

78

6-download

Download is completed, establishing communication OK

The experiment focused on the establishment of communication

configuration。

File path

Download

79

Conclusion

The same principle, you can use two additional DEMOTest EtheNet、

DH485 Communication In SLC+PVProject application testing, so you can

easily use simple SLC+PV Product configuration software programming,

successfully applied to a wide range of projects。