SlideShare a Scribd company logo
1 of 31
SLC500 and LogixPro 
The Integer File 
Data File #7 (N7) 
Supplement to your textbook 
Northampton Community College 1
SLC-500 Default File Types 
FILE TYPE IDENTIFIER FILE 
NUMBER 
Output O 0 
Input I 1 
Status S 2 
Bit B 3 
Timer T 4 
Counter C 5 
Control R 6 
Integer N 7 
Float Point * F 8 
* Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & 
SLC-5/05 processors 
Northampton Community College 2
SLC-500 User Defined File Types 
FILE TYPE IDENTIFIER FILE 
NUMBER 
Bit B 9 - 255 
Timer T 9 - 255 
Counter C 9 - 255 
Control R 9 - 255 
Integer N 9 - 255 
Float Point * F 9 - 255 
String* St 9 - 255 
ASCII * A 9 - 255 
File #9 has a special purpose. It is called the “Computer Interface 
File” (CIF) and is used when communications is required between 
early AB PLCs 
Note: LogixPro does not allow user defined files. 
* Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & 
SLC-5/05 processors 
Northampton Community College 3
Integer File – Data File #7 
Northampton Community College 4 
 
The Integer file is a file of 256, 16-bit words. This file can be used, as 
needed, for user storage of integer data. The default radix is decimal, 
but it can be changed to binary, octal, hex/BCD or ASCII. 
 
The ControlLogix equivalent would be a tag of data type INT
Addressing the Integer File 
Northampton Community College 5 
 
Addressing the Integer file uses the same addressing format previously 
learned. 
 
Following are some examples and their location in the Integer file. (The 
Bit file can be addressed in the same manner). 
 N7:0 – Refers to the default integer file, Word 0 
 N7:3 – Refers to the default integer file, Word 3 
 N7:2/3 – Refers to the default integer file, Word 2, Bit 3
SLC500 
Floating Point File 
Not available in LogixPro 
Data File #8 (F8) 
Supplement to your textbook 
Northampton Community College 6
SLC-500 Default File Types 
FILE TYPE IDENTIFIER FILE 
NUMBER 
Output O 0 
Input I 1 
Status S 2 
Bit B 3 
Timer T 4 
Counter C 5 
Control R 6 
Integer N 7 
Float Point * F 8 
* Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & 
SLC-5/05 processors 
Northampton Community College 7
SLC-500 User Defined File Types 
FILE TYPE IDENTIFIER FILE 
NUMBER 
Bit B 9 - 255 
Timer T 9 - 255 
Counter C 9 - 255 
Control R 9 - 255 
Integer N 9 - 255 
Float Point * F 9 - 255 
String* St 9 - 255 
ASCII * A 9 - 255 
File #9 has a special purpose. It is called the “Computer Interface 
File” (CIF) and is used when communications is required between 
early AB PLCs 
Note: Floating Point and user defined files are not available in LogixPro 
* Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & 
SLC-5/05 processors 
Northampton Community College 8
Floating Point File – F8 
Format Explanation 
Ff:e F Floating Point file 
f 
File number. File number 8 is the default file number (i.e. F8). A 
user defined file number from 9 to 255 can be used if additional 
storage is required (e.g. F12 or F25) 
: Element (word) delimiter 
e 
Element (word) number. The element (word) number range is 
from 0 to 255 with each element (word) using two 16-bit words. 
As a result they are non-extended 32-bit numbers. 
Northampton Community College 9 
 
The Floating Point File is used whenever fractional numerical data or numerical 
data less than -32,768 or greater than 32,767 are needed. 
 
Floating Point data has two parts; an Integer and an Exponent. Each word can 
store values such as: 23.45987 
 
Floating Point data can only be addressed to word level. An error will occur if a 
Floating Point address is addressed to bit level. 
 
All arithmetic instruction can be used with Floating Point numbers. 
 
The ControlLogix equivalent would be a tag of data type REAL. 
Valid address – F8:4 Invalid – F8:5/6 (no bit level)
Data Manipulation 
Chapter 06 Section 6-5-6 
Supplement to your textbook. 
Your textbook does not talk in any great detail 
about the Move (MOV) and Masked Move 
(MVM) instructions. 
Northampton Community College 10
Data Manipulation Instructions 
Northampton Community College 11 
 
Data manipulation instructions enable the programmable 
controller to manipulate data stored in memory. 
 
This extra characteristic gives the PLC capabilities that go 
far beyond the conventional relay equivalent instructions. 
 
Data manipulation involves transfer of data and operation 
on data with math functions, data conversion, data 
comparison and logical operations.
Data Files, Words and Bits 
Northampton Community College 12 
 
Words of data memory, in singular form, can be referred to 
either as registers, elements or as words, depending upon 
the PLC/PAC manufacturer. 
 
The terms table, array or file are generally used when a 
consecutive group of related data memory words is 
referenced. A group of consecutive elements or words in the 
SLC-500 family are referred to as a file, in a ControlLogix 
controller they are referred to as an array, in Siemens it is 
called a table or an array. 
 
