Sunteți pe pagina 1din 80

)005 (Rslogix )23 (panel builder www.filecrop.

com

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-> RSLinxRun 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

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.

Well, we have created the Well DF1 communication, click on the icon, online browsing device

This experiment a're done

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

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

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.

About SLC500 memory, data files and the address expression 1) program file 2) data files

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

O0I1S2B3T4C5R6N7F8 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
9

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

4T4 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

10

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 OB16 OB32 NI4 NO4 I:1.0/015 O:2.0/015 O:3.0/015 I:4.03 O:5.03

O:3.1/015

11

2Local I / O expansion rack

1747-C16

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

12

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.

13

The following wording to determine X Definition:1SN 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

14

available

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

15

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:

16

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

17

2: Timer

Command
Timer address elements from the three words (3 word) consisting of data structures.

18

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 DN(Bit13) TT (Bit14)

Set Conditions ACC PRE Rung conditions are true and ACC PRE

Remain set until Rung condition is false Rung condition is false DN=0 Rung condition is false

EN (Bit15)

Rung conditions are true

19

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 DN(Bit13)

Set Conditions Rung conditions are true

Remain set until Rung condition is false and ACCPRE Rung conditions are true DN=0

TT (Bit14)

Rung condition is false and ACC PRE

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.

20

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

21

CTU/CTD

Plus counting and by counter

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

22

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

23

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

24

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)
25

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 1)COP FLL CLR

File a copy of the document Source and Dest address symbol # must be that the starting position Lenth maximum length of 128

26

2) FLL

Source is a constant or a register Dest must address sign #, that the starting position Length Lenth

27

3) CLR
Clear operation of a word.

9: send the command

Mov MVM

1Mov

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

28

data transfer more than one address, the use of COP

instruction

29

2MVM 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

30

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

31

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

32

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

33

When R6: 0.POS 33, the N7: 45time 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

34

Matching using

label up to 0-999 2JSRSBRRET

35

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

36

Parameter configuration

Configuration menu

37

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

38

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

39

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

40

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

41

In the Rung Comment, enter notes, press OK button, the program line will appear just enter the text annotation Program line comments

2 notes address the procedure Right click the address you want to comment, find Edit Description, click into the dialog box

42

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.

43

OK, this experiment is complete.

44

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

45

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

46

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

47

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

48

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.

49

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:

50

1, the application window

1, display window

1, toolbar There are nine Toolbar

51

1, set the reference, and default values TOOLS>OPTIONS

52

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

53

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

54

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

55

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

56

and when we make the same DeviceNet network planning. 1, the generated image objects From the Toolbox, or choose an object from the Object, such as: instantaneous button

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

57

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

Edit a new tab

Click the Edit Tag button to edit a new tab

58

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

59

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.

60

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

61

Click Settings Communication

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

62

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

63

Click the "Terminal Setup", set the terminal

Click Settings Communications

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

64

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

65

Click the "Terminal Setup", set the terminal,

Click Settings Communica tions

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

66

Click OK, communication is set up.

67

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

68

3, write a test program with the ladder

69

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

70

Button type Edit Labels

71

Editing

Click the OK button to produce finished 2) Add indicator

72

Double-click the indicator compiled attribute, edit the variable

label

Indicator is set up

73

3) Add display bar

graph

Double-click Compile property

74

4) Add the output value shows

Double-click Compile property

75

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 2

RSlinx Set up Ethernet Configuration IPAddress Open RSview Studio Software ME Create a new project,

configure communication path

A new screen, compile label variable, right-click TagRefresh All

Folders Refresh variable, the variable you want to connect, the configuration OK

76

4Set the splash screen

5Generate Runtime File"

77

6-download

File path

Download

Download is completed, establishing communication OK

The experiment focused on the establishment of communication configuration

78

Conclusion The same principle, you can use two additional DEMOTest EtheNet DH485 Communication In SLCPVProject application testing, so you can easily use simple SLCPV Product configuration software programming, successfully applied to a wide range of projects

79

S-ar putea să vă placă și