digital alarm instruction

Transcription

digital alarm instruction
EEEF
ENHANCED INSTRUCTIONS
Bit Field Distribute: BTD
File Arithmetic and Logic: FAL
Copy File (COP) Synchonous And Copy File (CPS)
Digital Alarm Instruction:ALMD
Analog Alarm Instruction: ALMA
MSG, GSV, SSV Instructions.
Minor And MaJor Fault
HCMUTE 11_2014
1
Email:[email protected]_Phone 0908248231
MOV_LOGICAL INSTRUCTIONS
EEEF
Bit Field Distribute: BTD
BTD copies specified bits from the source, shifts the bits to
appropriate position and write the bits into Destination
HCMUTE 11_2014
2
Email:[email protected]_Phone 0908248231
MOV_LOGICAL INSTRUCTIONS
EEEF
Bit Field Distribute: BTD
BTD copies specified bits from the source, shifts the bits to
appropriate position and write the bits into Destination
HCMUTE 11_2014
3
Email:[email protected]_Phone 0908248231
ARRAY FILE INSTRUCTIONS
EEEF
File Arithmetic and Logic: FAL
FAL performs copy, arithmetic, logic and function operations
on data stored in an array.
Selection Mode of operations.
Structured Text
FOR position = 0 TO length DO
destination[position] := numeric_expression;
END_FOR;
HCMUTE 11_2014
4
Email:[email protected]_Phone 0908248231
ARRAY FILE INSTRUCTIONS
EEEF
FAL Examples
When enabled, FAL copies each element of array 2 into the
same position within array 1
When enabled, FAL copies value_1 into the first 10 positions
of array_2.
HCMUTE 11_2014
5
Email:[email protected]_Phone 0908248231
ARRAY FILE INSTRUCTIONS
EEEF
When enabled, FAL dives the value in the current position of
array_2 with the value in the current position of array_3 and
stores the result in the current position of array_1.
HCMUTE 11_2014
6
Email:[email protected]_Phone 0908248231
ARRAY FILE INSTRUCTIONS
EEEF
Copy File (COP) Synchonous And Copy File (CPS)
The COP and CPS copy the value(s) in the Source to the Destination.
The Source remains unchanged
Difference between COP and CPS
HCMUTE 11_2014
7
Email:[email protected]_Phone 0908248231
ARRAY FILE INSTRUCTIONS
EEEF
COP and CPS Examples
When enabled, COP copies the first 10 elements of array_4 into the
first 10 elements of array_5
ST: COP(array_4[0],array_5[0],10);
When enabled, CPS copies 100 elements of project_data[0] into the
100 elements of produced_array[0]. No I/O Updates or other Tasks can
change the data
ST:CPS(project_data[0],produced_array[0],100);
HCMUTE 11_2014
8
Email:[email protected]_Phone 0908248231
DIGITAL ALARM INSTRUCTION
EEEF
Digital Alarm Instruction:ALMD
HCMUTE 11_2014
9
Email:[email protected]_Phone 0908248231
DIGITAL ALARM INSTRUCTION
EEEF
Digital Alarm Instruction:ALMD
HCMUTE 11_2014
10
Email:[email protected]_Phone 0908248231
DIGITAL ALARM INSTRUCTION
EEEF
ALMD:Creating Message to display in Factory Talk View
HCMUTE 11_2014
11
Email:[email protected]_Phone 0908248231
DIGITAL ALARM INSTRUCTION
EEEF
ALMD Alarm Acknowledge Required and Not Latch
HCMUTE 11_2014
12
Email:[email protected]_Phone 0908248231
DIGITAL ALARM INSTRUCTION
EEEF
ALMD Alarm Acknowledge Required and Latched
HCMUTE 11_2014
13
Email:[email protected]_Phone 0908248231
ANALOG ALARM INSTRUCTION: ALMA
ALMA Alarm Acknowledge Required
HCMUTE 11_2014
14
EEEF
Email:[email protected]_Phone 0908248231
Inputs And Outputs Data Of ALMA
EEEF
HCMUTE 11_2014
15
Email:[email protected]_Phone 0908248231
ANALOG ALARM INSTRUCTION: ALMA
HCMUTE 11_2014
16
EEEF
Email:[email protected]_Phone 0908248231
MSG, GSV, SSV INSTRUCTIONS
EEEF
I/O Instructions: Message Control (MSG), Get System
Value(GSV), Set system Value(SSV)
HCMUTE 11_2014
17
Email:[email protected]_Phone 0908248231
MSG, GSV, SSV INSTRUCTIONS
EEEF
Read Realtime in PLC
Create a tag to store DateTime data of PLC, the tag is 8(DINT)
Array
HCMUTE 11_2014
18
Email:[email protected]_Phone 0908248231
MSG, GSV, SSV INSTRUCTIONS
EEEF
Use GSV instruction to read and store Realtime in plc
Depend on your applications, which data in array is used
If DateTime data is wrong, use SSV to set
DateTime to PLC
HCMUTE 11_2014
19
Email:[email protected]_Phone 0908248231
MSG, GSV, SSV INSTRUCTIONS
EEEF
Choose Monitor Tags to view DateTime data of the controller
HCMUTE 11_2014
20
Email:[email protected]_Phone 0908248231
MSG, GSV, SSV INSTRUCTIONS
EEEF
Message Control (MSG)
Read or write data to or from the controller or a block of
data to or from another module on another network.
HCMUTE 11_2014
21
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Add-on Instruction introduction
Custom Instruction
Reuse code
Provide an easier to understand interface
Export and Import an Add-on Instruction
HCMUTE 11_2014
22
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Creating Add-on Instruction
HCMUTE 11_2014
23
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Creating parameters and Local Tags
HCMUTE 11_2014
24
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Creating logic for the Add-on Instruction
HCMUTE 11_2014
25
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Creating I/O Tags and Adding the Add_on instruction to project.
HCMUTE 11_2014
26
Email:[email protected]_Phone 0908248231
ADDON INSTRUCTION
EEEF
Export and Import the Add-on Instruction
HCMUTE 11_2014
27
Email:[email protected]_Phone 0908248231
MINOR AND MAJOR FAULT
EEEF
Minor Fault: The CPU does not switch to faulted mode
Periodic Task overlap.
Load from nonvolatile memory.
Problem with serial port.
Low battery…..
Major Fault: The CPU switch to faulted mode
The CPU powered on in run mode.
A required I/O module connection failed.
Configuration fault occurred…..
HCMUTE 11_2014
28
Email:[email protected]_Phone 0908248231
MINOR FAULT CODES
HCMUTE 11_2014
29
EEEF
Email:[email protected]_Phone 0908248231
MINOR FAULT CODES
HCMUTE 11_2014
30
EEEF
Email:[email protected]_Phone 0908248231
MINOR FAULT CODES
HCMUTE 11_2014
31
EEEF
Email:[email protected]_Phone 0908248231
MINOR FAULT CODES
EEEF
Ex1: Arithmetic overflow, result of arithmetic instruction is out of range(
Type =4, code =4)
HCMUTE 11_2014
32
Email:[email protected]_Phone 0908248231
MINOR FAULT CODES
EEEF
EX2: Periodic task overlap, Task scheduled again before it finished executing(Type
=6, code =2)
HCMUTE 11_2014
33
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
HCMUTE 11_2014
34
EEEF
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
HCMUTE 11_2014
35
EEEF
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
HCMUTE 11_2014
36
EEEF
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
EEEF
EX3: Timer with a negative value preset for its Pre ( Type =04, code =34)
HCMUTE 11_2014
37
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
EEEF
EX4: JMP to a label that do not exits ( Type =04, code =42)
HCMUTE 11_2014
38
Email:[email protected]_Phone 0908248231
MAJOR FAULT CODES
EEEF
EX5: Task watchdog expired( Type =06, code =01)
HCMUTE 11_2014
39
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Programmatically Clear a Major Fault
Creating a Data Type to Store Fault Information
Getting the Fault Type and Code
Checking for a Specific Fault
Clearing the Fault
The CPU resumes execution
HCMUTE 11_2014
40
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Choosing Where To Place The Fault Routine .
HCMUTE 11_2014
41
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Choosing Where To Place The Fault Routine .
HCMUTE 11_2014
42
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Creating a Data Type to Store Fault Information.
 To access system information, use GSV(Get System Value) and SSV(Set System
Value) Instruction.
 For status information about a program, access the program Objects.
 For fault information, access these attribute of the program Object