The data contained in files and words will be in the form of 
binary bits represented as a series of 1’s and 0’s.
Data Files, Words and Bits 
Northampton Community College 13 
 
This is a pictorial representation of a file 
File, Array or Table
Data Manipulation Instructions 
Northampton Community College 14 
 
Data manipulation instructions allow the movement, 
manipulation or storage of data in either single or multiple 
word groups from one data memory area of the PLC to 
another. 
 
The use of data manipulation instructions in applications 
that require the generation and manipulation of large 
quantities of data generally reduces the complexity and 
quantity of the programming required.
Data Transfer Operations 
Northampton Community College 15 
 
Data transfer instructions simply involve the transfer of the 
contents from one word or register to another. 
 
When new data replaces existing data, the process is 
referred to as writing over the existing data. 
 
Data transfer instructions can address almost any location 
in memory. That location may be the preset word for a timer 
or counter or even an output register that controls a seven-segment 
display or a series of output devices.
Data Transfer Concept 
User defined Integer 
file N10:7 starts out 
with no data. 
After the data 
transfer occurs, 
word N10:7 will 
contain the same 
data as word 
N7:14. 
Data is to be transferred from a word in the 
default Integer file N7:14 to a word in the 
user defined Integer file N10:7. 
Northampton Community College 16
Move (MOV) Instruction 
Northampton Community College 17 
 
Allen-Bradley series controllers use a block formatted Move (MOV) 
instruction to perform data moves. 
 
The MOV instruction is an output instruction that moves the value stored 
in one word to another word. It doesn’t actually move the data, it makes 
a copy of the data from the source to the destination. 
 
The MOV instruction has two parameters: 
 Source 
 Destination 
Source specifies the 
word containing the 
data to be moved. 
Dest specifies the 
word where the data 
should be moved. 
Place holder that 
will display the 
value stored in 
these words when 
monitoring online.
Move (MOV) Instruction 
Northampton Community College 18 
 
The instruction parameters of a MOV instruction have several rules: 
 The destination (Dest) must always be a WORD level address or WORD 
level tag. 
 The Source can be a WORD level address, a WORD level tag or a program 
constant. 
 
MOV instructions can be conditional or unconditional. 
Conditional MOV 
Unconditional MOV
Move (MOV) Instruction 
Northampton Community College 19 
 
When the rung is true, the value 
stored at the Source address, N7:56, 
is Moved (copied) into the Dest 
address, C5:34.PRE. 
 
When the rung goes false, the Dest 
address will retain the value unless it 
is changed somewhere else in the 
program.
Siemens Move (MOVE) Instruction 
Northampton Community College 20 
 
When the Enable (EN) input becomes true, the data stored in the IN tag 
is moved to the OUT tag. 
 
The Enable Out (ENO) will be a logic 1 if the EN input is true and the 
MOVE occurred without error. 
 
MOVE instructions can be conditional or unconditional.
Lets Build the Following Circuit 
Northampton Community College 21 
 
You were assigned the task of implementing a new circuit that 
can be used to control a pump that is being used to pump sugar 
syrup or molasses. Because these ingredients have a different 
viscosity, the pump needs a startup delay of 10-seconds when 
pumping sugar syrup and 15-seconds when pumping molasses. 
 
Two separate latching N/O selector switches are used to select 
the correct time-delay. One for selecting the time delay for sugar 
syrup and one for selecting the time delay for molasses. The user 
should not be able to start the system if both time-delays are 
selected at the same time. 
 
Nothing should start unless the Start push button is pressed and 
everything should stop if the Stop push button is pressed. 
 
Once the Start push button is pressed, if the operator attempts to 
change the delay time, the setting should not take affect. For the 
new setting to take affect, the Stop push button must be pressed 
and the system must than be restarted. 
 
Preload the delay times into the appropriate tags before 
downloading the program.
Lets Build the Following Circuit – I/O Assignment 
 
Field device assignment: 
 Start Push Button – Wired to IN9 of the input module in slot 03 
 Stop Push Button – Wired to IN10 of the input module in slot 03 
 10-Second selector – Wired to IN4 of the input module in slot 03 
 15-Second selector – Wired to IN6 of the input module in slot 03 
 Pump motor starter – Wired to OUT7 of the output module in slot 09 
Northampton Community College 22
Circuit that Changes the Preset of a Counter with a MOV 
Northampton Community College 23
Masked Move (MVM) Instruction 
(Not in the IEC Standard) 
Northampton Community College 24 
 
The Masked Move (MVM) instruction is slightly different 
from the MOV instruction in that a mask word is involved in 
the MOV. 
 
The data being moved must pass through a mask to get to 
the Dest address. 
 
In the SLC500, the MVM instruction is used to move (copy) 
only the desired bits from a 16-bit word from the Source to 
the Dest by masking the bits that should not be moved. 
 
In the ControlLogix, the MVM instruction is used to move 
(copy) only the desired bits from a tag of data type SINT, 
INT or DINT from the Source to the Destination by masking 
the bits that should not be moved.
Masked Move (MVM) Instruction 
Northampton Community College 25 
 
The MVM instruction has three parameters: 
 Source 
 Mask 
 Dest 
 
