Mitsubishi Electronics FX1S manual Rotation And Shift Functions 30 to

Page 12

5.3.9

WXOR (FNC 28)

5-31

5.3.10 NEG (FNC 29)

5-31

5.4 Rotation And Shift - Functions 30 to 39

5-34

5.4.1

ROR (FNC 30)

5-35

5.4.2

ROL (FNC 31)

5-35

5.4.3

RCR (FNC 32)

5-36

5.4.4

RCL (FNC 33)

5-36

5.4.5

SFTR (FNC 34)

5-37

5.4.6

SFTL (FNC 35)

5-37

5.4.7

WSFR (FNC 36)

5-38

5.4.8

WSFL (FNC 37)

5-38

5.4.9

SFWR (FNC 38)

5-39

5.4.10 SFRD (FNC 39)

5-40

5.5 Data Operation - Functions 40 to 49

5-42

5.5.1

ZRST (FNC 40)

5-43

5.5.2

DECO (FNC 41)

5-43

5.5.3

ENCO (FNC 42)

5-44

5.5.4

SUM (FNC 43)

5-45

5.5.5

BON (FNC 44)

5-45

5.5.6

MEAN (FNC 45)

5-46

5.5.7

ANS (FNC 46)

5-47

5.5.8

ANR (FNC 47)

5-47

5.5.9

SQR (FNC 48)

5-48

5.5.10 FLT (FNC 49)

5-49

5.6 High Speed Processing - Functions 50 to 59

5-52

5.6.1

REF (FNC 50)

5-53

5.6.2

REFF (FNC 51)

5-53

5.6.3

MTR (FNC 52)

5-54

5.6.4

HSCS (FNC 53)

5-55

5.6.5

HSCR (FNC 54)

5-56

5.6.6

HSZ (FNC 55)

5-57

5.6.7

SPD (FNC 56)

5-60

5.6.8

PLSY (FNC 57)

5-61

5.6.9

PWM (FNC 58)

5-62

5.6.10 PLSR (FNC 59)

5-63

5.7 Handy Instructions - Functions 60 to 69

5-66

5.7.1

IST (FNC 60)

5-67

5.7.2

SER (FNC 61)

5-69

5.7.3

ABSD (FNC 62)

5-70

5.7.4

INCD (FNC 63)

5-71

5.7.5

TTMR (FNC 64)

5-72

5.7.6

STMR (FNC 65)

5-72

5.7.7

ALT (FNC 66)

5-73

5.7.8

RAMP (FNC 67)

5-73

5.7.9

ROTC (FNC 68)

5-75

5.7.10 SORT (FNC 69)

5-77

5.8 External FX I/O Devices - Functions 70 to 79

5-80

5.8.1

TKY (FNC 70)

5-81

5.8.2

HKY (FNC 71)

5-82

5.8.3

DSW (FNC 72)

5-83

5.8.4

SEGD (FNC 73)

5-84

5.8.5

SEGL (FNC 74)

5-85

5.8.6

ARWS (FNC 75)

5-87

5.8.7

ASC (FNC 76)

5-88

5.8.8

PR (FNC 77)

5-89

5.8.9

FROM (FNC 78)

5-90

5.8.10

TO (FNC 79)

5-91

iv

