Professional Documents
Culture Documents
6 - 15 7
Integer Files Control File Counter File Timer File Bit File Status File Input File Output File
STI File HSC File Error File Main Program Reserved System
PROGRAM FILES
DATA FILES
Subroutine Files
Integer Files Control File Counter File Timer File Bit File Status File Input File Output File
DATA FILES
DATA
Octal 0-7 BCD 0-9 HEX 0-F (15) Integer (signed) -32768 to +32767 Unsigned Integer 65,535 (32767 + 32767) Floating Point
IEEE +/- 3.45x1038 to +/1.17x10-38
Data Structure
15 14 13 12 11 10 9 8 11 10 9 8 7 6 5 4 7 6 5 4 3 2 1 0 3 2 1 0
BCD Data :
HEX Data :
7 6 5 4
3 2 1 0
ASCII TABLE
ASC HEX DEC II NUL 00 0 SOH 01 1 STX 02 2 ETX 03 3 EOT 04 4 ENQ 05 5 ACK 06 6 BEL 07 7 BS 08 8 HT 09 9 LF 0A 10 VT 0B 11 FF 0C 12 CR 0D 13 SO 0E 14 SI 0F 15 DLE 10 16 DC1 11 17 DC2 12 18 DC3 13 19 DC4 14 20 NAK 15 21 SYN 16 22 ETB 17 23 CAN 18 24 EM 19 25 ASC HEX DEC II SUB 1A 26 ESC 1B 27 FS 1C 28 GS 1D 29 RS 1E 30 US 1F 31 SP 20 32 ! 21 33 22 34 # 23 35 $ 24 36 % 25 37 & 26 38 27 39 ( 28 40 ) 29 41 * 2A 42 + 2B 43 2C 44 2D 45 . 2E 46 / 2F 47 0 30 48 1 31 49 2 32 50 3 33 51 ASC HEX DEC II 4 34 53 5 35 54 6 36 55 7 37 56 8 38 57 9 39 58 : 3A 59 ; 3B 60 < 3C 61 = 3D 62 > 3E 63 ? 3F 64 @ 40 65 A 41 66 B 42 67 C 43 68 D 44 69 E 45 70 a b c ~ DEL 61 62 63 7E 7F 97 98 99 126 127
O0:0/0
File Number
Word 0
11
000000000000
File #1
1 Inputs
File contains
File Type
I1:0/0
File Number
Word 1
15
Word 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 19 16
10 or 20 Inputs
Status File
File #2
General purpose file that consists of 32 registers (words). These registers are mixed in word and bit formats depending on the function they represent. The Status file is primarily used for:
Setting system operating features, Displaying system status and faults
Bit File
File #3 (32 registers or words)
15 14 13 12 15 14 13 12 11 10 9 8 11 10 9 8 7 6 5 4 7 6 5 4 3 2 1 0 3 2 1 0
Word 0:
B3:1/0 (RSLogix,APS)
OR
Word 1:
Word 2:
B/16 (HHP)
Word 31:
Timers
Timer Operation
The timer times as long as its rung is TRUE. When the timer times up to a specified value, it alerts the rest of the program by setting a bit. When the rung becomes FALSE, the timer stops timing and resets itself to zero.
I:0.0
||
Timers
File #4
40 Timers (MicroLogix 1000 only) TON, TOF, and RTO
Timer On Delay Timer Off Delay Retentive Timer On
Timers
File Number
T4:0
Timers
File Type
Timers
File Number
T4:0
15 14 13 Word 0 EN TT DN Word 1 Word 2
How long the timer should time for. How long the timer has timed for already. Set to 1 when accumulated value > preset value. Set to 1 when accumulated value < preset value. Set to 1 when the rung containing the timer is true.
Timers
The Timers done bit turns the motor off after a 10 second time delay
Stop Start Timer Done
Motor
I:0/1
I:0/0
T4:0/DN
O:0/3
]/ [
][
O:0/3
M1
]/[
( )
][
O:0/3
M1
TON
TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0
][
(EN) (DN)
Counters
Counter Operation
The counter counts (by one) every time its rung goes from FALSE to TRUE. When a specified number of counts has been reached, the counter alerts the rest of the program by setting a bit. The program must reset the counter to start counting from zero again.
I:0.0
||
Counters
File #5
32 Counters (MicroLogix 1000 only) Up, Down, Up/Down
File Type
Counters
C5:0
File Number
File contains
32 counters
Counters
File Type
Counters
C5:0
File Number C5:0.PRE C5:0.ACC
Word 0 CU CD DN OV UN
Word 1 Word 2
How many the counter should count up to How many the counter has counted already.
Done
Count Up Count Down Over/Underflow
C5:0/DN
C5:0/CU C5:0/CD
Counters
The Counters done bit stops the motor from running, after 10 operations.
Stop
Start
Counter Done
Motor
I:0/1
I:0/0
C5:0/DN
O:0/3
]/[
][
O:0/3
M1
]/[
( )
][
O:0/3
M1
CTU
Count Up Counter Preset Accum C5:0 10 0
][
(CU) (DN)
C5:0
Reset
I:0/4
][
(RES)
Control
File #6
Used for higher level application specific commands.
FIFO/LIFO Stacks Sequencers Bit Shifts etc..
Required to allow the PLC to manage/control the application instruction. 16 Registers (words) in MicroLogix 1000
Control
File Type
Control
File Number
R6:0
Word 0 Word 1 Word 2
EN EU DN EM ER UL IN FD
Error Code
Length of control file Position in control file Set to 1 when state of Control rung are true.
Unload Enable
Done Stack Empty Error Unload Inhibit Found
R6:0/EU
R6:0/DN R6:0/EM R6:0/ER R6:0/UL R6:0/IN R6:0/FD
Integer
File #7
General purpose data registers (words) Primarily used for:
Comparison instructions Math instructions Sequencers FIFO and LIFO stacks