The parameters have several rules: 
 The Source and Dest must be WORD level addresses. 
 The Mask can be a WORD level address or a program constant, preferably 
in Hexadecimal. 
Source must 
be a WORD 
level address 
Mask can be a 
hexadecimal number or 
a WORD level address 
Dest must be a WORD 
level address 
These fields 
display the 
values stored 
in the 
parameter 
addresses
Masked Move (MVM) Instruction 
Northampton Community College 26 
 
The Mask can be though of as a filter. The data in the Source word will pass 
through this filter (mask) and the value exiting the filter (mask) will be stored in 
the Dest word. 
 
Think of the mask as a plate with 16-holes (32-holes if there are 32-bits) and a 
butterfly valve in each hole; like a choke on an old style carburetor. If the valve is 
closed, nothing can get through (a zero). If the valve is open, an object can drop 
through the hole (a one). 
The valve is 
open a one (1) 
and data can 
pass through 
The valve is 
closed a zero (0) 
Data cannot 
pass through 
To the destination 
Word 
To the destination 
Word 
To the destination 
Word 
The mask shown would be: 1110000010000010 or E082h
Entering a Constant Mask Value 
Northampton Community College 27 
 
When entering the mask value as a constant it can be 
entered as a binary, octal or hexadecimal value. It is usually 
best to enter a constant as a hexadecimal number. 
 
Entering mask values as constants is done in the following 
formats: 
 
SLC500 
 Hexadecimal value: 0FFA3h 
 Octal value: 2273o 
 Binary value: 1010001100111100b 
 
ControlLogix 
 Hexadecimal value: 16#FFA37BC8 
 Octal value: 8#2273 
 Binary value: 2#101000110011100
Masked Move (MVM) Instruction 
These statement are not always true depending 
upon what version of RSLogix 500 is being used 
Northampton Community College 28 
 
The Mask can be entered as an address or tag, or as a program 
constant in hexadecimal, binary or octal. 
 
Where there is a ‘1 in the mask, data will pass from the Source to the 
Dest. Where there is a ‘0’ in the mask, data from the Source will not 
pass to the Dest. The bit positions in the Dest that are masked will retain 
whatever state they were in before the MVM occurred. 
Mask as a hex value: 7AB4h 
If the hex value starts with a letter, 
a leading ‘0’ will be added: 0AB74h 
Mask as an address: B3:16 
The value stored in B3:16 = 71CFh
Masked Move (MVM) Instruction 
1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 Destination before the MVM 
Northampton Community College 29 
 
Mask operation example 
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Source 
1 1 1 0 0 0 0 0 1 0 0 0 0 1 0 0 Mask 
1 0 1 0 1 1 0 0 1 1 0 0 1 0 0 0 Destination after the MVM
MVM Example 
Northampton Community College 30 
 
In the SLC500 MVM all 16-bits of the input module in slot 1 are being 
moved through a mask and storing the result in N7:0. 
 
The mask is “filtering out” everything except the devices wired to IN 
terminals, 4, 5, 6, 7, 8 & 11. 
 
In the ControlLogix MVM all 16-bits of the input module in slot 10 of the 
local rack are being moved through a mask and stored in the destination 
tag. 
 
The mask is “filtering out” everything except the devices wired to IN 
terminals, 0, 1, 3, 5, 12, 13, 14, 15. 
0000 
MVM 
Masked Move 
Source I:1.0 
0< 
Mask 09F0h 
2544< 
Dest N7:0 
0<
ControlLogix Masks 
DINT mask (32-bit) 
INT mask (16-bit) 
SINT mask (8-bit) 
Northampton Community College 31

More Related Content

What's hot

04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16John Todora
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13John Todora
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16John Todora
 
02 copy file_fill_sp16
02 copy file_fill_sp1602 copy file_fill_sp16
02 copy file_fill_sp16John Todora
 
Comparison instructions, AB, Siemens and AB CCW
Comparison instructions, AB, Siemens and AB CCWComparison instructions, AB, Siemens and AB CCW
Comparison instructions, AB, Siemens and AB CCWJohn Todora
 
Math cl ccw_siemens_rev01_fa16
Math cl ccw_siemens_rev01_fa16Math cl ccw_siemens_rev01_fa16
Math cl ccw_siemens_rev01_fa16John Todora
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
system software 16 marks
system software 16 markssystem software 16 marks
system software 16 marksvvcetit
 
06 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa1606 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa16John Todora
 
Microcontroller directives
Microcontroller directivesMicrocontroller directives
Microcontroller directivesManoj Harsule
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programmingKartik Sharma
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directivesSARITHA REDDY
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03desta_gebre
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming pooja saini
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructionscmkandemir
 

What's hot (20)

04 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa1604 chapter03 02_numbers_systems_student_version_fa16
04 chapter03 02_numbers_systems_student_version_fa16
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13
 
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa1608 chapter03 06_status_bits_otl_otu_scan_logic_fa16
08 chapter03 06_status_bits_otl_otu_scan_logic_fa16
 
02 copy file_fill_sp16
02 copy file_fill_sp1602 copy file_fill_sp16
02 copy file_fill_sp16
 