HCMUTE 11_2014
43
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Getting the Fault Type and Code.
HCMUTE 11_2014
44
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Checking for a Specific Fault.
HCMUTE 11_2014
45
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Clearing the Fault.
HCMUTE 11_2014
46
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Example: Checking and clearing the fault when CPU powered in run mode:
Type =1, Code = 1.
Creating a Data type to store fault information of program
Use GSV instruction to read MAJORFAULTRECORD attribute of the program
Checking for a specific fault Type and Code then clearing the fault
Use SSV instruction to write new value to MAJORFAULTRECORD attribute of
the program.
HCMUTE 11_2014
47
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Creating a Data Type to store fault information of program
HCMUTE 11_2014
48
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Creating a tag to store MAJORFAUTRECORD of the program
HCMUTE 11_2014
49
Email:[email protected]_Phone 0908248231
HANDLING FAULTs
EEEF
Creating a routine in Controller Fault Handler and write a program as
following
HCMUTE 11_2014
50
Email:[email protected]_Phone 0908248231
HANDLING FAULT
EEEF
EX2: Handling faults for the CPU
HCMUTE 11_2014
51
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKS
EEEF
A RSLogix 5000 Controller supports three type of tasks
HCMUTE 11_2014
52
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKS
EEEF
A RSLogix 5000 Controller supports three type of tasks
Continuous Tasks
Periodic Task
Event Task
Characteristic of Tasks
The controller executes only one Task at one time
A Task can interrupt a different task that is executing and take
control if it has high priority
In any given Task, only one program executes at one time.
HCMUTE 11_2014
53
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKS
EEEF
Function of Tasks
HCMUTE 11_2014
54
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKSt
EEEF
This example depicts execution of a project with three tasks
HCMUTE 11_2014
55
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKS
EEEF
Examples for using Tasks
HCMUTE 11_2014
56
Email:[email protected]_Phone 0908248231
RSLOGIX 5000 CONTROLLER TASKS
EEEF
Priority Periodic and Event Tasks: The priority of each task tells the controller
what to do
HCMUTE 11_2014
57
Email:[email protected]_Phone 0908248231
PROGRAM FOR PERIODIC TASKS
EEEF
Creating a Periodic Task, Putting an appropriate name, selecting Task Type,
Periodic and Priority, creating a program and writing a logic program
Creating a Periodic Task, enter an appropriate name
HCMUTE 11_2014
58
Email:[email protected]_Phone 0908248231
PROGRAM FOR PERIODIC TASKS
EEEF
Selecting Task Type, Periodic and Priority
HCMUTE 11_2014
59
Email:[email protected]_Phone 0908248231
PROGRAM FOR PERIODIC TASKS
EEEF
Creating a new Program with appropriate name and a new routine
HCMUTE 11_2014
60
Email:[email protected]_Phone 0908248231
PROGRAM FOR PERIODIC TASKS
EEEF
Select Main Routine for writing logic program
HCMUTE 11_2014
61
Email:[email protected]_Phone 0908248231
PROGRAM FOR PERIODIC TASKS
EEEF
Selecting Main Routine for writing a Program
Add Instruction will executed one every 1000ms
HCMUTE 11_2014
62
Email:[email protected]_Phone 0908248231
MANAGE EVENT TASKS
EEEF
Choosing the Trigger for an Event Task
HCMUTE 11_2014
63
Email:[email protected]_Phone 0908248231
MANAGE EVENT TASKS
EEEF
Module Input Data State Change Trigger
Event Task is trigged whenever data from input change
HCMUTE 11_2014
64
Email:[email protected]_Phone 0908248231
MANAGE EVENT TASKS
EEEF
Choosing Trigger for Module Input State
Event
Task
is trigged whenever data65
from inputEmail:[email protected]_Phone
change
0908248231
HCMUTE
11_2014
PROGRAM FOR EVENT TASKS
EEEF
Creating an Event Task, enter an appropriate name, Selecting Task Type, event
And Priority, creating a Program and writing a logic program
Creating an Event Task, enter an appropriate name, Type of Task , Trigger and
Priority
HCMUTE 11_2014
66
Email:[email protected]_Phone 0908248231
PROGRAM FOR EVENT TASKS
EEEF
Creating a new Program with appropriate name and a new routine
HCMUTE 11_2014
67
Email:[email protected]_Phone 0908248231
PROGRAM FOR EVENT TASKS
EEEF
Selecting Main Routine in Event Task to write logic program
HCMUTE 11_2014
68
Email:[email protected]_Phone 0908248231
PROGRAM FOR EVENT TASKS
EEEF
Selecting Main Routine in Event Task to write a Program
Add Instruction will executed whenever Event Task is Called
HCMUTE 11_2014
69
Email:[email protected]_Phone 0908248231
PROGRAM FOR EVENT TASKS
EEEF
Use Trigger Event Instruction to call Event_Task
Trigger Task Instruction is placed in another Task.
HCMUTE 11_2014
70
Email:[email protected]_Phone 0908248231

Similar documents