Mitsubishi Electronics FX1S manual 10-1

Page 15

10.Points Of Technique

10-1

10.1

Advanced Programming Points

10-1

10.2

Users of DC Powered FX Units

10-1

10.3

Using The Forced RUN/STOP Flags

10-2

10.3.1 A RUN/STOP push button configuration

10-2

10.3.2 Remote RUN/STOP control

10-3

10.4

Constant Scan Mode

10-4

10.5

Alternating ON/OFF States

10-4

10.6

Using Battery Backed Devices For Maximum Advantage

10-5

10.7

Indexing Through Multiple Display Data Values

10-5

10.8

Reading And Manipulating Thumbwheel Data

10-6

10.9

Measuring a High Speed Pulse Input

10-6

10.9.1 A 1 msec timer pulse measurement

10-6

10.9.2 A 0.1 msec timer pulse measurement

10-7

10.10Using The Execution Complete Flag, M8029

10-7

10.11Creating a User Defined MTR Instruction

10-8

10.12An Example System Application Using STL And IST Program Control

10-8

10.13Using The PWM Instruction For Motor Control

10-15

10.14Communication Format

10-18

10.14.1Specification of the communication parameters:

10-18

10.14.2Header and Terminator Characters

10-19

10.14.3Timing diagrams for communications:

10-20

10.14.48 bit or 16 bit communications

10-23

10.15PID Programming Techniques

10-24

10.15.1Keeping MV within a set range

10-24

10.15.2Manual/Automatic change over

10-24

10.15.3Using the PID alarm signals

10-25

10.15.4Other tips for PID programming

10-25

10.16Additional PID functions

10-26

10.16.1Output Value range control (S3+1 b5)

10-26

10.17Pre-tuning operation

10-27

10.17.1Variable Constants

10-27

10.18Example Autotuning Program

10-28

10.19Using the FX1N-5DM Display module

10-29

10.19.1Outline of functions

10-29

10.19.2Control devices for 5DM

10-30

10.19.3Display screen protect function

10-30

10.19.4Specified device monitor

10-31

10.19.5Specified device edit

10-32

10.19.6Automatic Backlight OFF

10-33

10.19.7Error display enable / disable

10-33

1. Index

11-1

1.1

Index

11-1

1.2

ASCII Character Codes

11-9

1.3

Applied Instruction List

11-10

vii

Image 15
Contents Programming Manual Page Foreword FX Series Programmable ControllersFX Series Programmable Controllers FAX Back Combined Programming Manual J FX Series Programmable Controllers Software Warnings Hardware 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 Overview IntroductionWhat do You Need to Program a PLC? What is a Programmable Controller?Current Generation CPU all versions Special considerations for programming equipmentManual name Number FX Base Unit Hardware Assocciated ManualsManual 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 Example How to Read Ladder LogicLoad, Load Inverse OUT instructionProgram example Out Timer and Counter VariationsUse of dual coils Last coil effectDouble Coil Designation Peripheral limitations And, And InverseORI Or, Or InverseSingle Operation flags M2800 to M3071 Load Pulse, Load Trailing PulseLDF ANF OUT Pulse, And Trailing PulseORF ORB Or Pulse, Or Trailing PulseOr Block Batch processing limitationsSequential processing limitations ANB BlockMPS, MRD and MPP usage 13 MPS, MRD and MPPMultiple program examples MCR Master Control and ResetNested MC program example Resetting timers and counters Set and ResetTimer, Counter Out & Reset Retentive timers16.1Basic Timers, Retentive Timers And Counters High Speed Counters Bit countersAvailability of devices Normal 32 bit CountersLeading and Trailing Pulse PLFUsages for INV InverseNo Operation No OperationProgram scan 20 EndMemo STL Programming FX Series Programmable ControllersSTL Programming General note What is STL, SFC And IEC1131 Part 3?How STL Operates Each step is a programLook Inside an STL Activating new states How To Start And End An STL ProgramCombined SFC Ladder representation Embedded STL programsInitial Steps Terminating an STL ProgramReturning to Standard Ladder Moving Between STL Steps Using SET to drive an STL coilUsing OUT to drive an STL coil OUT is used for loops and jumpsOut is used for distant jumps Basic Notes On The Behavior Of STL programs Rules and Techniques For 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 STL OUT SET Using STL To Select The Most Appropriate ProgramLimits on the number of branches Using STL To Activate Multiple Flows SimultaneouslyLimits on the number of branches Instruction Format General Rules For Successful STL BranchingGeneral Precautions When Using The FX-PCS/AT-EE Software Simple STL Flow Programming ExamplesSET STL Identification of normally closed contactsSelective Branch/ First State Merge Example Program Points to noteFull STL flow diagram/program Advanced STL Use Devices in Detail FX Series Programmable ControllersDevices in Detail Device Mnemonic Configuration detailsInputs Available devicesOutputs Device Mnemonic YAlias O/P Auxiliary Relays Device Mnemonic MGeneral Stable State Auxiliary Relays External loads Battery Backed/ Latched Auxiliary RelaysSpecial Single Operation Pulse Relays Special Diagnostic Auxiliary RelaysState Relays Device Mnemonic SGeneral Stable State State Relays PLC FX 1S FX 1N FX 2N Battery Backed/ Latched State RelaysIST instruction Assigned statesMonitoring STL programs STL/SFC programmingAnnunciator Flags Device Mnemonic P PointersJumping to the end of the program Device availabilityPointer position Interrupt PointersAdditional applied instructions Nested levelsTimer Interrupts Rules of useInput Interrupts Disabling Individual Interrupts Driving special auxiliary relaysDisabling high speed counter interrupts Additional notesExample device usage N/A Constant KConstant H Device Mnemonic KTimers Timer accuracyDevice Mnemonic T General timer operation Selectable TimersDriving special auxiliary coils Retentive Timers Using timers in interrupt or ‘CALL’ subroutinesCondition Internal timer accuracyTimers Used in Interrupt and ‘CALL’ Subroutines Timer AccuracyDevice Mnemonic C Setting ranges for countersCounters High speed countersGeneral/ Latched 16bit UP Counters Battery backed/latched countersBattery backed/ latched counters Selecting the counting directionGeneral/ Latched 32bit Bi-directional Counters Further uses None Basic high speed counter operationBasic High Speed Counter Operation Driving high speed counter coilsInput assignment Counter SpeedsAvailability of High Speed Counters Calculating the maximum combined counting speed on FX1S Using the SPD instruction Device specificationSetting range Direction settingRST Device size 11.5 2 Phase Bi-directional Counters C246 to C25011.6 A/B Phase Counters C252 to C255 Data Registers Device Mnemonic DExample device usage None Data register updates Data retentionGeneral Use Registers Special Diagnostic Registers Using the FX2-40AW/APUse of diagnostic registers Battery Backed/ Latched RegistersProgram memory registers Special caution when using FX1SWriting to file registers File RegistersUses Externally Adjusted RegistersAvailable forms Index RegistersUse of Modifiers with Applied Instruction Parameters Device Mnemonic V,ZUsing Multiple Index Registers Modifying a ConstantMisuse of the Modifiers Bit Devices, Individual and Grouped Bits, Words, BCD and HexadecimalMoving grouped bit devices Assigning I/OAssigning grouped bit devices Interpreting Word Data Word DevicesFX Series Programmable Controllers Word Data Summary Binary Coded Decimal value= ErrorInverted7 Additional1 14.4 Two’s ComplimentSome useful constants Floating Point And Scientific NotationScientific Notation Floating Point Format FLT