Comparison instructions, AB, Siemens and AB CCW
Comparison instructions, AB, Siemens and AB CCWComparison instructions, AB, Siemens and AB CCW
Comparison instructions, AB, Siemens and AB CCW
 
Math cl ccw_siemens_rev01_fa16
Math cl ccw_siemens_rev01_fa16Math cl ccw_siemens_rev01_fa16
Math cl ccw_siemens_rev01_fa16
 
8085 instruction-set new
8085 instruction-set new8085 instruction-set new
8085 instruction-set new
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
Embedded C - Lecture 2
Embedded C - Lecture 2Embedded C - Lecture 2
Embedded C - Lecture 2
 
system software 16 marks
system software 16 markssystem software 16 marks
system software 16 marks
 
06 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa1606 chapter03 04_control_logix_tags_memory_structure_fa16
06 chapter03 04_control_logix_tags_memory_structure_fa16
 
Microcontroller directives
Microcontroller directivesMicrocontroller directives
Microcontroller directives
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programming
 
8051 data type and directives
8051 data type and directives8051 data type and directives
8051 data type and directives
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 
Chapter 5 programming concepts iv
Chapter 5  programming concepts ivChapter 5  programming concepts iv
Chapter 5 programming concepts iv
 
C programming part2
C programming part2C programming part2
C programming part2
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 

Viewers also liked

Viewers also liked (20)

Allen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC InstructionsAllen Bradley- Micrologix PLC Instructions
Allen Bradley- Micrologix PLC Instructions
 
Slc500cap6
Slc500cap6Slc500cap6
Slc500cap6
 
NB Designer Manual Operation [unlockplc.com]
NB Designer Manual Operation [unlockplc.com]NB Designer Manual Operation [unlockplc.com]
NB Designer Manual Operation [unlockplc.com]
 
Diseño de juegos
Diseño de juegosDiseño de juegos
Diseño de juegos
 
04 scaling analog_datal_sp17
04 scaling analog_datal_sp1704 scaling analog_datal_sp17
04 scaling analog_datal_sp17
 
03 analog control_sp17
03 analog control_sp1703 analog control_sp17
03 analog control_sp17
 
Sap -mise_en_oeuvre
Sap  -mise_en_oeuvreSap  -mise_en_oeuvre
Sap -mise_en_oeuvre
 
Controllogix 5000 Training
Controllogix 5000 TrainingControllogix 5000 Training
Controllogix 5000 Training
 
Arquitectura Integrada
Arquitectura IntegradaArquitectura Integrada
Arquitectura Integrada
 
RSLogix 5000 Report(s)
RSLogix 5000 Report(s)RSLogix 5000 Report(s)
RSLogix 5000 Report(s)
 
Best Practices in PLC Programming
Best Practices in PLC ProgrammingBest Practices in PLC Programming
Best Practices in PLC Programming
 
Examen sap master 2015
Examen sap master 2015Examen sap master 2015
Examen sap master 2015
 
Manejo de avisos y alarmas en HMI
Manejo de avisos y alarmas en HMIManejo de avisos y alarmas en HMI
Manejo de avisos y alarmas en HMI
 
PLC and SCADA
PLC and SCADAPLC and SCADA
PLC and SCADA
 
Cap5. circuitos neumaticos
Cap5. circuitos neumaticosCap5. circuitos neumaticos
Cap5. circuitos neumaticos
 
Programación estructurada Siemens - TIA PORTAL
Programación estructurada Siemens - TIA PORTALProgramación estructurada Siemens - TIA PORTAL
Programación estructurada Siemens - TIA PORTAL
 
Programación SIEMENS S7 200
Programación SIEMENS S7 200Programación SIEMENS S7 200
Programación SIEMENS S7 200
 
Manual manejo TIA PORTAL SIEMENS
Manual manejo TIA PORTAL SIEMENSManual manejo TIA PORTAL SIEMENS
Manual manejo TIA PORTAL SIEMENS
 
Step 7 avanzado
Step 7 avanzadoStep 7 avanzado
Step 7 avanzado
 
INSTALACIÓN NEUMATICA
INSTALACIÓN NEUMATICAINSTALACIÓN NEUMATICA
INSTALACIÓN NEUMATICA
 

Similar to 11 chapter06 slc_int_float_mov_mvm_fa14

05 chapter03 03_memory_structure_slc500_fa16
05 chapter03 03_memory_structure_slc500_fa1605 chapter03 03_memory_structure_slc500_fa16
05 chapter03 03_memory_structure_slc500_fa16John Todora
 
07 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa1407 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa14John Todora
 
Microprocessor Unit 2.PDF
Microprocessor Unit 2.PDFMicroprocessor Unit 2.PDF
Microprocessor Unit 2.PDFPrachi Gawande
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptxSachinKupade
 
C programming for embedded system applications.pptx
C programming for embedded system applications.pptxC programming for embedded system applications.pptx
C programming for embedded system applications.pptxFan Hong
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3Dr.Umadevi V
 
Estimation Techniques V1.0
Estimation Techniques V1.0Estimation Techniques V1.0
Estimation Techniques V1.0Uday K Bhatt
 
Chapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptxChapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptxJanethMedina31
 
IntroductionCPU performance factorsInstruction countDeterm.docx
IntroductionCPU performance factorsInstruction countDeterm.docxIntroductionCPU performance factorsInstruction countDeterm.docx
IntroductionCPU performance factorsInstruction countDeterm.docxnormanibarber20063
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaHari Krishna
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directivesSARITHA REDDY
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxpvg123456
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksDMC, Inc.
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdfHimanshuPant41
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction setStefan Oprea
 

Similar to 11 chapter06 slc_int_float_mov_mvm_fa14 (20)

05 chapter03 03_memory_structure_slc500_fa16
05 chapter03 03_memory_structure_slc500_fa1605 chapter03 03_memory_structure_slc500_fa16
05 chapter03 03_memory_structure_slc500_fa16
 
PLC Training Intro
PLC Training IntroPLC Training Intro
PLC Training Intro
 
07 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa1407 chapter03 05_siemens_tags_memory_structure_fa14
07 chapter03 05_siemens_tags_memory_structure_fa14
 
Microprocessor Unit 2.PDF
Microprocessor Unit 2.PDFMicroprocessor Unit 2.PDF
Microprocessor Unit 2.PDF
 
12 mt06ped008
12 mt06ped008 12 mt06ped008
12 mt06ped008
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptx
 
C programming for embedded system applications.pptx
C programming for embedded system applications.pptxC programming for embedded system applications.pptx
C programming for embedded system applications.pptx
 
MPMC UNIT-2.pdf
MPMC UNIT-2.pdfMPMC UNIT-2.pdf
MPMC UNIT-2.pdf
 
Computer architecture 3
Computer architecture 3Computer architecture 3
Computer architecture 3
 
Estimation Techniques V1.0
Estimation Techniques V1.0Estimation Techniques V1.0
Estimation Techniques V1.0
 
Chapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptxChapter7_InputOutputStorageSystems.pptx
Chapter7_InputOutputStorageSystems.pptx
 
IntroductionCPU performance factorsInstruction countDeterm.docx
IntroductionCPU performance factorsInstruction countDeterm.docxIntroductionCPU performance factorsInstruction countDeterm.docx
IntroductionCPU performance factorsInstruction countDeterm.docx
 
Lsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishnaLsmw by guntupalliharikrishna
Lsmw by guntupalliharikrishna
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
8051 data types and directives
8051 data types and directives8051 data types and directives
8051 data types and directives
 
Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
Top Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and TricksTop Ten Siemens S7 Tips and Tricks
Top Ten Siemens S7 Tips and Tricks
 
Unit 2 Instruction set.pdf
Unit 2 Instruction set.pdfUnit 2 Instruction set.pdf
Unit 2 Instruction set.pdf
 
microprocessor
 microprocessor microprocessor
microprocessor
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 

More from John Todora

01 control logix_arrays_sp17
01 control logix_arrays_sp1701 control logix_arrays_sp17
01 control logix_arrays_sp17John Todora
 
Subroutines rev01 fa16
Subroutines rev01 fa16Subroutines rev01 fa16
Subroutines rev01 fa16John Todora
 
ControlLogix Counters FA16
ControlLogix Counters FA16ControlLogix Counters FA16
ControlLogix Counters FA16John Todora
 
ControlLogix Timers FA16
ControlLogix Timers FA16ControlLogix Timers FA16
ControlLogix Timers FA16John Todora
 
02 chapter02 fa16
02 chapter02 fa1602 chapter02 fa16
02 chapter02 fa16John Todora
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16John Todora
 
07 chapter07 loop_diagrams
07 chapter07 loop_diagrams07 chapter07 loop_diagrams
07 chapter07 loop_diagramsJohn Todora
 
06 chapter06 binary_logic_systems_Rev02
06 chapter06 binary_logic_systems_Rev0206 chapter06 binary_logic_systems_Rev02
06 chapter06 binary_logic_systems_Rev02John Todora
 
04 chapter04 specification_forms
04 chapter04 specification_forms04 chapter04 specification_forms
04 chapter04 specification_formsJohn Todora
 
03 chapter03 lists_indexes_databases
03 chapter03 lists_indexes_databases03 chapter03 lists_indexes_databases
03 chapter03 lists_indexes_databasesJohn Todora
 
02 chapter02 p&ids_and_symbols_split_animations
02 chapter02 p&ids_and_symbols_split_animations02 chapter02 p&ids_and_symbols_split_animations
02 chapter02 p&ids_and_symbols_split_animationsJohn Todora
 
01 chapter01 process_flow_diagram
01 chapter01 process_flow_diagram01 chapter01 process_flow_diagram
01 chapter01 process_flow_diagramJohn Todora
 
EMEC130 P&ID Symbol Primer
EMEC130 P&ID Symbol PrimerEMEC130 P&ID Symbol Primer
EMEC130 P&ID Symbol PrimerJohn Todora
 
Control Systems Basics
Control Systems BasicsControl Systems Basics
Control Systems BasicsJohn Todora
 
