Rockwell-automation AutoMax Enhanced Ladder Language Reference Manual Manuale Utente

Navigare online o scaricare Manuale Utente per Apparecchiature Rockwell-automation AutoMax Enhanced Ladder Language Reference Manual. Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 352
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1 - 



Pagina 2

   '-',)++&apos

Pagina 3

,5.2.1 Input Parameters for the Add Instruction%&%&%&!#'&%"$&!%&$'&"!

Pagina 4

*5.2.2 Output Parameters for the Add Instruction$%$%$%!&%"&%$!#% $%#&%!  %'#%)"

Pagina 5

5.2.3 Example of the Add Instructionpasspart1_wtpart2_wt

Pagina 6

( !"!!" #""$"%$ ! !""!!" #"!&qu

Pagina 7

+5.3.1 Input Parameters for the Divide Instruction$%$%$% "&%$!#% $%#&%!  %'#%*"

Pagina 8

)5.3.2 Output Parameters for the Divide Instruction#$#$#$%$ %$#"$#$"%$$&"$( 

Pagina 9

"5.3.3 Example of a Divide Instruction  switch1bulk!

Pagina 10

,5.4.1 Input Parameters for the Modulo Instruction%&%&%&!#'&%"$&!%&$'&"

Pagina 11

(5.4.2 Output Parameters for the Modulo Instruction"#"#"#$# $#"!#"#!$##%!#

Pagina 12

&5.4.3 Example of the Modulo Instruction  $ !!$!#switch1 !"! !"!# ! !!

Pagina 13

9.0 Shift Register Instructions 9Ć1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  ''*

Pagina 14

,5.5.1 Input Parameters for the Multiply Instruction%&%&%&!#'&%"$&!%&$'&&qu

Pagina 15

*5.5.2 Output Parameters for the Multiply Instruction$%$%$%!&%"&%$!#% $%#&%!  %'#%)

Pagina 16

 nextboxes

Pagina 17 -  

-5.6 Multiply Divide (MDV)&'&!&'%('"!'" ('#,'*")%&"%&quo

Pagina 18

-5.6.1 Input Parameters for the Multiply Divide Instruction&'  &'&'"$('&#%'&

Pagina 19

)5.6.2 Output Parameters for the Multiply Divide Instruction#$#$#$ %$!%$# "$#$"%$ $&"

Pagina 20

"5.6.3 Example of a Multiply Divide Instruction  parts.made

Pagina 21

)5.7.1 Input Parameters for the Negate Instruction"#"#"# $#"!#"#!$##%!#(

Pagina 22 - 1.5 Using Transition Contacts

+5.7.2 Output Parameters for the Negate Instruction%&%&%&"'&#'&%"$&!%&$&a

Pagina 23

5.8 Square Root (SQRT)

Pagina 24

 %+.&+)--!%-,%#$-)(+(,%-%)( 1 (*.-+'!-!+,")+-$!%+.&+)-

Pagina 25

5Ć265.8.1 Input Parameters for the Square Root InstructionThis table lists the inputs for the SQRT instruction and the variable type and datatype/rang

Pagina 26

