Báo cáo thực hành PLC các buổi chi tiết Catalogue, các bước thực hành PLC Rockwell Logix5000 (Allen-Bradley)
CPU 1769 – L32E
- Maximum number of I/O banks: 3 banks
- Communication port: 1 Ethernet/ IP port ( 10/100 Base – T), 1 RS-232 serial port
Compact I/O 1769-SDN DeviceNet Scanner: Communications Module, CompactLogix, DeviceNet Scanner Module,1 Channel, 5 Male Pin Phoenix Connector
- The scanner, as a master, can own up to 63 slave I/O nodes.
- 1769-SDN scanner has a current draw of 440 mA at 5 V DC and 0 mA at 24 V DC.
• 1769 – PA2: Power Supply, CompactLogix, AC, 85-265V AC Input, 5V at 2
3 1769 – IQ32: Input Module, CompactLogix, DC Digital, 32 Point 10- 30V DC, 32 Sinking or Sourcing Input
Figure 1.4 1769-IN088A-EN-P, Compact I/O Modules Installation Instructions page 31
Figure 1.5 Allen-Bradley 1769-IQ32 Installation Instructions Manual page 14
Module 1769 – OB32: Output Module, CompactLogix, DC Digital, 20.4 - 26.4VDC, 32 Current Sourcing Point at 0.5 A Output, 32 Point
Figure 1.6 1769-IN088A-EN-P, Compact I/O Modules Installation Instructions page 39
Figure 1.7 1769-in031_-en-p page 177 FLEX I/O MODULE
FLEX I/O MODULE
DEVICENET COMMUNICATION
Figure 1.10 Compactlogix controller users manual page 53
Figure 1.11 Compactlogix controller users manual page 42
Figure 1.12 Compactlogix controller users manual page 72
Figure 1.13 dnet-um004_-en-p page 20
Figure 1 14 dnet-um004_-en-p page 16
Power supply 1794 – PS13: Power Supply, Flex I/O,120/230 VAC Input,
A @24VDC Output, Open Style, DIN Mount, IP20
All Flex I/O adapters provide internal power to the maximum possible number of 8 Flex I/O modules Power supply modules are required to provide 24V to the adapters ( 1794-ib16xt page 16).
Figure 1.15 Allen-Bradley 1794-PS3 Installation Instructions Manual page 11
WEEK 2: Studio 5000 Logix Designer Interface Survey
Create a simple program
Errors encountered and how to fix them
BT1 Fault How to fix it
1 Error without variable information Set variables
Download program to PLC
Step 1: Operate ethernet network connection to CPU via Rslinx.
Step 2: In RS logix 5000, select "communications" > Who active > select the network just connected in step 1 > select Download.
Meaning of the status of the indicator lights on the CPU of the PLC:
How do I know if the program has been downloaded to the PLC CPU?
The indicator lights on the RS logix 5000 light up.
Errors encountered and how to fix them
BTI Fault How to fix it
1 The indicator light in OK is red Adjust your computer's key/preferences to PROG mode
Program Execution
a The location of the lock and the meaning of each location b For PLC in PROG mode:
- Here's how: Adjust the lock to PROG mode / on the software to set it to PROG mode
- Indicator light (both on CPU and RSlogix 5000
- Proceed to change the program when the PLC is in PROG mode, commenting:
You can add new programs, but you can't change or run old ones. c For PLCs running in RUN mode:
- Here's how: Adjust the lock to RUN mode / on the software to set it to RUN mode
- Indicator light (both on CPU and RSlogix 5000
- Proceed to change the program when the PLC is in RUN mode,commenting:
You can add new programs, but you can't change or run old ones d For PLC running RUN mode and indicator light
- Here's how: Adjust the lock to REM mode / on the software to set it to Remote RUN mode
- Indicator light (both on CPU and RSlogix 5000)
- Proceed to change the program when the PLC is in Remote RUN mode, commenting:
We can change the program and run.
Use the force I/O function to test the program
- How do we know we've done it right?
- Errors encountered and how to fix them
BTI Fault How to fix it
- Go online: Monitor the project in the controller
- Upload: transfer a copy of the project from the controller to RSLogix 5000 software
- Download: transfer the open project to the controller
- Forces: Use a force to override data that your logic either uses or produces.
+ Test and debug your logic.
+ Temporarily keep your process functioning when an input device has failed.
Use forces only as a temporary measure They are not intended to be a permanent part of your application
- Enable I/O force: For a force to take effect, you enable forces You can only enable and disable forces at the controller level.
+ You can enable I/O forces and SFC forces separately or at the same time.
+ You cannot enable or disable forces for a specific module, tag collection, or tag element
- Disable or remove: To stop the effect of a force and let your project execute as programmed, disable or remove the force.
+ You can disable or remove I/O and SFC forces at the same time or separately.
+ Removing a force on an alias tag also removes the force on the base tag.
+ Fault: If a fault condition occurs that prevents an instruction from running, the instruction aborts and the controller reports a major fault A major fault halts logic execution and the controller switches to faulted mode (the OK LED flashes red)
- Errors encountered and how to fix them
BTI Fault How to fix it
1 Error in software installation Remove the ticks in Virtualize Intel
VT-x/EPT or AMD-V/RVI and Virtualize
2 Error Virtual Network Editor does not receive the link from the computer's card:
This error is encountered because the converter port of the computer and the USB to LAN converter port do not have the same version
WEEK 4: SIMULATE ON THE RS LOGIX 5000
How to simulate on RSLogix 5000
BTI Fault How to fix it
1 Can't download the program because of the
Fix the module's slot so that it matches the wrong slot simulation side
2 Error not connecting I/O module and bit cannot be changed
How to program using timers and counters on RSlogix 5000
WEEK 6: BASIC INSTRUCTIONS AND PROGRAMS IN RSLogix
Bit logic
Examine If Closed (XIC) The XIC instruction tests the data bit to see if it is set.
Examine If Open (XIO) The XIO instruction examines the data bit to see if it is cleared Output Energize (OTE) The OTE instruction sets or clears the data bit.
Output Latch (OTL) The OTL instruction sets (latches) the data bit.
Output Unlatch (OTU) The OTU instruction clears (unlatches) the data bit.
Timer ON Delay (TON)
The TON instruction is a non-retentive timer that accumulates time when the instruction is enabled (rung-condition-in is true).
- Preset: immediate how long to delay (accumulate time)
- Accum: immediate total msec the timer has counted the initial value is typically 0
- EN: The enable bit indicates the TON instruction is enabled.
- TT: The timing bit indicates that a timing operation is in process
- DN: The done bit indicates that ACC ≥ PRE.
- PRE:The preset value specifies the value (1 msec units) which the accumulated value must reach before the instruction sets the DN bit.
- ACC: The accumulated value specifies the number of milliseconds that have elapsed since the TON instruction was enabled.
Timer OFF Delay (TOF)
The TOF instruction is a non-retentive timer that accumulates time when the instruction is enabled (rung-condition-in is false).
- Preset: immediate how long to delay (accumulate time).
- Accum: immediate total msec the timer has counted the initial value is typically 0.
- EN: The enable bit indicates the TOF instruction is enabled.
- TT: The timing bit indicates that a timing operation is in process.
- DN: The done bit indicates that ACC ≥PRE.
- PRE: The preset value specifies the value (1 msec units) which the accumulated value must reach before the instruction clears the DN bit.
-.ACC: The accumulated value specifies the number of milliseconds that have elapsed since the TOF instruction was enabled.
Count Up (CTU)
The CTU instruction counts upward.
- Preset: immediate how high to count
- Accum: immediate number of times the counter has counted the initial value is typically 0.
- CU: The count-up enable bit indicates the CTU instruction is enabled.
- DN: The done bit indicates that ACC ≥PRE.
.PRE: The preset value specifies the value which the accumulated value must reach before the instruction sets the DN bit.
.ACC: The accumulated value specifies the number of transitions the instruction has counted.
Count Down (CTD)
The CTD instruction counts downward.
- Preset: immediate how high to count
- Accum: immediate number of times the counter has counted the initial value is typically 0.
- CD: The count-down enable bit indicates the CTD instruction is enabled.
- DN: The done bit indicates that ACC ≥PRE.
- PRE: The preset value specifies the value that the accumulated value must reach before the instruction sets the DN bit.
- ACC: The accumulated value specifies the number of transitions the instruction has counted.
WEEK 7: BASIC PROGRAMS AND EMULATE PROGRAMS IN
Program emulate steps
- Request: Start/Stop control of two motors sequentially
- Step 1: Create new project and choose the suitable controller
+ Here, we choose RSLogix™ Emulate 5000 controller and put it in slot 2
+ press the right mouse in I/O Configuration and choose New Module
+ Config suitable I/O modules: There are 2 modules configured here
- Step 3: Write tags in Program Tags
- Step 4: Write the program in Main Routine
- Step 5: Open RSLogix Emulate 5000 Chassis Monitor software
- Step 7: Go back RSLogix 5000 – click to Who Active and download program
- Step 8: After finish download, change to Run mode and execute simulation.
Use timer TON to control 2 motors sequentially
3 Use timer TOF to control 2 motors sequentially
4 Control the light on and off periodically:
- Explain: Change program to Run mode.
0) Toggle bit NO contact START to level 1, Temporary variable TEMP = 1.
1) The Temporaty variable TEMP =1, Timer TON started delay
2) Use LEQ instruction to compare preset (PRE) and Accum (ACC) of Timer TON + When the Time delay Accum is less than PRE, LEQ instruction allows a signal to pass through and Output LIGHT turned on.
+ When Time delay Accum greater than PRE , LEQ instruction don’t allows signal to pass through and Output LIGHT turn off.
3) CTU instruction count number time LIGHT turn on/off After COUNTER finished (Accum=5) The auxiliary NC contact COUNTER.DN opend Timer is de- energized.
WEEK 8: REAL-TIMER CLOCK AND SUBROUTINE IN
Write a program to alarm the class using real time clock
Class timing The time that bell rings
- Real-Time Clock (Get System Value (GSV) : The GSV instructions get and set controller system data that is stored in objects.
- Class name: name of object class
- Instance name: name of specific object, when object requires name.
- Attribute name: attribute of object data type depends on the attribute you select
- Destination (GSV): destination for attribute data
- The WALLCLOCKTIME object provides a timestamp that the controller can use for scheduling
- LocalDataTime: The controller local date and time in human readable format.
- DateTime: The Date and Time in human readable format
- How to change date and time of system:
- Subroutine (SBR): The SBR instruction passes data to and executes a routine
- Input parameter: tag in this routine into which you want to copy the corresponding input parameter from the JSR instruction
- Jump to Subroutine (JSR): The JSR instruction jumps execution to a different routine
- Routine name: ROUTINE name routine to execute (i.e., subroutine)
- Input Parameter: data from this routine that you want to copy to a tag in the subroutine
- Return: tag in this routine to which you want to copy a result of the subroutine
- Return (RET): The RET instruction returns the results
Return parameter: data from this routine that you want to copy to the corresponding return parameter in the JSR instruction
- Create new subroutine: Press the right mouse to MainProgram – the new Routine window appears – type the name of the new subroutine and press OK
WEEK 10: ADD ON INSTRUCTION RSLogix 5000
RSLogix 5000 making An Add On Instruction or AOI
- Right-click on the Add-On Instructions folder in the controller organizer, and click on a New Add-On Instruction:
- In the screen that pops up, you can dream up a name for your instruction, add a description, choose a revision number, add some notes and click OK.
- Go to the parameters tab, you can define the parameters your instruction will use to do its magic The EnableIn and EnableOut are two parameters that every instruction has, and are automatically created for you.
- For each parameter, you’ll have to choose if it is an input for the instruction or output, or maybe even an in and output.
- Go to the Local Tags tab:
- Then look up new instruction toolbar, lick Add-On.
- Go to the rung we want to use AOI, lick AOI that we created.
- Add-On Instruction: Conveyor_Control1
Control sequence two motors (A and B) with Add-On Instruction
- Request: Start/Stop two motors in sequence
+ Press Start button (→) Motor A (→) Motor B run.
+ Press Stop button → Motor B stop (→) Motor A stop
- Main routine: At main routine, only use start/stop button
- When START (Main routine) is pressed, Start_motor (AOI) also is set to level 1.
At this time, MOTOR_1 runs, and Timer_1 is energized After 5s, MOTOR_2 runs.
- When STOP (Main routine) is pressed, Stop_motor (AOI) reaches 0 At this timeMOTOR_2 stop TIMER_2 starts to delay 10s after 10s, MOTOR_1 stops.
Write a program to count the number of products using Add-On Instruction 40
- Request: + There are conveyor products running, after 5s the conveyor stops + Product light is on when the conveyor is running
+ Full 10 products, lights 10 products turn on
- Main routine: In the main routine, there are buttons to press start/stop and sensor.Indicator lights, timer, and counter have been included in AOI.
+ Press Start, Ready (light) turn on When sensor detects, Conveyor runs.
+ When the conveyor runs, timer delays 5s after that, the product (light) turns on + When enough 10 products, NO contact COUNTER.DN is closed Product_10 (light) on
+ Press Stop, Conveyor and all of light turned off.
How to configure the analog module in RSLogix 5000
- Right-click on the I/O Configuration folder in the controller organizer, and click on a New Module.
- Window Select Module Type pops up, Finds suitable module.
- From this panel, you can change slot, revision, and electronic keying
1) With Compatible Module, you can typically replace a device of a certain Major Revision with another device that has the following characteristics:
+ Same or higher Major Revision.
For secure device communication, "Exact Match" ensures that key attributes of the device match the project's specifications This precise verification of device revision prevents the use of unauthorized or incompatible devices, maintaining system integrity.
3) Disable Keying indicates that the keying attributes are not considered when attempting to communicate with a device Other attributes, such as data size and format, are considered and must be accepted before communication is established
- Go to Configuration tab, we can enable/disable a channel, set it to a different input type and configure the scaling options
Specify their main specification (input types, input ranges, resolution, max input…)
+ Voltage: -10 to +10V DC, 0 to 5V DC, 0 to 10V DC, 1 to 5V DC
- Maximum overload at input terminals:
+ Voltage terminal: ±30V DC continuous, 0.1 mA
+ Current terminal: ±32mA continuous, ±7.6V DC
- Supply Voltage Range: 20.4 V to 26.4 V DC
+ Voltage: ±10V DC, 0 to 5V DC, 0 to 10V DC, 1 to 5V DC
- Current Load on Voltage Output: 10 mA max.
- Digital Resolution Across Full Range: 0 to 500 Ω (includes wire resistance)
- Maximum Short-Circuit Current: 21mA
Draw the wiring diagram
Write a simple program to test the module
- To send a 5V signal to the output of analog module
- 1769-OF2 Valid Output Data Table:
WEEK 12: SURVEY OF THE HEAT FURNACE
What is RTD?
- RTD is a device used to measure temperature is also known as a thermoelectric sensor The type used in the Lab is a 3-wire Pt100
- Advantages: High accuracy, high durability, many lengths
- Cons: Can only measure temperature from -200oC to 800oC
- The output signal is 4-20mA
- Why 4-20mA signals are commonly used?
- Since the 0-20mA signal has no fault alarm function
- On the contrary, the 4-20mA signal is easy to diagnose the fault
Two wire transmitter
DC24V PT100 Temperature Sensor Transmitter Output 0-10V
By the transmitter, the resistance signal of thermal resistance can convert into a 4-
20 mA current signal, convenient to use with the computer
Solid State Relays 1-Phase Analog Switching (RM1E40AA25)
5 Controlling the furnace by proportional method
- Formula for calculating scale factor:
- The formula for calculating the furnace temperature:
- Formula for calculating furnace control voltage:
- Write a program based on the above formulas to control the furnace according to voltage: first, we read the input analog signal, the current value is 5008 equivalent to 25.12 degrees and the desired temperature is 50 degrees Taking the difference between the set temperature and the current temperature of the furnace, we get the error value then adjust the appropriate Kp coefficient to control the furnace.
6 Controlling furnace by PID combined with reading temperature 100ms once using periodic task
- Create a periodic task and set “Period” is 100ms.
- In PID setup window, setup parameter such as: Control action, CV High limit…
- In Scaling tab, type temperate value and engineering unit (min-max):
- First, we read the input temperature into the variable N, then calculate the actual temperature value of the furnace and put it into the PV variable, the temperature after being controlled will be put into the heatingsystem variable for observation.