01 overview of_industrial_automation_sp15
01 overview of_industrial_automation_sp1501 overview of_industrial_automation_sp15
01 overview of_industrial_automation_sp15John Todora
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15John Todora
 
01 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp1501 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp15John Todora
 

More from John Todora (20)

01 control logix_arrays_sp17
01 control logix_arrays_sp1701 control logix_arrays_sp17
01 control logix_arrays_sp17
 
Lab02 review
Lab02 reviewLab02 review
Lab02 review
 
Subroutines rev01 fa16
Subroutines rev01 fa16Subroutines rev01 fa16
Subroutines rev01 fa16
 
ControlLogix Counters FA16
ControlLogix Counters FA16ControlLogix Counters FA16
ControlLogix Counters FA16
 
Lab02 lead in
Lab02 lead inLab02 lead in
Lab02 lead in
 
ControlLogix Timers FA16
ControlLogix Timers FA16ControlLogix Timers FA16
ControlLogix Timers FA16
 
02 chapter02 fa16
02 chapter02 fa1602 chapter02 fa16
02 chapter02 fa16
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16
 
07 chapter07 loop_diagrams
07 chapter07 loop_diagrams07 chapter07 loop_diagrams
07 chapter07 loop_diagrams
 
06 chapter06 binary_logic_systems_Rev02
06 chapter06 binary_logic_systems_Rev0206 chapter06 binary_logic_systems_Rev02
06 chapter06 binary_logic_systems_Rev02
 
04 chapter04 specification_forms
04 chapter04 specification_forms04 chapter04 specification_forms
04 chapter04 specification_forms
 
03 chapter03 lists_indexes_databases
03 chapter03 lists_indexes_databases03 chapter03 lists_indexes_databases
03 chapter03 lists_indexes_databases
 
02 chapter02 p&ids_and_symbols_split_animations
02 chapter02 p&ids_and_symbols_split_animations02 chapter02 p&ids_and_symbols_split_animations
02 chapter02 p&ids_and_symbols_split_animations
 
01 chapter01 process_flow_diagram
01 chapter01 process_flow_diagram01 chapter01 process_flow_diagram
01 chapter01 process_flow_diagram
 
00 introduction
00 introduction00 introduction
00 introduction
 
EMEC130 P&ID Symbol Primer
EMEC130 P&ID Symbol PrimerEMEC130 P&ID Symbol Primer
EMEC130 P&ID Symbol Primer
 
Control Systems Basics
Control Systems BasicsControl Systems Basics
Control Systems Basics
 
01 overview of_industrial_automation_sp15
01 overview of_industrial_automation_sp1501 overview of_industrial_automation_sp15
01 overview of_industrial_automation_sp15
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15
 
01 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp1501 indirect indexed_addressing_and_arrays_sp15
01 indirect indexed_addressing_and_arrays_sp15
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