/5.8.2 Output Parameters for the Square Root Instruction !)*""!)*)* %+*&+*)%(* !$)*(+*!%$$* ,(!"*

Pagina 27 - Construct

#5.8.3 Example of the Square Root Instructionswitch1    ! !

Pagina 28 - 1.6 Always True Contact (ATI)

+5.9.1 Input Parameters for the Subtract Instruction$%$%$% "&%$!#% $%#&%!  %'#%*"

Pagina 29

*5.9.2 Output Parameters for the Subtract Instruction$%$%$%!&%"&%$!#% $%#&%!  %'#%)

Pagina 30 - 1.8 Coil (CO)

5.9.3 Example of a Subtract Instructionswitch1order

Pagina 31 - 1.9 Set (Latch) Coil (SCO)

$5.10.1 Errors Caused by All Compute Instructions ""

Pagina 32

'5.10.2 Errors Caused by the Absolute Value Instruction "$&"" ! !"!

Pagina 33

.5.10.4 Errors Caused by the Divide, Modulo, and Multiply DivideInstruction&%%#%&"#(%*",#(%(&"&ap

Pagina 34

(5.10.5 Errors Caused by the Multiply Instruction!  # %'# #!"!" #"  &qu

Pagina 35 -  

 --4&'$/, 5 *,0/-)#/#-.$+-/&

Pagina 36 -  

%5.10.6 Errors Caused by the Negate Instruction!#$!!  !   

Pagina 37 -  

*5.10.7 Errors Caused by the Square Root Instruction#"""#%"')%"%#$#$"%$

Pagina 38 -  

'5.10.8 Errors Caused by the Subtract Instruction!  # %&# #!"!" #"  

Pagina 39 -  

, %"!%&$'&"!%&"#$"$ ""#$&"!%"!!#&ap

Pagina 40 - Using Ladder Logic

&6.1 Logical And (AND)!"!" #""  "&%!"%"%$ 

Pagina 41 -  

6Ć36.1.1 Input Parameters for the Logical AND InstructionThis table lists the inputs for the AND instruction and the variable type and datatype/range

Pagina 42 - 

6.1.3 Example of a Logical AND Instructionswitch1part_1 part_2

Pagina 43 -  

$6.2 Logical Not (NOT)   !   "   "! ! 

Pagina 44 -  

)6.2.1 Input Parameters for the Logical NOT Instruction"#"#"# $#"!#"#!$##%!

Pagina 45 - 3.1.2 Output

6.2.3 Example of a Logical NOT Instructionswitch1part

Pagina 46 -  

12.0 I/O Read and Write Instructions 12Ć1. . . . . . . . . . . . . . . . . . . . . . . . . . . . .  $ # 4

Pagina 47 - 3.2 Timer Off Delay (TOF)

&6.3 Logical Or (OR)!" !" #""  "&%! ""%&qu

Pagina 48 - 3.2.1 Input

6Ć96.3.1 Input Parameters for the Logical OR InstructionThis table lists the inputs for the OR instruction and the variable type and datatype/range th

Pagina 49 - 3.2.2 Output

6.3.3 Example of a Logical OR Instructionswitch1part_1 part_

Pagina 50 -  

'6.4 Logical Exclusive Or (XOR)!"&#!$ !" #""  "'%!&

Pagina 51 - 3.3 Timer On Delay (TON)

6Ć126.4.1 Input Parameters for the Logical Exclusive OR InstructionThis table lists the inputs for the XOR instruction and the variable type and datat

Pagina 52 -  

6.4.3 Example of a Logical Exclusive OR Instructionswitch1

Pagina 53 -  

$6.5 Errors Caused by Logical Instructions ""

Pagina 54 -  

%  !#  !"! !#!!!!$##  

Pagina 55 - 3.4 Timer Pulse (TP)

$7.1 Convert Integer Data to BCD (TO_BCD)  !  "  !   # 

Pagina 56 - 3.4.1 Input

7Ć37.1.1 Input Parameters for the Convert Integer Data to BCD InstructionThis table lists the inputs for the TO_BCD instruction and the variable and t

Pagina 57 - 3.4.2 Output

/(+& .( !)$/ 5  0 3-$/ 5

Pagina 58 -  

7Ć47.1.2 Output Parameters for the Convert Integer Data to BCD InstructionThis table lists the outputs for the TO_BCD instruction and the variable typ

Pagina 59

 7.1.3 Example of a Convert Integer Data To BCD Instructionswitch1part

Pagina 60

$7.2 Convert From BCD to Integer Data (BCD_TO)  !  " #   !  

Pagina 61 -  

7Ć77.2.1 Input Parameters for the Convert From BCD to Integer Data InstructionThis table lists the inputs for the BCD_TO instruction and the data and

Pagina 62 -  

7Ć87.2.2 Output Parameters for the Convert From BCD to Integer Data InstructionThis table lists the outputs for the BCD_TO instruction and the variabl

Pagina 63 - 4.1.1 Input

7.2.3 Example of a Convert From Binary Data to Integer Data Instructionswitch1

Pagina 64 - 4.1.2 Output

(7.3 Errors Caused by the Data Conversion Instructions  !  !  !#  !"! !

Pagina 65

7Ć117.3.2 Errors Caused by the Convert Integer Data To BCD InstructionThese errors can occur when you are using the TO_BCD instruction in a program. T

Pagina 66

7Ć127.3.3 Errors Caused by the Convert From Binary Data to Integer Data InstructionThese errors can occur when you are using the BCD_TO instruction in

Pagina 67 - 4.2.1 Input

+ %& "(!%&$'&"!%&""#*&&)!($%""%$&

Pagina 68 - 4.2.2 Output

,&)$-%"+"2"#&)"!","+/"!!!"+)$.$"+&'", 2

Pagina 69

*Defining a Mask!!$%!!'%%$#! %!&%)$%% %%$ %$%%!##$"! %!%!%! !%%$ %

Pagina 70 -  

)8.1.1 Input Parameters for the Move Source Data to Destination Instruction"#"#"# $#"!#"#!$

Pagina 71 - 4.3.1 Input

(8.1.2 Output Parameters for the Move Source Data to Destination Instruction"#"#"#$# $#"!#"#!

Pagina 72 - 4.3.2 Output

8.1.3 Example of a Move Source Data to Destination Instructionswitch1tolerance

Pagina 73

*8.2 Move Bits Between Integers/Double Integers (MVB)$%!'%$%(  %#$!& %#$ $%#&%! %!!")&&

Pagina 74

8Ć78.2.1 Input Parameters for the Move Bits Between Integers/Double Integers InstructionThis table lists the inputs for the MVB instruction and the va

Pagina 75 - 4.4.1 Input

'8.2.2 Output Parameters for the Move Bits Between Integers/Double Integers Instruction!"!"!"#"#"!

Pagina 76 - 4.4.2 Output

8.2.3 Examples of a Move Bits Between Integers/Double Integers Instructionswitch1pa

Pagina 77

$ ! #!   !  

Pagina 78 -  

8Ć118.3.1 Input Parameters for the Masked Move InstructionThis table lists the inputs for the MVM instruction and the variable type and datatype/range

Pagina 79 - 4.5.1 Input

) "#!("#!$#"#"$###" $#"#!$#""$# $

Pagina 80 - 4.5.2 Output

*8.3.2 Output Parameters for the Masked Move Instruction$%$%$%!&%"&%$!#% $%#&%!  %'#

Pagina 81

 switch1source

Pagina 82 - 4.6 Limit (LIMIT)

(8.4 Errors Caused by Move Instructions  !  !  # !"! ! !  

Pagina 83 - 4.6.1 Input

&8.4.2 Errors Caused by the Move Source Data to Destination Instruction "$%"" ! !&qu

Pagina 84 - 4.6.2 Output

)8.4.3 Errors Caused by the Move Bits Between Integers/Double Integers Instruction#"" " %"'( %"%

Pagina 85

' !""!" !" #"!"!" %" "#

Pagina 86 - 4.7 Mask Compare (MSK)

9Ć2Use this instruction: To:Circular Rotate Bits Right (ROR) Rotate a specified number of the least significantbits into the most significant bit posi

Pagina 87 - 4.7.1 Input

"  !

Pagina 88 - 4.7.2 Output

9Ć49.1.1 Input Parameters for the Shift Left InstructionThis table lists the inputs for the SL instruction and the variable type and datatype/range th

Pagina 89

$9.1.2 Output Parameters for the Shift Left Instruction   !##

Pagina 90 -  

%1.1 Normally Open Contact (NOI)  #"!!

Pagina 91 - 4.8.1 Input

  

Pagina 92 - 4.8.2 Output

"  

Pagina 93

9Ć89.2.1 Input Parameters for the Circular Rotate Bits Left InstructionThis table lists the inputs for the ROL instruction and the variable type and d

Pagina 94

#9.2.2 Output Parameters for the Circular Rotate Bits Left Instruction "

Pagina 95 -  

!  

Pagina 96 - 5.1 Absolute Value (ABS)

! 

Pagina 97 - 5.1.1 Input

9Ć129.3.1 Input Parameters for the Circular Rotate Bits Left on Transition InstructionThis table lists the inputs for the RL instruction and the varia

Pagina 98 - 5.1.2 Output

%9.3.2 Output Parameters for the Circular Rotate Bits Left On Transition Instruction   ! !   !  &qu

Pagina 99 -  

!9.3.3 Example of a Circular Rotate Bits Left On Transition Instruction 

Pagina 100 - 5.2.1 Input

"  !

Pagina 101 - 5.2.2 Output

%1.2 Normally Closed Contact (NCI)  #"!!

Pagina 102

9Ć169.4.1 Input Parameters for the Shift Right InstructionThis table lists the inputs for the SR instruction and the variable type and datatype/range

Pagina 103 -  

%9.4.2 Output Parameters for the Shift Right Instruction   ! !   !  " $  $

Pagina 104 - 5.3.1 Input

  

Pagina 105 - 5.3.2 Output

"  

Pagina 106 - 5.4 Modulo (MOD)

9Ć209.5.1 Input Parameters for the Circular Rotate Bits Right InstructionThis table lists the inputs for the ROR instruction and the variable type and

Pagina 107 - 5.4.1 Input

$9.5.2 Output Parameters for the Circular Rotate Bits Right Instruction   !#

Pagina 108 - 5.4.2 Output

"9.5.3 Example of a Circular Rotate Bits Right Instruction"

Pagina 109 - 5.5 Multiply (MUL)

# ! 

Pagina 110 - 5.5.1 Input

9Ć249.6.1 Input Parameters for the Circular Rotate Bits Right on Transition InstructionThis table lists the inputs for the RR instruction and the vari

Pagina 111 - 5.5.2 Output

$9.6.2 Output Parameters for the Circular Rotate Bits Right On Transition Instruction   !

Pagina 112

E&",##%*(%* &%#&('&(* &%*(%*t )*($("&(&-&('&(* &% 

Pagina 113 - 5.6 Multiply Divide (MDV)

%1.3 Positive Transition Contact (PTI)  #!!

Pagina 114 - 5.6.1 Input

#9.6.3 Example of a Circular Rotate Bits Right On Transition Instructionswitch1 #

Pagina 115 - 5.6.2 Output

9Ć279.7 Errors Caused by Shift Register InstructionsThis section describes the possible errors for all Shift Register instructions and thoseadditional

Pagina 116 - 5.7 Negate (NEG)

%9.7.2 Errors Caused by the Circular Rotate Bits Left, Circular Rotate Bits Lefton Transition, Circular Rotate Bits Right, and Circular Rotate Bits

Pagina 117 - 5.7.1 Input

* "")#$"%$# ""%$#"")&"#$$"#

Pagina 118 - 5.7.2 Output

)$""($#% ""($ $""($#

Pagina 119 - 5.8 Square Root (SQRT)

10Ć3When you are using an array instruction you must specify how many elements tooperate on per

Pagina 120 - 5.8.1 Input

10Ć4The array instructions execute following this sequence of events:D The array instructions execute when the enable bi

Pagina 121 - 5.8.2 Output

10Ć5 Use this instruction to perform one of these opĆerations on a single operand:D calculate the absolute value (ABS

Pagina 122 - 5.9 Subtract (SUB)

10Ć6As long as EN remains true, the instruction completes the operation by operating onthe number of elements specified in Elems/Scan with each progra

Pagina 123 - 5.9.1 Input

$  !! D D

Pagina 124 - 5.9.2 Output

%1.4 Negative Transition Contact (NTI)  #!!

Pagina 125

3  '"-#.-'- +-# '.& +(! % & '-,-(,-(+ $'.-!

Pagina 126

10Ć910.1.2 Output Parameters for the Unary Array InstructionThis table lists the outputs for the AR1 instruction and the variable type and datatype/ra

Pagina 127

# !  " ! 

Pagina 128 - Instruction

 switch1

Pagina 129

) #$##$"%$ $ !" "  $# !)"$ #D   $$D 

Pagina 130

,!!!!!$$+($"$% #($"!%&!&"'!#&$%'&!%

Pagina 131

*10.1.4 Input Parameters for the MultiĆArray Instruction#$#$#$!%$# "$#$"%$ $&"$)

Pagina 132

$   D D #D

Pagina 133 -  

)  #!##"%!!"####"#!#D

Pagina 134 - 6.1 Logical And (AND)

0 '(*"&% %*(*!$%$&%"&*!&'(*"&%/&

Pagina 135

1Ć61.5 Using Transition ContactsThis section explains the methods for using transition contacts PTI and NTI and howthe transitions will be interpreted

Pagina 136

10Ć1810.2.2 Output Parameters for the MultiĆArray InstructionThis table lists the outputs for the AR2 instruction and the variable type and datatype/r

Pagina 137 - 6.2 Logical Not (NOT)

  switch_1

Pagina 138

" "D D D D

Pagina 139

)#!"#"!"##!$#"#!$# ! !"#!!($##$#"  !#(

Pagina 140 - 6.3 Logical Or (OR)

)10.3.1 Input Parameters for the Array Compare Instruction"#"#"# $#"!#"#!$##%!

Pagina 141

%  !D D $D

Pagina 142 - result

&     "      D  

Pagina 143

(  "$ $"$$ "$'%&$$ "(&qu

Pagina 144

10Ć2610.3.2 Output Parameters for the Array Compare InstructionThis table lists the outputs for the ARC instruction and the variable type and datatype

Pagina 145

% switch1    

Pagina 146

1.5.2 Using a Variable on a Coil and on a Transition Contact

Pagina 147

& !"!!" #""!""! % """"

Pagina 148 -  

10Ć2910.4.1 Input Parameters for the Array Shift Up InstructionThis table lists the inputs for the ASU instruction and the variable type and datatype/

Pagina 149 - 7.1.1 Input

)10.4.2 Output Parameters for the Array Shift Up Instruction#$#$#$ %$!%$# "$#$"%$ $&"

Pagina 150 - 7.1.2 Output

10.4.3 Example of an Array Shift Up Instructionswitch1batch

Pagina 151 - result

' !"!!" #""!""! & ""&quo

Pagina 152

10Ć3310.5.1 Input Parameters for the Array Shift Down InstructionThis table lists the inputs for the ASD instruction and the variable type and datatyp

Pagina 153 - 7.2.1 Input

10Ć3410.5.2 Output Parameters for the Array Shift Down InstructionThis table lists the outputs for the ASD instruction and the variable type and datat

Pagina 154 - 7.2.2 Output

10.5.3 Example of an Array Shift Down Instructionswitch1batch

Pagina 155

'10.6 About the State of the Unary Array, MultiĆArray, andArray Compare Instruction Outputs under VariousInput Conditions$ $ 

Pagina 156

)  ""#"!"# ""!!!"!#!!("#!$

Pagina 157

1.5.3 Using a Variable on More Than One Coil and On a TransitionContact

Pagina 158

10Ć38These errors can occur when you are using the AR1 instruction in a program.The result of the arithmetic cal

Pagina 159 -  

10Ć3910.7.2 Errors Caused by the MultiĆArray InstructionErrors can occur when parameters are latched and checked. If an error occurs at thispoint, no

Pagina 160

)D $#"!"   '!D $#"!&quo