Image 12
Contents Programming Manual Page FX Series Programmable Controllers ForewordFX Series Programmable Controllers FAX Back Combined Programming Manual J FX Series Programmable Controllers Hardware Warnings Software WarningsFX Series Programmable Controllers Contents STL Programming Applied Instructions Rotation And Shift Functions 30 to External FX Serial Devices Functions 80 to Execution Times And Instructional 10-1 Viii FX Series Programmable Controllers Chapter Contents Introduction OverviewWhat is a Programmable Controller? What do You Need to Program a PLC?Special considerations for programming equipment Current Generation CPU all versionsAssocciated Manuals Manual name Number FX Base Unit HardwareManual name Number FX DU, GOT and DM units Memo Basic Program Instructions FX Series Programmable ControllersBasic Program Instructions What is a Program? Outline of Basic Devices Used in ProgrammingDetailed device information How to Read Ladder Logic ExampleLoad, Load Inverse OUT instructionProgram example Timer and Counter Variations OutUse of dual coils Last coil effectDouble Coil Designation And, And Inverse Peripheral limitationsOr, Or Inverse ORILoad Pulse, Load Trailing Pulse Single Operation flags M2800 to M3071Pulse, And Trailing Pulse LDF ANF OUTOr Pulse, Or Trailing Pulse ORF ORBOr Block Batch processing limitationsSequential processing limitations Block ANB13 MPS, MRD and MPP MPS, MRD and MPP usageMultiple program examples Master Control and Reset MCRNested MC program example Set and Reset Resetting timers and countersTimer, Counter Out & Reset Retentive timers16.1Basic Timers, Retentive Timers And Counters Bit counters Availability of devicesNormal 32 bit Counters High Speed CountersPLF Leading and Trailing PulseInverse Usages for INVNo Operation No Operation20 End Program scanMemo STL Programming FX Series Programmable ControllersSTL Programming What is STL, SFC And IEC1131 Part 3? General noteHow STL Operates Each step is a programLook Inside an STL How To Start And End An STL Program Combined SFC Ladder representationEmbedded STL programs Activating new statesInitial Steps Terminating an STL ProgramReturning to Standard Ladder Using SET to drive an STL coil Moving Between STL StepsUsing OUT to drive an STL coil OUT is used for loops and jumpsOut is used for distant jumps Rules and Techniques For STL programs Basic Notes On The Behavior Of STL programsT001 K20 K50 Single Signal Step Control Method 1 Using locking devicesMethod 2 Special Single Pulse Flags Restrictions Of Some Instructions When Used With STL Using ‘jump’ operations with STLRestrictions on using applied instructions Using STL To Select The Most Appropriate Program STL OUT SETUsing STL To Activate Multiple Flows Simultaneously Limits on the number of branchesLimits on the number of branches General Rules For Successful STL Branching Instruction FormatGeneral Precautions When Using The FX-PCS/AT-EE Software Programming Examples Simple STL FlowIdentification of normally closed contacts SET STLPoints to note Selective Branch/ First State Merge Example ProgramFull STL flow diagram/program Advanced STL Use Devices in Detail FX Series Programmable ControllersDevices in Detail Configuration details InputsAvailable devices Device MnemonicOutputs Device Mnemonic YAlias O/P Auxiliary Relays Device Mnemonic MGeneral Stable State Auxiliary Relays Battery Backed/ Latched Auxiliary Relays External loadsSpecial Diagnostic Auxiliary Relays Special Single Operation Pulse RelaysState Relays Device Mnemonic SGeneral Stable State State Relays Battery Backed/ Latched State Relays PLC FX 1S FX 1N FX 2NAssigned states Monitoring STL programsSTL/SFC programming IST instructionAnnunciator Flags Pointers Jumping to the end of the programDevice availability Device Mnemonic PInterrupt Pointers Additional applied instructionsNested levels Pointer positionTimer Interrupts Rules of useInput Interrupts Driving special auxiliary relays Disabling high speed counter interruptsAdditional notes Disabling Individual InterruptsConstant K Constant HDevice Mnemonic K Example device usage N/ATimers Timer accuracyDevice Mnemonic T General timer operation Selectable TimersDriving special auxiliary coils Using timers in interrupt or ‘CALL’ subroutines Retentive TimersInternal timer accuracy Timers Used in Interrupt and ‘CALL’ SubroutinesTimer Accuracy ConditionSetting ranges for counters CountersHigh speed counters Device Mnemonic CBattery backed/latched counters General/ Latched 16bit UP CountersBattery backed/ latched counters Selecting the counting directionGeneral/ Latched 32bit Bi-directional Counters Basic high speed counter operation Further uses NoneDriving high speed counter coils Basic High Speed Counter OperationInput assignment Counter SpeedsAvailability of High Speed Counters Calculating the maximum combined counting speed on FX1S Device specification Setting rangeDirection setting Using the SPD instructionRST 11.5 2 Phase Bi-directional Counters C246 to C250 Device size11.6 A/B Phase Counters C252 to C255 Data Registers Device Mnemonic DExample device usage None Data register updates Data retentionGeneral Use Registers Using the FX2-40AW/AP Use of diagnostic registersBattery Backed/ Latched Registers Special Diagnostic RegistersSpecial caution when using FX1S Writing to file registersFile Registers Program memory registersExternally Adjusted Registers UsesIndex Registers Use of Modifiers with Applied Instruction ParametersDevice Mnemonic V,Z Available formsUsing Multiple Index Registers Modifying a ConstantMisuse of the Modifiers Bits, Words, BCD and Hexadecimal Bit Devices, Individual and GroupedMoving grouped bit devices Assigning I/OAssigning grouped bit devices Word Devices Interpreting Word DataFX Series Programmable Controllers Binary Coded Decimal value= Error Word Data Summary14.4 Two’s Compliment Inverted7 Additional1Floating Point And Scientific Notation Some useful constantsScientific Notation Floating Point Format FLT