11 chapter06 slc_int_float_mov_mvm_fa14

  • 1. SLC500 and LogixPro The Integer File Data File #7 (N7) Supplement to your textbook Northampton Community College 1
  • 2. SLC-500 Default File Types FILE TYPE IDENTIFIER FILE NUMBER Output O 0 Input I 1 Status S 2 Bit B 3 Timer T 4 Counter C 5 Control R 6 Integer N 7 Float Point * F 8 * Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & SLC-5/05 processors Northampton Community College 2
  • 3. SLC-500 User Defined File Types FILE TYPE IDENTIFIER FILE NUMBER Bit B 9 - 255 Timer T 9 - 255 Counter C 9 - 255 Control R 9 - 255 Integer N 9 - 255 Float Point * F 9 - 255 String* St 9 - 255 ASCII * A 9 - 255 File #9 has a special purpose. It is called the “Computer Interface File” (CIF) and is used when communications is required between early AB PLCs Note: LogixPro does not allow user defined files. * Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & SLC-5/05 processors Northampton Community College 3
  • 4. Integer File – Data File #7 Northampton Community College 4  The Integer file is a file of 256, 16-bit words. This file can be used, as needed, for user storage of integer data. The default radix is decimal, but it can be changed to binary, octal, hex/BCD or ASCII.  The ControlLogix equivalent would be a tag of data type INT
  • 5. Addressing the Integer File Northampton Community College 5  Addressing the Integer file uses the same addressing format previously learned.  Following are some examples and their location in the Integer file. (The Bit file can be addressed in the same manner).  N7:0 – Refers to the default integer file, Word 0  N7:3 – Refers to the default integer file, Word 3  N7:2/3 – Refers to the default integer file, Word 2, Bit 3
  • 6. SLC500 Floating Point File Not available in LogixPro Data File #8 (F8) Supplement to your textbook Northampton Community College 6
  • 7. SLC-500 Default File Types FILE TYPE IDENTIFIER FILE NUMBER Output O 0 Input I 1 Status S 2 Bit B 3 Timer T 4 Counter C 5 Control R 6 Integer N 7 Float Point * F 8 * Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & SLC-5/05 processors Northampton Community College 7
  • 8. SLC-500 User Defined File Types FILE TYPE IDENTIFIER FILE NUMBER Bit B 9 - 255 Timer T 9 - 255 Counter C 9 - 255 Control R 9 - 255 Integer N 9 - 255 Float Point * F 9 - 255 String* St 9 - 255 ASCII * A 9 - 255 File #9 has a special purpose. It is called the “Computer Interface File” (CIF) and is used when communications is required between early AB PLCs Note: Floating Point and user defined files are not available in LogixPro * Available in SLC-5/03 OS301, OS302 & SLC-5/04 OS400, OS401 & SLC-5/05 processors Northampton Community College 8
  • 9. Floating Point File – F8 Format Explanation Ff:e F Floating Point file f File number. File number 8 is the default file number (i.e. F8). A user defined file number from 9 to 255 can be used if additional storage is required (e.g. F12 or F25) : Element (word) delimiter e Element (word) number. The element (word) number range is from 0 to 255 with each element (word) using two 16-bit words. As a result they are non-extended 32-bit numbers. Northampton Community College 9  The Floating Point File is used whenever fractional numerical data or numerical data less than -32,768 or greater than 32,767 are needed.  Floating Point data has two parts; an Integer and an Exponent. Each word can store values such as: 23.45987  Floating Point data can only be addressed to word level. An error will occur if a Floating Point address is addressed to bit level.  All arithmetic instruction can be used with Floating Point numbers.  The ControlLogix equivalent would be a tag of data type REAL. Valid address – F8:4 Invalid – F8:5/6 (no bit level)
  • 10. Data Manipulation Chapter 06 Section 6-5-6 Supplement to your textbook. Your textbook does not talk in any great detail about the Move (MOV) and Masked Move (MVM) instructions. Northampton Community College 10
  • 11. Data Manipulation Instructions Northampton Community College 11  Data manipulation instructions enable the programmable controller to manipulate data stored in memory.  This extra characteristic gives the PLC capabilities that go far beyond the conventional relay equivalent instructions.  Data manipulation involves transfer of data and operation on data with math functions, data conversion, data comparison and logical operations.
  • 12. Data Files, Words and Bits Northampton Community College 12  Words of data memory, in singular form, can be referred to either as registers, elements or as words, depending upon the PLC/PAC manufacturer.  The terms table, array or file are generally used when a consecutive group of related data memory words is referenced. A group of consecutive elements or words in the SLC-500 family are referred to as a file, in a ControlLogix controller they are referred to as an array, in Siemens it is called a table or an array.  The data contained in files and words will be in the form of binary bits represented as a series of 1’s and 0’s.
  • 13. Data Files, Words and Bits Northampton Community College 13  This is a pictorial representation of a file File, Array or Table
  • 14. Data Manipulation Instructions Northampton Community College 14  Data manipulation instructions allow the movement, manipulation or storage of data in either single or multiple word groups from one data memory area of the PLC to another.  The use of data manipulation instructions in applications that require the generation and manipulation of large quantities of data generally reduces the complexity and quantity of the programming required.
  • 15. Data Transfer Operations Northampton Community College 15  Data transfer instructions simply involve the transfer of the contents from one word or register to another.  When new data replaces existing data, the process is referred to as writing over the existing data.  Data transfer instructions can address almost any location in memory. That location may be the preset word for a timer or counter or even an output register that controls a seven-segment display or a series of output devices.
  • 16. Data Transfer Concept User defined Integer file N10:7 starts out with no data. After the data transfer occurs, word N10:7 will contain the same data as word N7:14. Data is to be transferred from a word in the default Integer file N7:14 to a word in the user defined Integer file N10:7. Northampton Community College 16
  • 17. Move (MOV) Instruction Northampton Community College 17  Allen-Bradley series controllers use a block formatted Move (MOV) instruction to perform data moves.  The MOV instruction is an output instruction that moves the value stored in one word to another word. It doesn’t actually move the data, it makes a copy of the data from the source to the destination.  The MOV instruction has two parameters:  Source  Destination Source specifies the word containing the data to be moved. Dest specifies the word where the data should be moved. Place holder that will display the value stored in these words when monitoring online.
  • 18. Move (MOV) Instruction Northampton Community College 18  The instruction parameters of a MOV instruction have several rules:  The destination (Dest) must always be a WORD level address or WORD level tag.  The Source can be a WORD level address, a WORD level tag or a program constant.  MOV instructions can be conditional or unconditional. Conditional MOV Unconditional MOV
  • 19. Move (MOV) Instruction Northampton Community College 19  When the rung is true, the value stored at the Source address, N7:56, is Moved (copied) into the Dest address, C5:34.PRE.  When the rung goes false, the Dest address will retain the value unless it is changed somewhere else in the program.
  • 20. Siemens Move (MOVE) Instruction Northampton Community College 20  When the Enable (EN) input becomes true, the data stored in the IN tag is moved to the OUT tag.  The Enable Out (ENO) will be a logic 1 if the EN input is true and the MOVE occurred without error.  MOVE instructions can be conditional or unconditional.
  • 21. Lets Build the Following Circuit Northampton Community College 21  You were assigned the task of implementing a new circuit that can be used to control a pump that is being used to pump sugar syrup or molasses. Because these ingredients have a different viscosity, the pump needs a startup delay of 10-seconds when pumping sugar syrup and 15-seconds when pumping molasses.  Two separate latching N/O selector switches are used to select the correct time-delay. One for selecting the time delay for sugar syrup and one for selecting the time delay for molasses. The user should not be able to start the system if both time-delays are selected at the same time.  Nothing should start unless the Start push button is pressed and everything should stop if the Stop push button is pressed.  Once the Start push button is pressed, if the operator attempts to change the delay time, the setting should not take affect. For the new setting to take affect, the Stop push button must be pressed and the system must than be restarted.  Preload the delay times into the appropriate tags before downloading the program.
  • 22. Lets Build the Following Circuit – I/O Assignment  Field device assignment:  Start Push Button – Wired to IN9 of the input module in slot 03  Stop Push Button – Wired to IN10 of the input module in slot 03  10-Second selector – Wired to IN4 of the input module in slot 03  15-Second selector – Wired to IN6 of the input module in slot 03  Pump motor starter – Wired to OUT7 of the output module in slot 09 Northampton Community College 22
  • 23. Circuit that Changes the Preset of a Counter with a MOV Northampton Community College 23
  • 24. Masked Move (MVM) Instruction (Not in the IEC Standard) Northampton Community College 24  The Masked Move (MVM) instruction is slightly different from the MOV instruction in that a mask word is involved in the MOV.  The data being moved must pass through a mask to get to the Dest address.  In the SLC500, the MVM instruction is used to move (copy) only the desired bits from a 16-bit word from the Source to the Dest by masking the bits that should not be moved.  In the ControlLogix, the MVM instruction is used to move (copy) only the desired bits from a tag of data type SINT, INT or DINT from the Source to the Destination by masking the bits that should not be moved.
  • 25. Masked Move (MVM) Instruction Northampton Community College 25  The MVM instruction has three parameters:  Source  Mask  Dest  The parameters have several rules:  The Source and Dest must be WORD level addresses.  The Mask can be a WORD level address or a program constant, preferably in Hexadecimal. Source must be a WORD level address Mask can be a hexadecimal number or a WORD level address Dest must be a WORD level address These fields display the values stored in the parameter addresses
  • 26. Masked Move (MVM) Instruction Northampton Community College 26  The Mask can be though of as a filter. The data in the Source word will pass through this filter (mask) and the value exiting the filter (mask) will be stored in the Dest word.  Think of the mask as a plate with 16-holes (32-holes if there are 32-bits) and a butterfly valve in each hole; like a choke on an old style carburetor. If the valve is closed, nothing can get through (a zero). If the valve is open, an object can drop through the hole (a one). The valve is open a one (1) and data can pass through The valve is closed a zero (0) Data cannot pass through To the destination Word To the destination Word To the destination Word The mask shown would be: 1110000010000010 or E082h
  • 27. Entering a Constant Mask Value Northampton Community College 27  When entering the mask value as a constant it can be entered as a binary, octal or hexadecimal value. It is usually best to enter a constant as a hexadecimal number.  Entering mask values as constants is done in the following formats:  SLC500  Hexadecimal value: 0FFA3h  Octal value: 2273o  Binary value: 1010001100111100b  ControlLogix  Hexadecimal value: 16#FFA37BC8  Octal value: 8#2273  Binary value: 2#101000110011100
  • 28. Masked Move (MVM) Instruction These statement are not always true depending upon what version of RSLogix 500 is being used Northampton Community College 28  The Mask can be entered as an address or tag, or as a program constant in hexadecimal, binary or octal.  Where there is a ‘1 in the mask, data will pass from the Source to the Dest. Where there is a ‘0’ in the mask, data from the Source will not pass to the Dest. The bit positions in the Dest that are masked will retain whatever state they were in before the MVM occurred. Mask as a hex value: 7AB4h If the hex value starts with a letter, a leading ‘0’ will be added: 0AB74h Mask as an address: B3:16 The value stored in B3:16 = 71CFh
  • 29. Masked Move (MVM) Instruction 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 Destination before the MVM Northampton Community College 29  Mask operation example 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Source 1 1 1 0 0 0 0 0 1 0 0 0 0 1 0 0 Mask 1 0 1 0 1 1 0 0 1 1 0 0 1 0 0 0 Destination after the MVM
  • 30. MVM Example Northampton Community College 30  In the SLC500 MVM all 16-bits of the input module in slot 1 are being moved through a mask and storing the result in N7:0.  The mask is “filtering out” everything except the devices wired to IN terminals, 4, 5, 6, 7, 8 & 11.  In the ControlLogix MVM all 16-bits of the input module in slot 10 of the local rack are being moved through a mask and stored in the destination tag.  The mask is “filtering out” everything except the devices wired to IN terminals, 0, 1, 3, 5, 12, 13, 14, 15. 0000 MVM Masked Move Source I:1.0 0< Mask 09F0h 2544< Dest N7:0 0<
  • 31. ControlLogix Masks DINT mask (32-bit) INT mask (16-bit) SINT mask (8-bit) Northampton Community College 31