Pagina 161 - 8.1.1 Input

10Ć4110.7.3 Errors Caused by the Array Compare InstructionErrors only occur when parameters are latched and checked. If an error occurs at thispoint,

Pagina 162 - 8.1.2 Output

(10.7.4 Errors Caused by the Array Shift Up and Array Shift Down Instructions  "$&"" !

Pagina 163

+ ! !"! $%# # %# $%#&% $% %$"& # )&%  $

Pagina 164

$!!CAUTION: Avoid jumping backwards an excessive number of times since thiscan cause a STOP ALL error code 14,

Pagina 165 - 8.2.1 Input

(   "!#"!" #"!" #"

Pagina 166 - 8.2.2 Output

 

Pagina 167

' !"#!" #""!  " #!&#"" #"

Pagina 168 -  

1.5.4 Forcing or Setting Variables Used on Transition Contacts

Pagina 169 - 8.3.1 Input

  switch1

Pagina 170 - 8.3.2 Output

 

Pagina 172

" 

Pagina 173

12Ć2 Use the I/O Read instruction to get information from I/O modules. This instruction isuseful for reading data from:D nonĆRelianc

Pagina 174

12Ć3 This table lists the inputs for the I/O Read instruction and the variable type and the datatyp

Pagina 175

12Ć4 Address Enter the address of the location that contains the datayou want to read. Use this input

Pagina 176

12Ć5 This table lists the outputs for the I/O Read instruction and the variable type and datatype/

Pagina 177 -  

12Ć6  byte 1 data's loc

Pagina 178 - 9.1.1 Input

12Ć7 When switch1 is true, the instruction reads oneword of data from register 300 of the I/Omodule in slot 4

Pagina 179 - 9.1.2 Output

%1.5.5 Using a Variable on a Set (SCO) Coil and Reset Coil (RCO) Pairand on a Transition Contact$  !

Pagina 180

12Ć8 Use the I/O Write instruction to send information to I/O modules. This instruction isparticularly useful for writing data to:D

Pagina 181

12Ć9 This table lists the inputs for the IOW instruction and the variable type and datatype/range

Pagina 182 - 9.2.1 Input

12Ć10 Address Enter the address of the location where you want to writedata. If you enter an address,

Pagina 183 - 9.2.2 Output

12Ć11 byte 1 data's

Pagina 184

12Ć12 When switch1 becomes true, the instructionwrites one word of data from the variable pumpto register 300

Pagina 185

12.3 Listing of Base Addresses for Each Supported Slot in the AutoMax ChassisSlot Hex Address Range Slot Hex Address Range 

Pagina 186 - 9.3.1 Input

12Ć1412.4 Errors Caused by the I/O Read and I/O Write InstructionsThis section describes the possible errors for I/O read and I/O write instructions.I

Pagina 187 - 9.3.2 Output

!  

Pagina 188

13Ć2 Use the Immediate Input instruction to update the program's latched valuecorresponding to a global variable with tha

Pagina 189 -  

&13.1.1 Input Parameters for the Immediate Input Instruction   !   !  " %

Pagina 190 - 9.4.1 Input

1.5.6 Using Transition Contacts in a Program with a Jump and LabelConstruct

Pagina 191 - 9.4.2 Output

'13.1.2 Output Parameters for the Immediate Input Instruction ! ! !"!"!! !"!!#

Pagina 192

13Ć513.2 Immediate Output (OUT)Use the Immediate Output instruction when you need to update a global variable'sphysical location prior to the end

Pagina 193

$13.2.2 Output Parameters for the Immediate Output Instruction   !##

Pagina 194 - 9.5.1 Input

0""%&')%$(&'%'#$*)%-&'%'#(*((.#%"$#(+&ap

Pagina 195 - 9.5.2 Output

)!""%#" ! !#"D !""#!#!####( #(!"

Pagina 196

-A.1 Data Types&&'#"&%&## ""'%#( "'%'!%"#(&

Pagina 197

0 !()"&'($)()%*)) $*#'%!)(%'(%#%$!*')!%$(A rack with:Contains a maximum of:%$

Pagina 198 - 9.6.1 Input

&! ! " ##% "  % 

Pagina 199 - 9.6.2 Output

'A.1.3 Timer Variables "  ! !  '  %This element:Is a:

Pagina 200

,To reference any element of a timer variable in a ladder logic programD &&""!'#''!%)% "

Pagina 201

"1.6 Always True Contact (ATI)!! !

Pagina 202

%A.1.4 Counter Variables !  %#This element:Is a:   

Pagina 203 -  

2To reference any element within a counter variable in a ladder logic programD ++$"''& ,(,# (-', *.*$% '

Pagina 204

AĆ10A.2 Accessing Data Within Variables Via BitĆIndexing andElementĆIndexingFor the ladder instruction parameters, you can specify bits within integer

Pagina 205

AĆ11Element and bit variable names can each be a maximum of 16 characters (AćZ, 0ć9,and _), not including the delimiter (. or [ ]). Valid ranges for c

Pagina 206

(A.3.2 Global Variables%!"!!'!#!! !!"!"%!&

Pagina 207

,A.4 Arrays##*$ #"#!#$ '! *!  $!  %(%  ##*$  %This type of array:Can have

Pagina 208 -  

1+( $++!"&*+),+"'&+!+,*

Pagina 209

AĆ15A.5 ConstantsUse constants to specify:D unchanging values within ladder instruction input parametersD an element of an array (array[2])D a bit wit

Pagina 210

0%*$%%('%#)%""%, $ $ ) " /) %$#)%(%'+' "'%# )(' "'

Pagina 211 - 10.1.2 Output

Variable TypeLadder Program ConditionNonĆvolatileglobalVolatile global Local

Pagina 212

"1.7 Always False Contact (AFI)!! 

Pagina 213

0A.6.2 About the User Specified Initialization Method$+' " (%$ *')%*(('&  +"*)

Pagina 214

*A.6.4 About Initializing Timer and Counter Variables$##)#!#!$#! !"#%!"&

Pagina 215

AĆ20A.6.6 Defining the Type of Initialization To Use for a VariableYou can define how a variable is initialized when a program is downloaded to thePro

Pagina 216 - 10.1.4 Input

,A.6.7 Defining the Initial Value of a Variable!&  %'&%%'#! % $( "#!#$!( !

Pagina 217

1*' )* &##&-!%*#*&*($!%/&+(%.*)*'%&*%#$%*&

Pagina 218

*'""$#$ #!! #"("# "!!!

Pagina 220 - 10.2.2 Output

2((!& #,*#&"#%!))#$!*#&)'")%*(-'-+ ,$& * % & ',+$')*("*&

Pagina 221

6(0'(+ -.,&. *5,1* 53 +00,D #$0$.*(+$(% 0(*$.' /$4-(.$#D "' +&$ 0(*$./-.$/$0

Pagina 222 -  

6((!& #-*#&"',&+!))#$!*#&)'")%*,1" +1/$",1+0$.$)$*$+0/(+-.,&. */

Pagina 223

   +-)((4,#*+*/!/ 5

Pagina 224 - 10.3.1 Input

!1.8 Coil (CO)

Pagina 225

3$-#$')+("+&2(.&20'--(D #'" (.'- +,)+ , -D ., -# .++ '- % & '-(!

Pagina 226

0D + ,# !-',$(',(, +,,# 

Pagina 228 - 10.3.2 Output

##"

Pagina 229

DĆ2D.1 Using the PreĆDefined Program Scan VariablesUse the following Boolean variables to execute logic based on the Processor's scan.Only use th

Pagina 230 -  

DĆ3 Use the following Boolean variables to help you handle error conditions. Use error_enoand no_erro

Pagina 231 - 10.4.1 Input

DĆ4 Use the following double integer parameters to help you check and monitor theprogram'

Pagina 232 - 10.4.2 Output

## D 

Pagina 233

EĆ2E.1 Error Codes 3001Ć3010Error Code: Text Description: How To Correct the Error:3001 Cannot divide by zero Define the divisor of the DIV, MDV, orMO

Pagina 234 -  

EĆ3Error Code:Text Description: How To Correct the Error:3008 The number of bits to rotate isnegativeFor the rotate instructions, make surethat N is w

Pagina 235 - 10.5.1 Input

'1.9 Set (Latch) Coil (SCO) ! "!"! !"!! !!#$!"!! !&qu

Pagina 236 - 10.5.2 Output

EĆ4E.3 Error Codes 3021Ć3030Error Code: Text Description: How to Correct the Error:3021 The value in Length1 is too largefor array block's In1Mak

Pagina 237

EĆ5Error Code:Text Description: How to Correct the Error:3029 An illegal register of an IOR orIOW instruction is selectedCorrect the slot and register

Pagina 239

1"! "!"! #! "&$**'+!)."*

Pagina 240

2µµ      *'"

Pagina 241

&µµ       "

Pagina 242

FĆ4µµ      ComputeABSAbsolute

Pagina 243

6µµ      -')$"+

Pagina 244

FĆ6µµ      Array(Continued)AR

Pagina 245 - 

FĆ7µµ      Array(Continued)AR

Pagina 246 - 11.1 Set Event (SET)

(1.10 Reset (Unlatch) Coil (RCO)!"!#"#"!" #"" !"$ "%&qu

Pagina 247 - 

2µµ      ++0)(-%(.! 

Pagina 248

FĆ9µµ      Shift(C i d)SRShif

Pagina 249 -  

FĆ10µµ      I/OIORInput Read

Pagina 250

*µµ      $#$!#"&

Pagina 252

0! ! ! " !%#))&* (-!)%&*!%* *#&

Pagina 253

2µ   *'" ,*,(! * ,/(*$   

Pagina 254 -  

#µ    #"!"     

Pagina 255 -  

GĆ4µ   ComputeABS Absolute Value 4.7 1.6 17Co p eADD2 2ĆInput A

Pagina 256

8µ   .(*%#, -&   .( %# .2    

Pagina 257 -  

"1.11 Errors Caused by the Relay Instructions!!!

Pagina 258

2µ   )$&! ')(-&(.#")(-&(.#&quo

Pagina 259

GĆ7µ   Logical(C i d)AR2(AR2 operation) ĆĆog ca(Continued)AND,O

Pagina 260 -  

(µ   % %%   "" !##&a

Pagina 261 -  

GĆ9µ   ControlSET Set Event ĆĆ 2.4 11Co oJMP Jump 1.9 1.2 9LBL

Pagina 262 -  

)µ   #"#   #  %!!"%#

Pagina 263

2 ())*(.,"#,&,('('%#')*(!*&-'!+,",".'

Pagina 264

1 )''#!*&* )&#,(!#)(!'*!&%)&$$%#&#,(!#!%#('(&($*

Pagina 265

&$&"  !$$

Pagina 267 - 

(!"03A).--$"--")#-$"(+1++1.&-%3++1(!++1)'*+"(,-+. -%)(.-*.-,(!"++%).,(*

Pagina 269 - 13.1.1 Input

*"#24B,-+%-).444'/4'*"#2'*%4++(#*4C&*%'*%-#.#/ 3.'*%"&

Pagina 270 - 13.1.2 Output

2)*;>3827*5#&5.&'0*6>2.7.&0.=&7.32>"6.2,.2 453,5&16>3827"43:226758(7.32

Pagina 271 - 13.2 Immediate Output (OUT)

/)*78 8#88#888888!8!8!88!8888

Pagina 272 - 13.2.2 Output

/'(9;;;;;;;; ;;;;;;;;;

Pagina 273 - 

(!"03)/%'"+(,-+. -%)(,*"+-"3I''"!%-"(*.-(!.-*.-(,-+. -%)(,3''&quo

Pagina 274

( !13L!&(-.,/.%)(!"%(! 3,,),-31'*&!333! %(#2!,)-3!--$((-.,/.%)(!&qu

Pagina 275 - A.1 Data Types

*"#355M.'+),-#*./-0!/&+*#$&*#"5--+-.53),(#5*,0/.50/,0/.5.'+1#

Pagina 276 - A.1.2 Integer

)!"2555N55"$/")./-0 /&*)"#&)"!5--*-.552(+'"

Pagina 277

( !14Q+/).%!(.44R4!&2(-.,/.%)(-4!-!.(&.$)%&!"%(! 4,,),-41'*&!4

Pagina 278 - A.1.3 Timer Variables

-%&5888804"1&..3-2314$3).-&')-&%811.12885",/+&8-/432

Pagina 279 - MPORTANT:

/ '#)"(&"'(&)(#"(##)"((*(''(-#)& $

Pagina 280 - A.1.4 Counter Variables

&'"!"###"'!!%#$ "#!$#'V!"&apos

Pagina 282 - ElementĆIndexing

For additional information1 Allen-Bradley DriveMayfield Heights, Ohio 44124 USATel: (800) 241-2886 or (440) 646-3599http://www.reliance.com/automaxPub

Pagina 283 - A.3.1 Local Variables

%     D  !

Pagina 284 - A.3.2 Global Variables

. %&%&%& "'&%!$& %&$'&

Pagina 285 - A.4 Arrays

0   # $*(* $#%* %+$*(,(!".%+-$**%+)%(* !)!$)*(+*!%$*)*(+*+(

Pagina 286

$ "counter1  switch1switch2

Pagina 287 - A.5 Constants

 "&!#&!+")*+$,' ',&+)&*+),+#'&/*#&!)'!# 0

Pagina 288

12.3 Changing the Preset Value of a Counter Instruction byUsing Ladder Logic&,%!% +!')*+-#,&&,%+)"%*+)

Pagina 289

3 , -# $' +$(,-+.-$)(-) (& ($,& -$/$-$ ,-*+ 3 !$( -$' ,)+ 1'*& , -

Pagina 290 - A.6.3 About the Retained V

2D !&"&+*,"& ,"%*"&+,*-,"'&+"&,&apo

Pagina 291

%   !   "    " !   "!

Pagina 292

4 $%,-&!&%,-,-$!%(*.-,")+-$!%(,-+.-%)(( -$!/+%&!-2*!(  --2

Pagina 293

13.1.2 Output Parameters for the RTO Instruction!"*+##"*+*+!&,+',+*&)+!"%*+),+"&%%+!-

Pagina 294

 

Pagina 295

%3.1.4 Example of an RTO Instruction#  switch1 !switch2    #

Pagina 296

43.2.1 Input Parameters for the TOF Instruction$%,-&!&%,-,-$!%(*.-,")+-$!%(,-+.-%)(( -$!/+%&!-1*!(  --1

Pagina 297 - ((!& #,

23.2.2 Output Parameters for the TOF Instruction!"*+##"*+*+!&,+',+*&)+!"%*+),+"&%%+!-

Pagina 298

   !%'

Pagina 299 - ((!& #-

 

Pagina 300

$3.2.4 Example of a TOF Instruction"switch1timer2!

Pagina 301

3 #$+,% %$+,+,# $')-,+!(*,# $'+,*-,$('',# .*$% ,0) &apos

Pagina 302

0  ()!! ()()$*)%*)($') #()'*) $##)+' !).%#))

Pagina 303 - 

 

Pagina 304

$3.3.4 Example of a TON Instruction#  belt.5 !timer2  " 

Pagina 305

33.4.1 Input Parameters for the TP Instruction"#+,$$#+,+,"#&(-,+ '*,"#&+,*-,#'&&,&quo

Pagina 306 - 

03.4.2 Output Parameters for the TP Instruction ()!! ()()$*)%*)($') #()'*) $##)+' !).%#)).%

Pagina 307 - 

 

Pagina 308 - E.1 Error Codes 3001Ć3010

%3.4.4 Example of a TP Instruction"timer1"switch1 !tank_fill"

Pagina 309 - E.2 Error Codes 3011Ć3020

 $'$.2 (*/.,'!.!,-&quo

Pagina 310 - E.3 Error Codes 3021Ć3030

/)& "%+%*'))%()!$)!%$!$()'*)!%$!$) "

Pagina 311 - E.4 Error Codes 3031Ć3035

/ ()$"%'#()'*)$#()$$"%'),$$')'#)'$'$*!#)&

Pagina 312

  

Pagina 313 - "

+4.1.1 Input Parameters for the Equal To Instruction$%$%$% "&%$!#% $%#&%!  %'#%*"

Pagina 314 - 

%4.1.2 Output Parameters for the Equal To Instruction ! ! !"!"! ! !"!" ! "!

Pagina 315

4.1.3 Example of an Equal To Instructionswitch1bottle_count

Pagina 316

"4.2 Greater Than Or Equal To (GE)!! 

Pagina 317

,4.2.1 Input Parameters for the Greater Than Or Equal To Instruction%&%&%&!#'&%"$&!%&$&a

Pagina 318

'4.2.2 Output Parameters for the Greater Than Or Equal To Instruction"#"#"#$#$#"!#"#!$#

Pagina 319

 4.2.3 Example of a Greater Than Or Equal To Instructionquality

Pagina 320

 &1&!"4 )+0/-("/&qu

Pagina 321

  

Pagina 322

+4.3.1 Input Parameters for the Greater Than Instruction$%$%$% "&%$!#% $%#&%!  %'#%*&qu

Pagina 323

%4.3.2 Output Parameters for the Greater Than Instruction ! ! !"!"! ! !"!" ! &qu

Pagina 324

4.3.3 Example of a Greater Than Instructionswitch1level[15]

Pagina 325 - !

4.4 Less Than Or Equal To (LE)

Pagina 326 - 

,4.4.1 Input Parameters for the Less Than Or Equal To Instruction%&%&%&!#'&%"$&!%&$&apo

Pagina 327

'4.4.2 Output Parameters for the Less Than Or Equal To Instruction"#"#"#$#$#"!#"#!$#

Pagina 328

 switch1part[depth]

Pagina 329

  

Pagina 330

,4.5.1 Input Parameters for the Less Than Instruction%&%&%&!#'&%"$&!%&$'&&qu

Pagina 331

 ,,),-/-! 2.$!)'*/.!(-.,/.%)(- 3 ,,),-/-! 2&&)'*/.!(-.,/.%

Pagina 332

&4.5.2 Output Parameters for the Less Than Instruction!"!"!"#"#"! "!" #"

Pagina 333

4.5.3 Example of a Less Than Instructionswitch1 level[15]

Pagina 334

 4.6 Limit (LIMIT)

Pagina 335 - 

*4.6.1 Input Parameters for the Limit Instruction#$#$#$!%$# "$#$"%$ $&"$)!

Pagina 336

*4.6.2 Output Parameters for the Limit Instruction#$#$#$ %$!%$# "$#$"%$ $&"$)!

Pagina 337

4.6.3 Example of a Limit Instructionswitch1part_id[20

Pagina 338

(4.7 Mask Compare (MSK)!"!!" #""&"(!""%$ !"$"

Pagina 339

4Ć274.7.1 Input Parameters for the Mask Compare InstructionThis table lists the inputs for the MSK instruction and the variable type and datatype/rang

Pagina 340

)4.7.2 Output Parameters for the Mask Compare Instruction$%$%$% &%!&%$ #%$%#&%  &$%$ &%

Pagina 341

 4.7.3 Example of a Mask Compare Instructionmeasuretolerance

Pagina 342

 )#%&0&.,%/!+ 2 (*.-+'!-!+,")+-$!

Pagina 343

!    

Pagina 344

*4.8.1 Input Parameters for the Not Equal To Instruction#$#$#$!%$# "$#$"%$ $&"$)!

Pagina 345

&4.8.2 Output Parameters for the Not Equal To Instruction ! ! !"!"! ! !"!" ! 

Pagina 346

!4.8.3 Example of a Not Equal To Instruction  switch1bottle_count 

Pagina 347

)4.9.1 Errors Caused by All Compare Instructions!  !# %'# #!" !" #"!  

Pagina 348

2 +'%(-,#&+,*-,#'&+,'(* '*%%,"'(*,#'&+"''+ *

Pagina 349

5.1 Absolute Value (ABS)

Pagina 350

)5.1.1 Input Parameters for the Absolute Value Instruction"#"#"# $#"!#"#!$##%!

Pagina 351

/5.1.2 Output Parameters for the Absolute Value Instruction!")*##")*)*!&+*'+*)&(*!"%)*(+*"&%

Pagina 352 - 1 Allen-Bradley Drive

  

Commenti su questo manuale

Nessun commento