background image

Catalog Number(s): X8-M14DDT, X8-M16DDR, 
X8-M32DDT

X8 Instruction Manual

Reference Manual

Содержание X8 Series

Страница 1: ...Catalog Number s X8 M14DDT X8 M16DDR X8 M32DDT X8 Instruction Manual Reference Manual ...

Страница 2: ... liability for actual use based on the examples and diagrams No patent liability is assumed by RS Automation Co Ltd with respect to use of information circuits equipment or software described in this manual Reproduction of the contents of this manual in whole or in part without written permission of RS Automation Co Ltd is prohibited Throughout this manual when necessary we use notes to make you a...

Страница 3: ...ing this product for information on available training courses How to Use This Manual Table for Instruction Setting This manual uses the following table for parameter description Related Documents The following documents contain additional information concerning related X8 series PLC http www rsautomation biz Table 0 1 Table for instruction Setting Symbol Instruction Name No Description Examine if...

Страница 4: ...ficulties with electromagnetic compatibility in residential and other environments due to conducted and radiated disturbances It must be mounted within an enclosure that is suitably designed for those specific environmental conditions that will be present and appropriately designed to prevent personal injury resulting from accessibility to live parts The enclosure must have suitable flame retardan...

Страница 5: ...on If you connect or disconnect the USB cable with power applied to this module or any device on the USB network an electrical arc can occur This could cause an explosion in hazardous location installation Be sure that power is removed or the area in nonhazardous before proceeding Exposure to some chemicals may degrade the sealing properties of materials used in the Relays It is recommended that t...

Страница 6: ...or devices inside the module Do not touch the connector pins or other sensitive area To comply with the CE Low Voltage Directive LVD this equipment must be powered from a source compliant with the following Safety Extra Low Voltage SELV or Protected Extra Low Voltage PELV To comply with UL restrictions this equipment must be powered from a Class 2 source Do not remove the protective debris strips ...

Страница 7: ...age 4 X8 M16DDR Output Image 5 X8 M32DDT Output Image 5 X8 B48DDX Output Image 5 X8 B24ADR X8 B24DDT and X8 B24AAR Output Image 6 X8 Series Expansion I O Memory Mapping 6 Digital I O Input Module Configuration 6 X8 XU16 X8 XA16 Input Image 6 X8 XU32 Input Image 6 X8 XU64 Input Image 7 X8 TPOT8 Input Image 7 Digital I O Output Module Configuration 8 X8 YN16 X8 YR16 Output Image 8 X8 YN32 Input Imag...

Страница 8: ...Data Table During Download 6 Data Table Download Protection 6 Setting Data Table Protection 6 Data Table Protection Requirements 7 Static 8 Password 9 Clearing the Controller Memory 11 Allow Access Data Table through Internet Web 11 Chapter 3 SFR Special Function Register Introduction 1 Overview 2 Real Time Clock Register 3 Writing Time Data to the Real Time Clock 3 X8 Real Time Clock Accuracy 4 R...

Страница 9: ...led 6 SetParamters 6 LowPresetMask 7 HighPresetMask 7 UnderflowMask 7 OverflowMask 8 HSC Mode 8 Counting Method according to Multiplication and Phase Difference 10 HSC Mode 0 Up Counter 12 HSC Mode 1 Up Counter with External Reset and Hold 12 HSC Mode 2 Counter with External Direction 13 HSC Mode 3 Counter with External Direction Reset and Hold 13 HSC Mode 4 Two Input Counter up and down 14 Mode 5...

Страница 10: ...ample 32 Chapter 6 Using High Speed Outputs Introduction 1 PTO Pulse Train Output 2 Pulse Train Output Function 2 PTO Funtion 5 SFR Special Function Register PTO Sub Elements 5 PTO 0 Output 6 PTO 0 Done 7 PTO 0 DeceleratingStatus 7 PTO 0 RunStatus 7 PTO 0 AcceleratingStatus 7 PTO 0 RampProfile 8 PTO 0 IdleStatus 8 PTO 0 ErrorDetectedStatus 8 PTO 0 NormalOperationStatus 9 PTO 0 EnableHardStop 9 PTO...

Страница 11: ...cleStatus 24 Chapter 7 Relay Type Bit Instructions Introduction 1 NOC Normal Open Contact NCC Normal Closed Contact 2 OUT Output Coil 3 SET Set Coil RST Reset Coil 4 EGR Edge Rsing 5 ONSR One Shot Rising ONSF One Shot Falling 6 Chapter 8 Timer and Counter Instructions Introduction 1 Timer Instructions Overview 2 TON Timer On Delay 5 TOF Timer Off Delay 5 TOR Retentive Timer On Delay 7 CLKR Read Hi...

Страница 12: ... Subtract 5 MUL Multiply DIV Divide 5 NEG Negate 6 CLR Clear 6 ABS Absolute Value 6 SCAL Scale with Slope 7 SCAP Scale with Parameters 8 SIN Sine 9 TAN Tangent 10 ASIN Arc Sine 11 ACOS Arc Cosine 11 ATAN Arc Tangent 12 DEG Radians to Degrees 13 RAD Degrees to Radians 13 LN Natural Log 14 LOG Base 10 Logarithm 14 POW X Power Y 15 CALC Calculate 15 17 Chapter 11 Conversion Instructions Instruction 1...

Страница 13: ...ncer Ouput 4 SEQL Sequencer Load 5 Chapter 17 Program Control Instructions Introduction 1 JMP Jump to Label 2 LBL Lable 3 CALL Call Subroutine 3 SBR Subroutine 3 RET Return from Subroutine 4 SUSP Suspend 4 ENDT Temporary End 4 END End of Ladder Program 5 MCR Master Contorl Reply 5 Chapter 18 Input Output Instructions Introduction 1 REFI Embedded Input Refresh 2 REFO Embedded Output Refresh 3 EOS E...

Страница 14: ...le 13 INTE Interrupt Enable 15 INTF Interrupt Flush 15 Chapter 20 PID Control Introduction 1 The PID Equation 2 PID Proportional Integral Derivative 3 TimedOrPIT 5 AutoOrManual 5 ForwardReverseActing 6 OutputLimitingEnabled 6 GainRangeSelection 6 SetPointScalingEnabled 7 LoopUpdateTooFast 7 ProcessValueInDeadBand 7 ZeroCrossingDeadband 8 Kc Controller Gain 9 Ti Integral Time 9 Td Derivative Time 1...

Страница 15: ...tion 2 MSG Message Communication 3 Subtype 5 Command 5 SuppElementInfo 0 2 6 ChannelNumber 6 MsgTimeout 6 NumberOfByte 6 TargetDataTableInfo 0 4 7 BreakConnection 7 UnConnectedMessage 7 Timeout 7 ContinuousOperation 8 Enable 8 Range 9 EnabledWaiting 9 Error 9 Done 10 Start 10 ErrorCode 10 ElapsedTIme 10 ErrorCounter 11 RoutiongPathDataTblNumber 11 RoutiongPathDataTable 11 Appendix A System Error C...

Страница 16: ......

Страница 17: ...f embedded I O which is physically located on the controller The controller also allows for adding expansion I O Topic Page Introduction 1 1 Embedded I O 1 2 Expantion I O 1 2 X8 Series Embedded I O Memory Mapping 1 3 X8 Series Expansion I O Memory Mapping 1 6 I O Addressing 1 22 I O Forcing 1 24 Input Filtering 1 24 Analog Input 1 26 Analog Output 1 29 Latching Inputs 1 29 Configure Expansion I O...

Страница 18: ...up to max 80 expansion I O modules with power supply for each 12 I O modules in any combination Addressing Expansion I O Slots The figure below shows the addressing for the base and expantion I O module of X8 Series PLC The expansion I O is addressed as slots 1 to 80 Modules are counted from left to right as shown below Catalog No Description Input Power Type Embedded Digital I O Comm Ports X8 M14...

Страница 19: ... 7 correspond to input terminals 0 to 7 r read only x not used always at a 0 or OFF state X8 M32DDT Input Image For X8 M32DDT base module the Bit positions 0 to 15 together with word 0 1 correspond to input terminals 0 to 15 TIP In most cases you can use the following address format X s b X Table type letter s slot number b bit number For example I3 0 0 rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6...

Страница 20: ... X8 B24ADR X8 B24DDT and X8 B24AAR base module the Bit positions 0 to 13 correspond to input terminals 0 to 13 r read only x not used always at a 0 or OFF state X8 M14DDT Output Image For X8 M14DDT base module the Bit positions 0 to 5 together with word 0 correspond to output terminals 0 to 5 rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 r r r r r r r r r r r r r r r r 1 r r r r r r r...

Страница 21: ...utput terminals 0 to 15 w write only x not used always at a 0 or OFF state X8 B48DDX Output Image For X8 B48DDX base module the Bit positions 0 to 15 with word 0 correspond to output terminals 0 to 15 And the Bit position 0 to 3 with word 1 correspond to output terminals 0 to 3 rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 x x x x x x x x x x w w w w w w rd Bit Position Wo 15 14 13 12...

Страница 22: ... Configuration X8 XU16 X8 XA16 Input Image 16 point input module has a total area of the 16 bit from bit 0 to 15 with one word r read only x not used always at a 0 or OFF state X8 XU32 Input Image 32 points input module has a total area of the 32 bit from bit 0 to 15 with two words rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 w w w w w w w w w w w w w w w w 1 x x x x x x x x x x x x ...

Страница 23: ...total area of the 8 bit from bit 0 to 7with one word r read only x not used always at a 0 or OFF state it will be released in 2013 rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 r r r r r r r r r r r r r r r r 1 r r r r r r r r r r r r r r r r rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 r r r r r r r r r r r r r r r r 1 r r r r r r r r r r r r r r r r 2 r r r r r r r r r...

Страница 24: ... or OFF state X8 YN64 Input Image 64 point output module has a total area of the 64 bit from bit 0 to 15 with four words w write only x not used always at a 0 or OFF state It will be released on 2013 rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 w w w w w w w w w w w w w w w w rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 w w w w w w w w w w w w w w w w 1 w w w w w w w w ...

Страница 25: ...separate parts that outputs data input from actual each channel shows the state of each channel and configuration area allows set the each channel s operation mode X8 AI8 Input Image X8 AI8 module is the high end expantion analog input module with 8 channel voltage and current input A total of 12 words are assigned to the area that shows the state and the input of data and the control area is allo...

Страница 26: ...1 Read Only 2 Input Channel 2 Read Only 3 Input Channel 3 Read Only 4 Input Channel 4 Read Only 5 Input Channel 5 Read Only 6 Input Channel 6 Read Only 7 Input Channel 7 Read Only 8 S7 S6 S5 S4 S3 S2 S1 S0 9 O7 O7 O7 O7 O7 O7 O7 O7 10 11 12 13 Firmware Rev Major Firmware Rev Minor Contorl Area Address Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Input Channel 0 Data 1 Input C...

Страница 27: ...User Scale 0 0000 No Filter 1 0001 1 KHz 2 0010 500 Hz 3 0011 100 Hz 4 0100 50 Hz 5 0101 10 Hz Display Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 Filter Frequency Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 Reserved Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Reserved...

Страница 28: ...module with 4 channel voltage and current input A total of 6 words are assigned to the area that shows the state and the input of data and the control area is allocated for each set of channel x word w write only x not used always at a 0 or OFF state Input Data Type Selection Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 Data Address Mapping Bit...

Страница 29: ...Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Reserved S3 S2 S1 S0 1 Reserved F3 F2 F1 F0 2 Reserved 3 Firmware Rev major Firmware Rev minor Control Area Address Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Configuration Channel 0 Data 1 Configuration Channel 1 Data 2 Configuration Channel 2 Data 3 Configuration Channel 3 Data 4 Reserved 5 Reserved 6 Reserved 7 Reserved Display ...

Страница 30: ... Voltage Input 10 10V 4 0100 Current Input 0 20mA 5 0101 Current Input 4 20mA X8 RT6 Input Image X8 RT6 module is the high end expantion RTD input module with 6 channel RTD input A total of 6 words are assigned to the area that shows the state and Reserved Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Reserved Reserved Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Reserved Input Data Typ...

Страница 31: ...ss Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Channel 0 1 Channel 1 2 Channel 2 3 Channel 3 4 Channel 4 5 Channel 5 Control Area Address Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Channel 0 1 Channel 1 2 Channel 2 3 Channel 3 4 Channel 4 5 Channel 5 6 Reserved 7 Reserved Display Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 ...

Страница 32: ...00 60 Hz 5 0101 50 Hz 6 0110 10 Hz 0 Disable 1 Enable 0 1 Filter Frequency Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 Enable Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 Temperature Unit Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 ...

Страница 33: ...0011 1000 Ω Pt385 4 0100 100Ω Pt3916 5 0101 200ΩPt3916 6 0110 500Ω Pt3916 7 0111 1000 Ω Pt3916 8 1000 10Ω Cu 426 Open Circuit Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 1 1 0 1 1 Data Input Type Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 0 1 1 1 1 0 ...

Страница 34: ... are assigned to the area that shows the state and the input of data and 8 words are allocated to the control area to set each channel Data Address Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Channel 0 1 Channel 1 2 Channel 2 3 Channel 3 4 Channel 4 5 Channel 5 Control Area Address Mapping rd Bit Position Wo 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 Channel 0 1 Channel 1 2 Cha...

Страница 35: ...500Hz 3 0011 100Hz 4 0100 60Hz 5 0101 50Hz 6 0110 10Hz 0 Disable 1 Enable Display Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 Filter Frequency Format Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 Enable Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 ...

Страница 36: ...l 1 20 I O Configuration 0 1 0 00 Up Scale 1 01 Down Scale 2 10 Last State 3 11 Zero Temperature Unit Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 1 Open Circuit Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 1 1 0 1 1 ...

Страница 37: ...01 S Type 6 0110 E Type 7 0111 N Type 8 1000 L Type 9 1001 U Type 10 1010 C Type 11 1011 D Type 12 1100 78 0 78 0mV 13 1101 32 7 32 7mV 14 1110 65 5 65 5mV Data Input Type Bit Position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 0 1 1 1 1 0 ...

Страница 38: ... b Id sw b X Data Type Input X Output Y Status ST Binary B Integer N Timer TM Counter CT Control CR ASCII A Float F STRING ST Long L Message MG PID PD Pulse Limited Switch PS Routing Path RP d Data Table Number 0 output 1 input to Fixed Available to users from No 3 Slot Delimiter s Slot Number Embedded I O Slot Number 0 Expansion I O Slot Number 1 to 40 Word Delimiter w World Number Required to re...

Страница 39: ... Word Bit Bit Addressing X1 0 0 0 1 Word 0 Input bit 0 Y0 0 0 1 0 Word 0 Output bit 1 ST8 0 3 8 Word 0 Status bit 3 B3 0 15 3 Word 0 Binary bit 15 N20 0 4 20 Word 0 Integer bit 4 Addressing Level Explanation Data Table No Word Word Addressing X1 0 1 1 Word 1 Y0 3 3 0 Word 3 ST 8 7 8 Word 7 B13 2 13 Word 2 N20 1 20 Word 1 ...

Страница 40: ...e determined by the logic in the control program However the state of the physical output will be set to the forced state Input Filtering Configurable Input The X8 Series PLC allow users to configure embedded digital I O of DC inputs for high speed or normal operation Users can configure each input s response time That is it can be set the duration time that can recognize input signal form the PLC...

Страница 41: ...rrupts Note that the maximum filtered value is 16mS and minimum is 5μS Input filtering is configured using XGPC programming software which RS Automation is supply freely 1 Select Project Tab 2 Select I O Configuration Branch and double click 3 Select I O Module For example if the X8 AI4AO2 is selected user can config IO setting value by XGPC ...

Страница 42: ...can config input settings such as input filtering and input ratching Analog Input Analog Input Filter and Update times The X8 Series PLC s expansion analog input module can be configurable If the analog inputs have less tolerance to electrical noise more accurate data can be input by the slower filter setting In order to increase the tolerance to external electrical noise set the filtering speed t...

Страница 43: ...q Hz Setting Time mSec Resolution Bits 10 19 100 00 12 50 50 20 00 12 60 60 16 67 12 250 250 4 12 Filter Setting Value Hz Filter Bandwidth 3dB Freq Hz Setting Time mSec Resolution Bits 10 19 100 00 16 50 50 20 00 16 60 60 16 67 16 250 250 4 16 TIP 10Hz is the default setting The total update time is one ladder scan time plus the setting time If a 250 Hz filter is selected the maximum update Time l...

Страница 44: ...as temperature pressure and flow transducers to be input data to the processor Noise signals coupled in at frequencies above the pass band are sharply rejected An area of particular concern is the 50 60 Hz region where pick up from power lines can occur Converting Analog Data The analog input circuits are able to monitor voltage signals and convert them to digital data The followings show sample A...

Страница 45: ...8 AI4AO2 has 0 10V DC or 4 20mA output range The X8 Series PLC have X8 AI4AO2 that supports 2 channels 12 bit resolution and X8 AO4 that supports 4 channels 16 bit resolution X8 AI4AO2 has 0 10V DC or 4 20mA output range X8 AO4 as high functional product supports 0 5V 0 10V 5 5V and 10 10V voltage output and 0 20mA and 4 20mA current output depending on the setting Latching Inputs Converting Analo...

Страница 46: ...a to Actual Output Voltage 12 Bits 16 Bits For example if 3000 is send to the analog voltage output port the calculated value is as follows 12 Bits 16 Bits The X8 Series PLC provides the ability to configure latching input ports A latching input is an input that captures a high speed pulse signal and holds it for a single PLC scan The pulse width that can be captured is dependent upon the input fi...

Страница 47: ... the base module in the Slot 0 3 If screen appears as shown in the figure below selects the corresponding bit to activation and then select rising Rising Edge or falling Falling Edge When an external signal is detected at Rising Edge the PLC stores this event In general at the next input scan this signal is turned on and remains on for the next controller scan Controller X8 Series PLC 0V 0 11 ...

Страница 48: ...n Number X Scan Number X 1 ScanNumber X 2 External Input Latched Status Input File Value Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status Input File Value Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan Input Scan Ladder Scan Output Scan ...

Страница 49: ...he input data area when the input port is configured for latching behavior When the input port configuration is raising Edge in input data area the data value is normally off and on when a rising edge is detected Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status Input File Value Input Scan Ladder Scan Output Scan Scan Number X 3 Input Scan Ladder Scan Output Scan Input Sc...

Страница 50: ...put filter delay IMPORTANT The external input signal does not displayed in the input data area when the input port is configured for latching behavior When the input port configuration is falling Edge in input data area the data value is normally on and off when a rising edge is detected Scan Number X Scan Number X 1 Scan Number X 2 External Input Latched Status Input File Value Input Scan Ladder ...

Страница 51: ...elect empty slot number for manual setting and then double click For automatic setting click Read I O Config button 3 Expansion module selection screen will be appeared in the manual setting In automatic setting all expansion modules currently connected will be displayed automatically ...

Страница 52: ...X8 Instruction Set Reference Manual 1 36 I O Configuration 4 For some modules usually with the default settings user defined setting is required The screen below shows setup screen of X8 AI4AO2 module ...

Страница 53: ...scribes Memory and Data Table used by the X8 Series PLC The chapter is organized as follows Topic Page Introduction 2 1 X8 Series PLC Memory 2 2 Data Table 2 5 Protecting Data Table During Download 2 6 Static 2 8 Password 2 9 Clearing the Controller Memory 2 11 Allow Access Data Table through Internet Web 2 11 ...

Страница 54: ...om 3 1535 shown in the table below can be created in X8 Series PLC PLC Internal Data Table Structure and Type Data Table SFR Special Function Register Ladder Program Specialty Files No Description Identifier Description No Description No Description 0 Y Output Register HSC High Speed Counter 0 System File 0 0 Data Log Queue 0 1 X Input Register PTO Pulse Train Output 1 System File 1 1 Data Log Que...

Страница 55: ...ister F Floating Point Register B Bit T Timer CT Counter CR Control N Integer F Floating Point ST String A ASCII L Long Word MG Message PD PID PS Programmable Switch RP Routing Path RTC Real Time Clock 5 Ladder Program 5 2 255 Recipe File 2 255 MMI Memory Module Information 6 Ladder Program 6 BHI Base Hardware Information 7 Ladder Program 7 CS0 Communications Status for Channel 2 8 Ladder Program ...

Страница 56: ...s SFR Special Function Register does not comsume user memory X8 Series PLC User Memory The X8 Series PLC supports64KW of memory for data and programs And X8 Series PLC suuports seperate 4GB SD memory for data logging recipe ladder backup Viewing X8 Series PLC Memory Usage 1 Select Controller Properties and double click TIP Each input and output memory consumes 3 words due to the overhead associate...

Страница 57: ... Data Table No Words per Element Description Output Y 0 FIX 1 The output image data table stores the actual output value of the embedded output port Input X 1 FIX 1 The input image data table stores the actual input value entered into the embedded input port SFR Special Function Register S 2 FIX 1 SFR Special Function Register contains internal status information of X8 Series PLC ...

Страница 58: ...counter operation Contorl CR 3 The contorl data table is used for various purposes Error Length Position etc in the Ladder Program Integer N 1 The Integer typed Data Table for integer Floating Point F 2 Floating point typed Data Table for floating point logic processing String ST 42 String typed Data Table for string logic ASCII A 1 ASCII typed Data Table for ASCII character logic Long Word L 2 LO...

Страница 59: ... The ladder program being downloaded to the PLC has the same number of protected data tables as the ladder program to be updated stored in the internal PLC All protected data table numbers types and sizes number of elements currently in the controller exactly match If all of these conditions are met the X8 Series PLC will not write over any data table in the PLC that is configured as Protected If ...

Страница 60: ...n is changed to ON status Static Static part of Properties in the Data Table defines whether it can change its value through communication Static can be applied to the following data types Output Y Input X Status S Binary B Timer TC Counter CT Control CR Integer N Floating Point F String ST ASCII A Long Word L Proportional Integral Derivative PD Message MG TIP The X8 Series PLC will not reset the ...

Страница 61: ...h PLC program may contain two passwords the Password and the Master Password Password Description Master Password System Password This is main password of system By using the master password and system password it can be set the password redundancy The Master Password takes precedence over the System Password In General to set more powerful password protection use a common master password in the e...

Страница 62: ...f up to 12 characters include special characters if a password is lost or forgotten there is no way to bypass the password to recover the program The only option is to clear the PLC s memory TIP When the password protected ladder is transferred to the SD card if each password does not match SD card cannot be backed up If password mismatch error occurred the SR2 5 9 register status is ON ...

Страница 63: ... 65257636 on XGPC PLC Property Dialog Box 2 When the Programming Software detects this number has been entered it asks if you want to clear the memory in the controller 3 If you reply yes to this prompt the programming software instructs the controller to clear PLC memory Allow Access Data Table through Internet Web This allows open to public X8 Series PLC s internal data table via Web Only offlin...

Страница 64: ...X8 Instruction Set Reference Manual 2 12 X8 Series PLC Memory and Data Table ...

Страница 65: ...s include internal configuration and status data of X8 Series PLC The chapter is organized as follows Topic Page Introduction 3 1 Overview 3 2 Real Time Clock Register 3 3 RTCA Real Time Clock Adjust Instruction 3 5 Memory Card Information Data Table 3 6 Communications Status Data Table 3 8 Ethernet Communications Status Data Table 3 21 ...

Страница 66: ...associated with the Pulse Width Modulation Selectable Timed Interrupt STI This data table associated with the Selectable Timed Instruction Event Input Interrupt EII This data table associated with the Event Input Interrupt Real Time Clock RTC This data table associated with the Real Time Clock time of day Memory Module Information MMI This data table contains information about the Memory Module Ba...

Страница 67: ...e ladder logic as follows Following example shows data transmission method by using Copy Word instruction Feature Address Data Format Range Type User Program Access YR RTC Year RTC 0 YR word 1998 2097 Status read write MON RTC Month RTC 0 MON word 1 12 Status read write DAY RTC Day of Month RTC 0 DAY word 1 31 Status read write HR RTC Hours RTC 0 HR word 0 23 military time Status read write MIN RT...

Страница 68: ... the RTC immediately In XGPC click Set Date Time button in the screen above to synchronize PC time data to RTC of X8 Series PLC File screen to set the RTC time to the current time on your PC The real time clock does not allow you to load or store invalid date or time data X8 Real Time Clock Accuracy The following table indicates the expected accuracy of the real time clock for various temperatures...

Страница 69: ... and RTC Seconds are reset to 0 The following conditions cause the RTCA instruction to have no effect on the RTC data RTC is disabled An external via communications message to the RTC is in progress when the RTA instruction is executed External communications to the RTC takes precedence over the RTA instruction To normal operation of RTCA instruction the RTCA rung must become false and then true A...

Страница 70: ...and their valid ranges are shown in the table below TIP There is only one internal storage bit allocated in the system for this instruction Do not use more than one RTCA instruction in your program TIP You can also use a MSG instruction to write RTC data from X8 Series PLC to another to synchronize time MCI Data Table Parameters Parameters Address Data Format Type User Program Access Functionality...

Страница 71: ...ram and system cannot be overwritten FaultOverride The FaultOverride flag shows the status of the FaultOverride of the user ladder program stored in the SD memory card LoadProgramCompare The LoadProgramCompare flag shows the status of the ladder program stored in the SD memory card LoadOnError The LoadOnError flag shows the status of the LoadOnError of the user ladder program stored in the SD memo...

Страница 72: ...orts configuration and various registers and located on CS0 CS1 CS2 and ES3 in the SFR The Communications Status Data Table is structured as shown below Address Descriptions BHI 0 CN CN Catalog Number BHI 0 SRS SRS Series BHI 0 REV REV Revision BHI 0 FT FT Functionality Type Communications Status Data Table Size Register Elements Size CS0 USB 71 Word CS1 COM0 71 Word CS2 COM1 71 Word ES3 EtherNet ...

Страница 73: ...it is cleared 1 MRP Incoming Message Reply Pending Bit This bit is set when the X8 Series PLC determines that another device has supplied the information requested by a MSG instruction executed by this controller When the appropriate MSG instruction is serviced this bit is cleared 2 MCP Outgoing Message Command Pending Bit This bit is set when the X8 Series PLC has one or more MSG instructions ena...

Страница 74: ... Duplex DF1 Half Duplex Slave DF1 Half Duplex Master Modbus RTU Slave Modbus RTU Master ASCII User Defined Protocol Word Bit Description 5 0 7 Node Address This byte value contains the node address of X8 Series PLC on the network 8 15 Baud Rate This byte value contains the baud rate of the X8 Series PLC on the network TIP Select each communication port and protocol in the Channel Status screen on ...

Страница 75: ...ters Category Identifier 7 Length always 30 8 Format Code always 1 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 ENQuiry Packets Sent 14 NAK Packets Received 15 ENQuiry Packets Received 16 Bad Message Packets Received and NAKed 17 No Buffer Space 18 Duplicate Message Packets Received 19 22 Reserve...

Страница 76: ...th always 30 8 Format Code always 1 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 ENQuiry Packets Sent 14 NAK Packets Received 15 ENQuiry Packets Received 16 Bad Message Packets Received and NAKed 17 No Buffer Space 18 Duplicate Message Packets Received 19 22 Reserved ...

Страница 77: ...ackets 13 ENQuiry Packets Sent 14 NAK Packets Received 15 ENQuiry Packets Received 16 Bad Message Packets Received and NAKed 17 No Buffer Space 18 Duplicate Message Packets Received 19 22 Reserved Word Bit Description 6 Diagnostic Counters Category Identifier 7 Length always 30 8 Format Code always 0 9 0 CTS 1 RTC 2 Reserved 3 Reserved 4 15 Reserved 10 Total Message Packets Sent 11 Total Message P...

Страница 78: ...Counters Category Identifier 7 Length always 30 8 Format Code always 1 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 ENQuiry Packets Sent 14 NAK Packets Received 15 ENQuiry Packets Received 16 Bad Message Packets Received and NAKed 17 No Buffer Space 18 Duplicate Message Packets Received 19 22 Res...

Страница 79: ...s 3 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 15 Reserved 10 Total Message Packets Sent 11 Total Message Packets Received 12 Undelivered Message Packets 13 Message Packets Retried 14 Reserved 15 Polls Sent 16 Bad Message Packets Received 17 No Buffer Space Received Packet Dropped 18 Duplicate Message Packets Received 19 Last Normal Poll List Scan 20 Max Normal Poll List Scan 21 Last Priority Poll List...

Страница 80: ...ackets Received for This Slave 12 Total Message Packets Received 13 Link Layer Error Count 14 Link Layer Error Code 15 22 Reserved Word Bit Description 43 Diagnostic Counters Category Identifier Always 10 44 Length Always 14 45 Format Code Always 0 46 0 Pre Send Time Delay 47 0 7 Node Address 8 15 Reserved 48 3 Inter Character Timeout 49 4 15 RTS Send Delay 50 RTS Off Delay 51 0 7 BaudRate Communi...

Страница 81: ...Error Request 60 Element Number of Error Request Word Bit Description 61 Function Code 1 Message Counter 62 Function Code 2 Message Counter 63 Function Code 3 Message Counter 64 Function Code 4 Message Counter 65 Function Code 5 Message Counter 66 Function Code 6 Message Counter 67 Function Code 8 Message Counter 68 Function Code 15 Message Counter 69 Function Code 16 Message Counter Word Bit Desc...

Страница 82: ...ode 15 22 Reserved Word Bit Description 52 Diagnostic Counters Category Identifier Always 6 53 Length Always 32 54 Format Code Always 0 55 ERR 1 Illegal Function 56 Last Device Reporting ERR 1 57 ERR 2 Illegal Data Address 58 Last Device Reporting ERR 2 59 ERR 3 Illegal Data Value 60 Last Device Reporting ERR 3 61 ERR 4 Slave Device Failure 62 ERR 5 Acknowledge 63 ERR 6 Slave Device Busy 64 ERR 7 ...

Страница 83: ...Bit Description 6 Diagnostic Counters Category Identifier Always 2 7 Length Always 30 8 Format Code Always 5 9 0 CTS 1 RTS 2 Reserved 3 Reserved 4 15 Reserved 10 0 Software Handshaking Status 1 15 Reserved 11 Echo Character Count 12 Received Character Count 13 18 Reserved 19 Bad Character Count 20 22 Reserved ...

Страница 84: ...1 Half Duplex Master Always 0 for DF1 Full Duplex Master DF1 Half Duplex Slave Modbus RTU Slave Modbus RTU Master ASCII Communication 27 Active Node Table DH 485 and DF1 Half Duplex Master Nodes 0 to 15 This is a bit mapped register that displays the status of each node on the network If a bit is set 1 the corresponding node is active on the network If a bit is clear 0 the corresponding node is in...

Страница 85: ... Identifier Always 0 General Channel Status Block Word Bit Description 0 Ethernet Communication Channel Information Category Identifier Always 1 1 Length 236 2 Format Code 3 Communications Configuration Error Code 4 0 ICP Incoming Command Pending Bit This bit is ON when the X8 Series PLC determines that another device has requested information from this PLC Once the request has been satisfied the ...

Страница 86: ...lways 0 15 Ethernet IP Incoming Connection Status This bit is set 1 when the Ethernet IP Incoming connection is enabled The cleared bit 0 means that the Incoming connection is disabled 5 0 Ethernet Port Link Status This bit is set 1 when the Ethernet link is active 1 Ethernet Port Connection Speed This bit is valid when the Auto Negotiation function is enabled This bit indicates the speed of the E...

Страница 87: ... IP Address configuration method 11 DHCP Status Flag This bit is set 1 if DHCP is selected as IP Address configuration method 6 8 Ethernet Hardware Address 6 byte string A unique Ethernet Hardware Address information 9 10 IP Address in network byte order Specified IP Address information is stored 11 12 Subnet Mask in network byte order Specified Subnet mask information is entered 13 14 Gateway Add...

Страница 88: ...ored 117 Message Connection Timeout The amount of Timeout of the MSG instruction is stored The MSG Connection Timeout has a range of 250 ms 65 500 ms 118 Message Reply Timeout The amount of Replay Timeout of hat MSG instruction is stored The MSG Reply Timeout has a range of 250 ms 65 500 ms 119 Inactivity Timeout The amount of remain time of the MSG instruction is displayed before it is terminated...

Страница 89: ...ow word Frames Received with CRC Error IEEE_R_CRC 134 High word 135 Low word Frames Received with Alignment Error IEEE_R_ALIGN 136 High word 137 Low word Count of frames not counted correctly RMON_T_DROP 138 High word 139 Low word Receive FIFO Overflow Count IEEE_R_MACERR 140 High word 141 Low word Frames transmitted with Tx FIFO Under run IEEE_T_MACERR 142 High word 143 Low word Frames Transmitte...

Страница 90: ...High word 161 Low word Total Replies Received 162 High word 163 Low word Total Replies Sent with Error 164 High word 165 Low word Total Replies Received with Error 166 High word 167 Low word Total Replies Timed Out 168 High word 169 Low word Total Message Connections 170 High word 171 Low word Incoming Message Connections 172 High word 173 Low word Outgoing Message Connections 174 High word 175 Lo...

Страница 91: ...pter 4 Programming Instruction Overview Introduction This chapter describes X8 Series PLC Programming Insturcution Overview The chapter is organized as follows Topic Page Introduction 4 1 X8 Instruction Group 4 2 Instruction Descriptions 4 3 ...

Страница 92: ...O BCD BIN GRAY The Conversion instruction allows you multiplex and de multiplex gray code and conversion between binary and decimal BCD values Logical AND OR XOR NOT The Logical instructions perform bit wise logical operations on words Move MOV MOVM The Move instructions modify and move words Data Table COPW COPT FILT BSL BSR FIFOL FIFOU LIFOL LIFOU SWAP The Data Table Instructions perform operati...

Страница 93: ...sing Indexed addressing can be duplicated with indirect addressing Each of the addressing modes are described below Immediate Addressing Immediate addressing is the most basic addressing mode and primarily used to assign numeric constants directly to X8 Series PLC data table Parameter Data Files SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PLS ASCII RTC HSC PTO PWM STI EII ...

Страница 94: ...ions recipemanagement batch processing and many others To define which components of an address are to be indirected a closed bracket is used The above example is the ladder program that adds 1221 to data table value that is expressed N4 N4 1 and stores it to N4 2 If the value of location N4 1 10 this instruction copies data value from data table specified by N4 10 and stores it to location N4 2 a...

Страница 95: ... Addressing of a File It can be applied like above TIP If you access to a number lager than the number of elements specified from the data table through Indrect Addressing method 28 H error runtime error and ladder progrm error will be occurred For the initial compiling any errors could not be founded because there is no grammatical errors 0003 COPT EN ENO IN N N4 20 15 OUT N4 30 B3 0 0 LIM EN ENO...

Страница 96: ...X8 Instruction Set Reference Manual 4 6 Programming Instruction Overview TIP Do not allocate 4 096 or more in the Indirect Addressing method ...

Страница 97: ...rammable limit switch This chapter organized as follows Topic Page Introduction 5 1 High Speed Counter Overview 5 2 Programmable Limit Switch 5 2 High Speed Counter HSC Function Register 5 2 High Speed Counter SFR Elements 5 3 HSC SFR Sub Elements 5 5 HSCS Set High Speed Counter Value 5 28 HSCC Clear High Speed Counter Value 5 29 High Speed Counter HSC Data Table 5 30 ...

Страница 98: ...ta count range of 2 147 483 647 Programmable High and Low presets and Overflow and Underflow Set points Automatic Interrupt processing based on accumulated count Run time editable parameters from the user control program Programmable Limit Switch X8 Series PLC supports the Programmable Limit Switch function and it allows you to configure the High Speed Counter to operate as a programmable limit sw...

Страница 99: ...an select or configure the master HSC for any one of ten modes and the sub HSC for any one of five modes of operation High Speed Counter SFR Elements The HSC SFR of X8 Series PLC is comprised of 37 sub elements for control and status output All examples illustrate based on HSC 0 Address Data Format HSC Modes 1 Function User Program Access HSC 0 LadderProgramNumber Word INT 0 9 Control Read Only HS...

Страница 100: ... Word 16 bit Binary 0 9 Control Read Write HSC 0 LowPresetOutput Word 16 bit Binary 2 9 Control Read Write HSC 0 ErrorCode Word INT 0 9 Status Read Only HSC 0 UserInterruptExecuting Bit 0 9 Status Read Only HSC 0 UserInterruptLost Bit 0 9 Status Read Write HSC 0 UserInterruptPending Bit 0 9 Status Read Only HSC 0 ErrorDetected Bit 0 9 Status Read Only HSC 0 LowPresetInterrupt Bit 2 9 Status Read W...

Страница 101: ...ble The UserInterruptEnable is used to enable or disable HSC sub routine processing when the HSC accumulator value is reaches to the condition of High Low Preset Overflow or Underflow Conditions are as below Low preset reached High preset reached Overflow condition Underflow condition FunctionEnabled Address Data Format HSC Mode Function User Program Access HSC 0 LadderProgramNumber Word INT 0 9 C...

Страница 102: ...unting Enabled control bit is used to enable or disable the High Speed Counter When this bit is changed from set 1 to clear 0 counting is If this bit is disabled while the counter is running the accumulated value is held if the bit is then set counting resumes This bit can be controlled by the user program and retains its value through a power cycle SetParamters The SetParamters control bit is use...

Страница 103: ...en the HSC condition is reaches to the High Preset This bit is controlled by the user program and retains its value through a power cycle UnderflowMask The UnderflowMask control bit is used to control the underflow interrupt If this bit is clear 0 he HSC user interrupt is not executed when the HSC condition is reaches to the High Preset This bit is controlled by the user program and retains its va...

Страница 104: ...GPC and is accessible in the X8 Series PLC as a read only variable HSC0 s sub counter is HSC3 HSC1 s sub counter is HSC4 and HSC2 s sub counter is HSC5 Each set of counters share the input port The following table shows the dedicated inputs for the HSCs depending on the mode Description Data Format HSC Mode Function User Program Access HSC 0 OverflowMask Bit 0 9 Control Read Write Description Data...

Страница 105: ...t be defined in the mode 0 1 Up Counter with external reset and hold The accumulator is immediately cleared 0 when it reaches the high preset A low preset cannot be defined in the mode 0 2 Counter with external direction Mode for counter direction setting 3 Counter with external direction reset and hold Mode for counter direction reset and hold setting 4 Two input counter up and down 5 Two input c...

Страница 106: ...iption Phased input Counting every falling edge in phase A and check signal level in phase B to check direction of rotation X4 High Speed Counter Performance Count at falling edge and rising edge in Phase A and Phase B Check Phase B level at rising falling edge in Phase A and check Phase A in the rising edge and falling edge in Phase B to know the direction of rotation ...

Страница 107: ... 6 HSC 1 Input 10 HSC 2 Input 3 HSC 0 Input 7 HSC 1 Input 11 HSC 2 Mode Value in User Program Counter with Internal Direction mode 1a 1 Count Not Used Not Used Not Used 0 Counter with Internal Direction External Reset and Hold mode 1b 2 Count Not Used Reset Hold 1 Counter with External Direction mode 2a 1 Count Direction Not Used Not Used 2 Counter with External Direction Reset and Hold mode 2b 2 ...

Страница 108: ...X4 Counter mode 5a 1 A Type Input B Type Input Not Used Not Used 8 Quadrature X4 Counter with External Reset and Hold 2 A Type Input B Type Input Z Type Input Hold 9 HSC Mode 0 Up Counter Examples Input Terminals X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 Counting Enabled Bit Comments Function Count Not Used Not Used Not Used Example 1 on 1 HSC Accumulator 1 count Example 2 on 1 off 0...

Страница 109: ... CE Bit Comments Function Count Direction Not Used Not Used Example 1 off 0 on 1 HSCAccumulator 1 count Example 2 on 1 on 1 Hold accumulator value Example 3 Hold accumulator value HSC Mode 3 Counter with External Direction Reset and Hold Example Input Terminals X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 CE Bit Comments Function Count Direction Reset Hold Example 1 on 1 off 0 off 0 on ...

Страница 110: ...f the counter input B leads the counter input A the counter decrements HSC Mode 4 Examples Input Terminals X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 CE Bit Comments Function Count Up Count Down Not Used Not Used Example 1 on 1 off 0 on 1 HSCAccumulator 1 count Example 2 on 1 off 0 on 1 HSC Accumulator 1 count Example 3 off 0 Hold accumulator value Input Terminals I1 0 0 0 HSC0 I1 0 0...

Страница 111: ...s don t care rising edge falling edge ON OFF ON OFF ON OFF Encoder A B Z Reset Input Input 0 Input 1 Input 2 A B Counter 1 2 3 2 1 HSC Mode 6 Quadrature Counter phased inputs A and B Example Input Terminals X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 X1 0 0 0 HSC0 CE Bit Comments Function Count A Count B Not Used Not Used Example 1 off 0 on 1 HSCAccumulator 1 count Example 2 off 0 on 1 HSC Accumulat...

Страница 112: ...A Count B Z reset Hold Example 1 1 off 0 off 0 on 1 HSC Accumulator 1 count Example 2 2 off 0 off 0 off 0 on 1 HSC Accumulator 1 count Example 3 off 0 off 0 on 1 Hold accumulator value Example 4 on 1 Hold accumulator value Example 5 on 1 Hold accumulator value Example 6 off 0 on 1 Hold accumulator value Example 7 off 0 off 0 HSC Mode 8 Quadrature X4 Counter X1 0 0 1 HSC0 A X1 0 0 1 HSC0 B Value of...

Страница 113: ... HSC0 reset X1 0 0 3 HSC0 Hold Value of CE Bit Accumulator and Counter Action OFF X TRUE Count Up Acc Value ON X TRUE Count Down Acc Value OFF X TRUE Count Down Acc Value ON X TRUE Count Up Acc Value OFF X TRUE Count Down Acc Value ON X TRUE Count Up Acc Value OFF X TRUE Count Up Acc Value ON X TRUE Count Down Acc Value OFF or ON OFF or ON OFF X X Hold Acc Value OFF OFF ON X X Reset Acc to Zero X ...

Страница 114: ...When the SetParameter bit is changed from 0 to 1 the HighPreset value is loaded into the HSC so that can be operated from the HSC The HighPreset value must be less than or equal to the data resident in the Underflow parameter or an HSC error is generated If negative number is input as the LowPreset or Underflow value it will be replaced by the absolute value without sign Set various HSC parameters...

Страница 115: ... HSC The bit pattern of the OMB variable directly corresponds to the output bits on the controller Bits that are set 1 are enabled and can be turned on or off by the HSC sub system Bits that are clear 0 cannot be turned on or off by the HSC sub system The mask bit pattern can be configured only during initial setup This table illustrates this relationship Affect of HSC Output Mask on Base Unit Out...

Страница 116: ...ErrorCode The ErrorCode stores the error codes when a HSC error is generated The table below explains the error codes Description Data Format HSC Mode Function User Program Access HSC 0 HighPresetOutput Word 16 bit binary Control Read Write Description Data Format HSC Mode Function User Program Access HSC 0 LowPresetOutput Word 16 bit binary Control Read Write Description Data Format HSC Mode Func...

Страница 117: ...Underflow condition This flag is used to detect in the user control program if an HSC interrupt is executing and will be automatically cleared when the PLC completes its processing 3 Invail ed High Preset 0 1 If the high preset value is less than 0 4 Invalid High Preset 2 9 This error is generated when the high preset value is less than or equal to the low preset 5 In va il ed Underflow Value Conf...

Страница 118: ...en the HSC accumulator reaches the low preset value and the HSC interrupt has been triggered This bit can be used in the control program to identify that the low preset condition caused the HSC interrupt and this flag would be applied by the control program This bit can be cleared by the control program and is also be cleared by the HSC whenever these conditions are detected High Preset Interrupt ...

Страница 119: ...ared by the HSC whenever these conditions are detected High Preset Interrupt executes Underflow Interrupt executes Overflow Interrupt executes PLC enters an executing mode LowPresetReached The LowPresetReached flag is set when the HSC accumulator value is less than or equal to the low preset This flag is updated automatically when the PLC enters an executing mode HighPresetReached Description Data...

Страница 120: ...e HSC whenever these conditions are detected Low Preset Interrupt executes High Preset Interrupt executes Overflow Interrupt executes PLC enters an executing mode OverFlowInterrupt The OverflowInterrupt flag is set when the HSC accumulator reaches to the Overflow value and the HSC interrupt is triggered This bit can be used in the control program to identify that the Overflow condition caused the ...

Страница 121: ...everses This bit is updated continuously by the HSC s whenever the PLC is in a run mode ModeDone The ModeDone flag is set by the HSC when the HSC is configured for Mode 0 or Mode 1 behavior and the accumulator counts up CountDown The CountDown flag is used to increment or decrement a counter of the HSC mode from 2 to 9 When the CountingEnabled Bit is set the CountDown flag is set Description Data ...

Страница 122: ...Overflow value stored in the SFR is transferred to the HSC The value stored in the Overflow must be greater than or equal to the High Preset or an HSC error is generated Underflow The Underflow flag specifies the Low Preset of the HSC When the accumulator value of HSC is less than the value defined in the Underflow the Underflow interrupt is triggered HSC is set the Overflow value as accumulator t...

Страница 123: ...grammable Limit Switch 5 27 To set the Underflow value toggles the SetParameter bit from OFF to ON and the Underflow value stored in the SFR is transferred to the HSC The value stored in the Underflow must be less than or equal to the Low Preset or an HSC error is generated ...

Страница 124: ...t Word 32768 32767 Long Word 2 147 483 648 2 147 483 647 Output High Source Data table to store the HighPresetOutputdml output register The data range for the output high source is from 0 to 65 535 Output Low Source Data Table to store the LowPresetOoutputdml output The data range for the output low source is from 0 to 65 535 Valid Addressing Modes and File Types are shown below HSCS EN ENO HSC Nu...

Страница 125: ...Counter Specifies which the HSC is being used HSC0 HSC1 HSC2 HSC3 HSC4 HSC5 Source Setting value Input the value directly or input data table The data range is from 2 147 483 648 to 2 147 483 647 HSCC EN ENO Counter HSC0 0 Source Parameter Data Table Function Files Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS ASCII RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immedia...

Страница 126: ... is enabled through the PlsTableNumber of HSC in the SFR the PS data table can be used for Limit Position and CAM position The HSC must be configured before the Programmable Limit Switch function operating PS Data Table Data files 9 1535 can be used for PS operations Each PS data table can be up to 1535 elements long Each element within a PS data table consumes 6 words of memory Following is the P...

Страница 127: ...ing the High Speed Counter and Programmable Limit Switch 5 31 Using Programmable Limit Switch The X8 Series PLC is in the run mode and when the PLS function is enabled the HSC will count incoming pulses When the HSC accumulator data reaches ...

Страница 128: ...ed to as circular operation If invalid data is loaded during operation an HSC error is generated within the HSC function file If an invalid parameter is detected it will be skipped and the next parameter will be loaded for execution provided it is valid You can use the PS in both directions If your application only counts in one direction simply ignore the other parameters Addressing PS Data Table...

Страница 129: ...tion Set Reference Manual Using the High Speed Counter and Programmable Limit Switch 5 33 2 Right click on Data Table of XGPC and select New menu 3 Select PS Programmable Limit Switch in the Data Table Type menu ...

Страница 130: ...mit Switch 4 Enter the number of the Data Table Number Max 1535 and Elements Max 1535 Description is optional 5 Then enter the number of Elements The number of Elements means the number of steps of the Programmable Limit Switch In this example No 4 is entered Click OK button after complete ...

Страница 131: ...it Switch 5 35 6 You can see the PS data table created before is assigned to 12 and added on the project window as below 7 Double click the new PS data table and see the contents The Elements is set to 4 on the above step 4 elements from PS12 0 to PS12 3 are created in the screen below ...

Страница 132: ...0 1500 and 2000 as HighPreset value 9 Specifies the SFR Special Function Register for inter working with HSC and double click the Special Function Register in the Project window 10 Specifies the HSC in the HSC of the Special Function Table Set the HSC Mode 0 and PlsTableNumber 12 PS table number that is set before ...

Страница 133: ...Switch 5 37 11 When the HSC accumulator value reaches to 500 specified to the HighPrest of the first PS If you use OutputHighData value and HighPresetMask it outputs the result value that masked value and logical ANDed value This behavior is repeated every 500 1000 1500 and 20004 intervals ...

Страница 134: ...X8 Instruction Set Reference Manual 5 38 Using the High Speed Counter and Programmable Limit Switch ...

Страница 135: ... high speed outputs of the X8 Series PLC This chapter organized as follows Topic Page Introduction 6 1 PTO Pulse Train Output 6 2 Pulse Train Output Function 6 2 SFR Special Function Register PTO Sub Elements 6 5 PWM Pulse Width Modulation 6 17 PWM Function 6 17 PWM Data Table 6 17 PWM Data Table Elements Summary 6 19 ...

Страница 136: ...le CPU and cannot be used as an External expansion I O Instruction Type output Pulse Train Output Function The X8 Series PLC supports four high speed output ports These output ports can be used as standard output ports or individually configured for PTO or PWM operation The PTO functionality allows a simple motion control or pulse output The pulse profile has four primary components Output port nu...

Страница 137: ... AcceleratingStatsu flag shows the PTO status is set and current frequency is displayed in the OperationFrequencyStatus Currently generated pulse numbers are displayed in the OutpulPulsesProduced During the pulse is output based on the pulse number defined in the AccelDecelPulses the OperationFrequencyStatus frequency reaches to the OutputFrequency When the RunStatus is set after acceleration phas...

Страница 138: ...utput cannot be change in Online The EnableHardStop bit must be off The JogPulse bit must be off The NormalOperationStatus bit must be off The charts in the following examples illustrate the typical timing sequence behavior of a PTO instruction The stages listed in each chart have nothing to do with controller scan time They simply illustrate a sequence of events In actuality the controller may ha...

Страница 139: ...O 0 Address and sub element Data Format Range User Program Access Contorl PTO 0 Output Word INT 2 4 Read Only PTO 0 RampProfile Bit 0 or 1 Read Write PTO 0 ControlStop Bit 0 or 1 Read Write PTO 0 AccelDecelPulsesIndependent Bit 0 or 1 Read Write PTO 0 JogPulse Bit 0 or 1 Read Write PTO 0 JogContinuous Bit 0 or 1 Read Write PTO 0 EnableHardStop Bit 0 or 1 Read Write PTO 0 OutputFrequency long word ...

Страница 140: ...us Bit 0 or 1 Read Only PTO 0 AcceleratingStatus Bit 0 or 1 Read Only PTO 0 IdleStatus Bit 0 or 1 Read Only PTO 0 ErrorDetectedStatus Bit 0 or 1 Read Only PTO 0 NormalOperationStatus Bit 0 or 1 Read Only PTO 0 JogPulseStatus Bit 0 or 1 Read Only PTO 0 JogContinuousStatus Bit 0 or 1 Read Only PTO 0 EnableStatus Bit 0 or 1 Read Only PTO 0 OperationFrequencyStatus long word 0 100 000 Read Only PTO 0 ...

Страница 141: ...ration phase or the run phase PTO 0 RunStatus The PTO 0 RunStatus bit is set when the PTO instruction is within the run phase It is cleard when the PTO instruction is within the acceleration or deceleration phase PTO 0 AcceleratingStatus Address Data Format HSC Mode Function User Program Access PTO 0 Done Bit 0 or 1 Status Read Only Address Data Format HSC Mode Function User Program Access PTO 0 D...

Страница 142: ... PTO is in an Idle state The Idle state is defined as the PTO is not running and no errors are present The PTO instruction must be in an Idle state before it is running the PTO 0 IdleStatus is used to check the PTO status before running PTO 0 ErrorDetectedStatus The PTO 0 ErrorDetectedStatus is set when the PTO is in an error state If an error state is detected the error is identified in the PTO 0...

Страница 143: ... sub system error when the PTO is stop by using this flag PTO 0 EnableStatus The PTO 0 EnableStatus flag is basic condition that can be operate the PTO instruction in the rung program As the example above the PTO instruction is enabed when the rung preceding the EN the PTO input terminial is false Address Data Format HSC Mode Function User Program Access PTO 0 NormalOperationStatus Bit 0 or 1 Stat...

Страница 144: ...rent PTO operation frequency PTO 0 TotalOutputPulses The PTO 0 TotalOutputPulses flag defines the total number of pulses to be generated for the pulse profile accel run decel inclusive PTO 0 OutputPulsesProduced Address Data Format HSC Mode Function User Program Access PTO 0 OutputFrequency Long Word 0 100 000 Control Read Write Address Data Format HSC Mode Function User Program Access PTO 0 Opera...

Страница 145: ... the number of pulse to the PTO 0 AccelDecelPulses However if the table number and element number are entered in the XGPC it is converted and entered automatically For example L12 0 L12 5 etc The element of the Long Integer data table to be used acceleration and deceleration profiles must be set to 4 In the figure below L12 data table is created and element is set to 4 There must be four long elem...

Страница 146: ...efines how many of the total pulses will be generate to each of the acceleration and deceleration phase When the PTO 0 AccelDecelPulsesIndependent is cleared the same number of the entered acceleration and deceleration pulse is used When the PTO 0 AccelDecelPulsesIndependent is set data table number instead of pulse number is entered Address Data Format HSC Mode Function User Program Access PTO 0 ...

Страница 147: ...this example the maximum value that could be used for accelerate decelerate is 6000 because if both accelerate and decelerate are 6000 the total number of pulses 12 000 The run component would be zero This profile would consist of an acceleration phase from 0 6000 At 6000 the output frequency is generated and immediately enters the deceleration phase 6000 12 000 At 12 000 the PTO operation would s...

Страница 148: ...edStop bit is set during the run phase the run phase completes and the PTO immediately enters the deceleration phase If the PTO 0 ControlledStop bit is set during the acceleration phase the acceleration phase completes and the PTO immediately enters the deceleration phase RU 7UDSH RLG PTO 0 OutputFrequency X 4 PTO 0 OutputFrequency 0 5 RU 6 XUYH 3URILOHV 0 999 X PTO 0 OutputFrequency X PTO 0 Outpu...

Страница 149: ...than zero or greater than 100 000 generates a PTO error PTO 0 JogPulse The PTO 0 JogPulse bit is used to instruct the PTO to generate a single pulse The width is defined by the PTO 0 JogFrequency in the PTO The PTO 0 JogFrequency flag is only possible under the following conditions PTO is in idle PTO 0 JogContinuous is not active PTO 0 EnableStatu is not active Address Data Format HSC Mode Functio...

Страница 150: ...se is truncated Jog Continuous operation is only possible under the following conditions PTO is in idle PTO 0 JogContinuous is 0 PTO 0 EnableStatus is 0 PTO 0 JogContinuousStatus The PTO 0 JogContinuousStatus flag shows current state when the PTO 0 JogContinuous bit generates continuous Jog Pulses Address Data Format HSC Mode Function User Program Access PTO 0 JogPulseStatus Bit 0 or 1 Status Read...

Страница 151: ...WM function allows a field device to be controlled by a PWM wave form The PWM profile has two primary components Frequency to be generated Duty Cycle interval PWM Data Table The PWM instruction along with the HSC and PTO functions are different than all other controller instructions Their operation is performed by custom circuitry that runs in parallel with the main system processor This is necess...

Страница 152: ...rallel system the status bits and other information are updated each time the PWM instruction is scanned while it is running If the scan time is longer it can be problem of the PTO and PWM data update it can be controlled by the STI Selectable Timed Interrupt that can be set in SFR The PWM output ports supported by the X8 Series PLC is allocated to have Y0 0 2 Y0 0 3 and Y0 0 4 The element is show...

Страница 153: ... Write PWM 0 OutputFrequency long word 0 40 000 Read Write PWM 0 DutyCycle Word 0 1 000 Read Write PWM 0 AccelDecelDelay Word 0 32767 Read Write Status PTO 0 ErrorCode Word INT 2 7 Read Only PTO 0 Done Bit 0 or 1 Read Only PWM 0 ErrorCode Word INT 2 5 Read Only PWM 0 DeceleratingStatus Bit 0 or 1 Read Only PWM 0 RunStatus Bit 0 or 1 Read Only PWM 0 AcceleratingStatus Bit 0 or 1 Read Only PWM 0 Idl...

Страница 154: ...e run phase immediately Stop the run phase Whenever the PWM 0 EnableHardStop is set Normal run state Whenever the PWM 0 EnableHardStop is cleared PWM 0 OutputFrequency Output Embedded Output Port 1 PTO 0 Output 2 Y0 0 2 2 PTO 0 Output 3 Y0 0 3 3 PTO 0 Output 4 Y0 0 4 Address Data Format HSC Mode Function User Program Access PWM 0 ProfileParameterSelect Bit 0 or 1 Status Read Only Address Data Form...

Страница 155: ...m PWM 0 AccelDecelDelay The PWM 0 AccelDecelDelay is set the delay time within 10mS range when the frequency is generated from 0Hz to 20KHz and the value can be modified at any time Actual application point of the modified value is when the Rung is executed during the ladder program scanning PWM 0 ErrorCode The PWM 0 ErrorCode bit shows the error code when an error state is detected Address Data F...

Страница 156: ...hase Set 1 Whenever the PWM is within the run phase Cleared 0 whenever the PWN is not in the run phase PWM 0 IdleStatus The PWM 0 IdleStatus bit is set when the PWM is in the Idle state Set 1 Whenever the PWM is in the Idle state Cleared 0 Whenever the PWM is not in the Idle state Address Data Format HSC Mode Function User Program Access PWM 0 DeceleratingStatus Bit 0 or 1 Status Read Only Address...

Страница 157: ... statue with no PWM errors Set 1 Whenever the PWM is in the Acceleration deceleration and run statue with no PWM errors Cleared 0 Whenever the PWM is in its normal state PWM 0 EnableStatus The PWM 0 EnableStatus bit is input signal that enables the PWM execution If this bit set rung with PWM instruction is executed Address Data Format HSC Mode Function User Program Access PWM 0 ErrorDetectedStatus...

Страница 158: ...M is executed PWM 0 DutyCycleStatus The PWM 0 DutyCycleStatus bit shows the duty cycle feedback information that the PWM is executed Address Data Format HSC Mode Function User Program Access PWM 0 OperatingFrequency Status Long Word 0 100 000 Status Read Only Address Data Format HSC Mode Function User Program Access PWM 0 DutyCycleStatus Word 0 1000 Status Read Only ...

Страница 159: ...apter describes the X8 Series PLC relay type bit instructions This chapter organized as follows Topic Page Introduction 7 1 NOC Normal Open Contact NCC Normal Closed Contact 7 2 OUT Output Coil 7 3 SET Set Coil RST Reset Coil 7 4 EGR Edge Rsing 7 5 ONSR One Shot Rising ONSF One Shot Falling 7 6 ...

Страница 160: ...Instruction Type input This instruction is used to check TRUE or FALSE in various relay type bit instrucions Example Check Input Ouput Port Status Check Various flag status Instruction Description NOC Normally Open Contact NCC Normally Closed Contact OUT Output Coil SET Set Coil RST Reset Coil EGR Edge Rising ONSR One Short Rising ONSF One Shot Falling Addressed Bit NOC Instruction NCC Instruction...

Страница 161: ...tputs ON TRUE or OFF FALSE for relay type bit input result ON when the input rung condition become true OFF when the input rung condition become false OUT instructions are reset turned OFF when You enter to the program or remote program mode via XGPC TM9 0 Done B3 0 0 B3 0 0 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS ASCII RTC HSC PTO PWM STI EII B...

Страница 162: ...it while RST turns off a bit Since these are outputs once set or reset they remain set or reset regardless of the rung condition TIP A bit that is set within a subroutine using an OUT instruction remains set until the OUT is scanned again Parameter Data Table Function Files Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS ASCII RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLo...

Страница 163: ...e parameter Following table shows change of the data table of storage bit according to change of the rung state Parameter Data Table Function Files Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS ASCII RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Bit Rung Transition Storage Bit Rung State after Execution FALSE to TRUE ...

Страница 164: ...s Storage Bit this is the bit address that store the rung state from the previous scan Output Bit this is the bit address which is set based on a false to true ONSR or true to false ONSF rung transition To re activate the ONSR or ONSF instructions the rung must become TRUE or FALSE Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS ASCII RTC HSC PTO PWM ST...

Страница 165: ...ut bit data is remains for 1 scan you can apply the SET instruction like below ONSR EN ENO Output Bit B3 0 10 B3 0 4 Storage Bit B3 0 8 B3 0 4 ONSF EN ENO Output Bit B3 0 11 Storage Bit B3 0 9 B3 0 10 Y0 0 0 3 S B3 0 11 Y0 0 0 4 S Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indire...

Страница 166: ...X8 Instruction Set Reference Manual 7 8 Relay Type Bit Instructions ...

Страница 167: ...ructions are described This chapter organized as follows Topic Page Introduction 8 1 Timer Instructions Overview 8 2 TON Timer On Delay 8 5 TOF Timer Off Delay 8 5 TOR Retentive Timer On Delay 8 7 CLKR Read High Speed Clock Time 8 7 CLKC Compute Time Difference 8 8 How Counters Work 8 9 CTU Count Up CTD Count Down 8 12 RSTA Reset Accumulator 8 13 ...

Страница 168: ...alue the DONE status bit is set Accumulator This is the timer value that currently accumulated It represents elapsed time The accumulator data range is from 0 to 32767 Timers can be set to any one of three time bases The TimeBase 0 and TimeBase1 value in the table above is automatically set in the ladder program If the BASE value in the figure below is set to 0 001 the TimeBase 0 and TimeBase1valu...

Страница 169: ...le Bit Read Only Timer is enable Preset LongWord Read Write Preset Accumulator LongWord Read Write Accumulator ATTENTION Do not copy timer elements while the timer enable bit EN is set Timing could be inaccurate if the timer refers timer elements from outside since the timer uses an internal interrupt handling structurally TIP Use an RSTA Reset Accumulator instruction to reset a timer s accumulato...

Страница 170: ... skip over the rung containing a timer instruction while the timer is timing If the skip duration is within 2 5 seconds no time is lost if the skip duration exceeds 2 5 seconds an undetectable timing error occurs When using an instruction can effect to a timer such as subroutines a timer must be scanned at least every 2 5 seconds to prevent a timing error Parameter Data Table SFR Address Mode Addr...

Страница 171: ...ction Type output Use the TOF instruction to delay turning off an output The TOF instruction begins to count time base intervals when rung conditions become false As long as rung conditions remain false the timer increments its accumulator until the preset value is reached The accumulator is reset 0 when rung conditions go true regardless of whether the timer is timed out TOF timers are reset on p...

Страница 172: ...is cleared The Done bit is configured since the TOF timer is timing If the rung condition is false the TOF timer is timing After the timer is stop the Enable and Done bits are all cleared B3 0 14 TOF EN ENO Timer TM9 1 BASE 1 0 PRE 2 ACC 0 Enable Done B3 0 14 TOF EN ENO Timer TM9 2 BASE 1 0 PRE 50 ACC 14 Enable Done B3 0 14 TOF EN ENO Timer TM9 2 BASE 1 0 PRE 10 ACC 10 Enable Done ...

Страница 173: ...occurs When you return the PLC to the RUN or TEST mode or the rung conditions go true timing continues from the retained accumulated value TOR timers are retained through power cycles and mode changes CLKR Read High Speed Clock Time Instruction Type output The CLKR instruction is provides a high performance timestamp This 32 bit value increments every 10 μs after power up ATTENTION Because the RST...

Страница 174: ...ted Two input data should be same type Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immdiate Float Immediate Int32 Immediate Imt16 Bit Word LongWord Element Float Output CLKC EN ENO OUT F5 6 5 0 F5 4 Start 246641 0 F5 5 Stop 246646 0 Parameter Data Table SFR Address Mode A...

Страница 175: ...the counter status overflow bit is set 1 If the count goes below 2 147 483 647 the counter status underflow bit is set 1 The RSTA instruction is used to reset he counter Using the CTU and CTD Instructions To use counter instructions CTU and CTD the CT instruction in the data table is used Following shows the elements of the CT instruction TIP The counter continues to count when the accumulator is ...

Страница 176: ...reach to Preset value CT 10 0 CountDown This bit is set when counter is down by the CTD instruction Address Data Format HSC Mode Function User Program Access CT 10 0 Underflow Bit 0 or 1 Status Read Write Address Data Format HSC Mode Function User Program Access CT 10 0 Overflow Bit 0 or 1 Status Read Only Address Data Format HSC Mode Function User Program Access CT 10 0 Done Bit 0 or 1 Status Rea...

Страница 177: ...onditions go false to true the accumulator value is increasd in the CTU instruction and decreased in the CTD instruction The accumulator is retentive when the rung conditions is false and on power cycles Accumulator value can be reset only by the RSTA instruction Address Data Format HSC Mode Function User Program Access CT 10 0 CountUp Bit 0 or 1 Status Read Only Address Data Format HSC Mode Funct...

Страница 178: ...X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Counter Preset ACC TIP If the signal that makes rung conditions go false to true is coming from a field device this signal should be maintained to check rung status transition in case of that the width of ON OFF is less than the scan time CTU EN ENO Counte...

Страница 179: ...of each element Timer Element Couneter Element Contorl Element Accumulator 0 Accumulator 0 Position 0 Done 0 Overflow 0 Enable 0 TimerTiming 0 Underflow 0 Enable Unload 0 Enable 0 Done 0 Done 0 CountUp 0 Empty 0 CountDown 0 Error 0 Unload bit 0 RSTA CT10 0 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataL...

Страница 180: ...X8 Instruction Set Reference Manual 8 14 Timer and Counter Instructions ...

Страница 181: ...scribed This chapter organized as follows Topic Page Introduction 9 1 Using the Compare Instructions 9 2 EQ Compare for Equal NE Compare for Not Equal 9 3 GT Compare for Greater Than LT Compare for Less Than 9 4 GE Compare for Greater Than or Equal to LE COmpare for Less than or Equal to 9 5 EQM Mask Compare for Equal 9 6 LIM Limit Test 9 7 ...

Страница 182: ...ons Description EQ Compare for equal Compare whether two values are equal NE Compare for not equal Compare whether one value is not equal to a second value LT Compare for Less Than Compare whether one value is less than a second value LE Compare for Less Than or Equal Compare whether one value is less than or equal to a second value GT Compare for Greater Than Compare whether one value is greater ...

Страница 183: ...e value is not equal to a second value For example If the EQ instruction is IN1 1 and IN2 2 because the two sources are not equal output B3 1 5 bit state remains off If the EQ instruction is IN1 3 and IN2 4 because the two sources are not equal output B3 1 6 bit state becomes ON EQ and NE Instruction Operations Instruction Relationship of Source Values Resulting Rung State EQ A B TRUE A B FALSE NE...

Страница 184: ...ther Source B value is greater than Source A value For example If the GT instruction is IN1 1 and IN2 1 it compare whether IN 1 is greater than IN 2 Since the two sources are equal output B3 1 7 bit state remains OFF B3 1 6 NE EN ENO IN 1 N4 2 3 IN2 4 N4 3 GRT and LES Instruction Operation Instruction Relationship of Source Values Resulting Rung State GT A B TRUE A B FALSE LT A B FALSE A B TRUE GR...

Страница 185: ...ater Than or Equal to LE COmpare for Less than or Equal to Instruction Type input The GE instruction is used to compare whether Source A value is greater than or equal to Source B value The LE instruction is used to compare whether Source B value is greater than or equal to Source A value B3 1 7 GT EN ENO IN 1 N4 0 1 IN2 2 N4 1 B3 1 8 LT EN ENO IN 1 N4 2 3 IN2 4 N4 3 GE EN ENO IN 1 N4 0 1 IN 2 N4 ...

Страница 186: ... IN1 3 and IN2 4 it test whether IN 2 is greater than or equal to IN 1 Since the IN 2 is greater than the IN1 output B3 1 10 bit is remains ON EQM Mask Compare for Equal Instruction Type input GE and LE Instruction Operation Instruction Relationship of Source Values Resulting Rung State GEQ A B true A B false LEQ A B false A B true B3 1 9 GE EN ENO IN 1 N4 0 1 IN2 2 N4 1 B3 1 10 LE EN ENO IN 1 N4 ...

Страница 187: ...ese results are compared to each other IN1 240 0F0H AND MASK 0F0H F0H IN1 240 FF0H AND MASK 0F0H F0H Because the Mask value of the two sources are equal output B3 1 11 bit state remains ON LIM Limit Test Instruction Type input B3 1 11 EQM EN ENO IN 1 N4 0 240 MASK N4 4 00F0h IN2 4080 N4 2 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM S...

Страница 188: ... Instruction Operation Based on Low Limit Test and High Limit Values And Rung State Low Limit Input High Limit true Test Low Limit or Input High Limit false High Limit Input Low Limit false Test High Limit or Input Low Limit true B3 1 12 LIM EN ENO LOW N4 0 240 IN N4 1 4080 HIGH 4080 N4 2 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM S...

Страница 189: ...g the Math Instructions 10 2 Floating Point 10 4 ADD Add SUB Subtract 10 5 MUL Multiply DIV Divide 10 5 NEG Negate 10 6 CLR Clear 10 6 ABS Absolute Value 10 7 SCAL Scale with Slope 10 8 SCAP Scale with Parameters 10 8 SIN Sine 10 9 TAN Tangent 10 10 ASIN Arc Sine 10 11 ACOS Arc Cosine 10 11 ATAN Arc Tangent 10 12 RAD Degrees to Radians 10 13 LOG Base 10 Logarithm 10 14 POW X Power Y 10 15 CALC Cal...

Страница 190: ...t data format If the overflow bit is set the overflow shall be handled as follows by using Math SR2 14 bit of the SR2 elements Instructions Descriptions ADD Add two values SUB Subtract two values MUL Multiply two values DIV Divide one value by another NEG Change the sign CLR Set all bits of a word to zero clearer ABS Find the absolute value of the source value SQRT Find the square root of a value ...

Страница 191: ...erflow Trap This bit is set when the Overflow flag is set Because the Overflow flag can effect to the system this bit can be cleared forcedly on the ladder by the RST instruction SR2 0 0 Carry Flag This bit is set when the Carry flag is set SR2 0 1 Underflow Overflow Flag This bit is set when the result of a math instruction does not fit into the output target range SR2 0 2 Zero Flag This bit is s...

Страница 192: ... bits to the right of the LSB represent a value of exactly one half LSB the result is rounded up or down so that the LSB is an even number Floating Point Exception Values Input 1 Input 2 Output InteGer Integer Integer Integer Long Long Integer Float Float Long Integer Long Long Long Long Long Float Float Float Integer Float Float Long Float Float Float Float MSB LSB 31 30 29 23 22 21 20 19 2 1 0 S...

Страница 193: ...sed in floating point arithmetic For example most floating point devices given a invalid message and returns NaN value for operations about square root of negative ADD Add SUB Subtract Instruction Type Output ADD Use the ADD instruction to add one value to another value Source A Source B and place the sum in the Destination SUB Use the SUB instruction to subtract one value from another value Sourc...

Страница 194: ...e Instruction Type Output Use the NEG instruction to change the sign of the Source and place the result in the Destination CLR Clear Instruction Type Output Use the CLR instruction to set the specified data table to zero ABS Absolute Value Instruction Type Output The ABS instruction takes the absolute value of the Source and places it in the Destination If the signed result does not fit in Destina...

Страница 195: ...s reset If all of Destination is zero the Zero flag is set If Overflow is set the Overflow Trap flag is set It is set if the result is NAN or overrange If the MSB is set the Sign flag is set N 32 767 or 2 147 836 647 is stored N N If the SR2 2 14 Math Overflow Selection bit is clearEd 32 767 or 2 147 836 647 is output The Carry flag is set when the input is negative If all of Destination is zero t...

Страница 196: ... the left ladder number range is 4 20 and scaled output values are 10 10 when the value is 10 scaled value becomes 3 Convert 4 20mA input to 10V 10V output 6FDOHG 9DOXH QSXW 6ORSH RIIVHW Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Input 1 Rate Of...

Страница 197: ... output SIN Sine Instruction Type Output 6FDOHG 9DOXH Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Input Input Min Input Max Scaled Min Scaled Max Output SQR EN ENO IN N4 0 166 OUT N4 1 0 ...

Страница 198: ...ALL word ALL Long word ALL float or a combination These operands shall undergo a conversion to float The calculation of the source in float is then performed and the result is then cast to the data type of Destination Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immediate ...

Страница 199: ...tion to take the Arc Cosine of a number source in radians and store the result in radians in the destination Address Levels for the operands involved in the ACOS can be ALL word ALL Long word ALL float or a combination These operands shall undergo a conversion to float The calculation of the source in float is then performed and the result is then cast to the data type of Destination Source is alw...

Страница 200: ...type of Destination Destination data always greater than or equal to π 2 and less than or equal to π 2 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immediate Float Immediate Imt32 Immediate Imt16 Bit Word LongWord Element Float Input Output ATN EN ENO IN N4 0 166 OUT N4 1 ...

Страница 201: ...urce X π 180 DEG EN ENO IN N4 0 166 OUT N4 1 0 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immediate Float Immediate Imt32 Immediate Imt16 Bit Word LongWord Element Float Source Destination RAD EN ENO IN N4 19 5 OUT F5 0 0 08726646 Parameter Data Table SFR Address Mode Ad...

Страница 202: ...zero LN EN ENO IN N4 0 166 OUT N4 1 0 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immediate Float Immediate Imt32 Immediate Imt16 Bit Word LongWord Element Float Source Destination LOG EN ENO IN N4 0 166 OUT N4 1 0 Parameter Data Table SFR Address Mode Address Level Y X S...

Страница 203: ...truction through this when you use X8 Series PLC The following table shows the expressions POW EN ENO IN 1 N4 28 2 IN 2 N4 29 3 OUT N4 30 8 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Immediate Float Immediate Imt32 Immediate Imt16 Bit Word LongWord Element Float Source D...

Страница 204: ...ine TAN TAN Tangent ASIN ASIN Arc Sine ACOS ACOS Arc Cosine ATAN ATAN Arc Tangent AND AND Logical And OR OR Logical Inclusive Or XOR XOR Logical Exclusive Or NOT NOT Logical Not NEG NEG Negative LN LN NatuRal Log LOG LOG Base 10 Log ABS ABS Absolute Value DEG DEG Radians to Degrees RAD RAD Degrees to Radians POW POW X to the Power Y BCD BCD BIN to BCD BIN BIN BCD to BIN Instructions Sumbol Descrip...

Страница 205: ...X8 Instruction Set Reference Manual Math Instructions 10 17 ...

Страница 206: ...X8 Instruction Set Reference Manual 10 18 Math Instructions ...

Страница 207: ... Instructions Instruction In this chapter the X8 Series PLC conversion Instructions are described This chapter organized as follows Topic Page Instruction 11 1 DECD Decode 4 to 1 of 16 11 2 BIN Convert form Binary Coded Decimal BCD 11 4 GRAY Gray Code 11 5 ...

Страница 208: ...ource to a 4 bit value BIN Convert From Binary Coded Decimal Convert BCD source to decimal values TOD Convert to Binary Coded Decimal Converts the integer source value to BCD format and stores it in the destination GCD Gray Code Converts Gray code data Source to an integer value and stores it in the destination Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD ...

Страница 209: ...0 0 0 0 0 0 X 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 X 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 X 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 X 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 X 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 X 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 X 1 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 X 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 X 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X not used D...

Страница 210: ...0 0 0 1 1 0 X X X X X X X X X X 1 0 0 0 0 0 0 0 1 1 1 X X X X X X X X X 1 0 0 0 0 0 0 0 0 1 0 0 X X X X X X X X 1 0 0 0 0 0 0 0 0 0 1 0 1 X X X X X X X 1 0 0 0 0 0 0 0 0 0 1 0 1 0 X X X X X X 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 X X X X X 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 X X X X 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 X X X 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 X X 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 X 1 0 0 0 ...

Страница 211: ...rce Destination SR Address Flag Description SR2 0 0 Carry Flag always resets SR2 0 1 Overflow Flag sets if more than one bit in the source is set otherwise resets SR2 0 2 Zero Flag sets if result it zero otherwise resets SR2 0 3 Sign Flag always resets SR2 5 0 Overflow Trap sets if Overflow flag is set otherwise resets GRAY EN ENO IN N4 36 457 OUT N4 37 369 Parameter Data Table SFR Address Mode Ad...

Страница 212: ...X8 Instruction Set Reference Manual 11 6 Converion Instructions ...

Страница 213: ...12 Logical Instructions Introduction This chapter describes Logical Instructions of X8 Series PLC The chapter is organized as follows Topic Page Introduction 12 1 AND Bit Wise AND 12 3 OR Logical OR 12 3 XOR Exclusive OR 12 4 NOT Logical NOT 12 4 ...

Страница 214: ...OR operation XOR Exclusive OR Perform an Exclusive Or operation NOT Logical NOT Perform a NOT operation Math Status Bits With this Bit The Controller SR2 0 0 Carry Flag always resets SR2 0 1 Overflow Flag always resets SR2 0 2 Zero Flag sets if result it zero otherwise resets SR2 0 3 Sign Flag sets if result is negative MSB is set otherwise resets Parameter Data Table SFR Address Mode Address Leve...

Страница 215: ... means OR Logical OR Instruction Type output The OR instruction performs a logical OR of two sources and places the result in the destination Source 0 1 Source 0 0 0 1 0 1 Source 1 01C9H 0000 0001 1100 1001 Source 2 0171H 0000 0001 0111 0001 Destination 0000 0001 0100 0001 0141H AND EN ENO IN 1 N4 36 01C9h IN 2 OUT N4 38 0141h 0171h N4 37 Source 0 1 Source 0 0 1 1 1 1 OR EN ENO IN 1 N4 36 01C9h IN...

Страница 216: ...tion Type output The NOT instruction is used to invert the source bit by bit one s complement and then place the result in the destination Source 1 01C9H 0000 0001 1100 1001 Source 2 0171H 0000 0001 0111 0001 Destination 0000 0001 0100 0001 01F9H Source 0 1 Source 0 0 1 1 1 0 Source 1 01C9H 0000 0001 1100 1001 Source 2 0171H 0000 0001 0111 0001 Destination 0000 0001 0100 0001 00B8H XOR EN ENO IN 1...

Страница 217: ...X8 Instruction Set Reference Manual Logical Instructions 12 5 The above example means Source 0 1 1 0 Source 1 2555 00FFH 0000 0000 1111 1111 Destination 1111 1111 0000 0000 256 ...

Страница 218: ...X8 Instruction Set Reference Manual 12 6 Logical Instructions ...

Страница 219: ...t Reference Manual Chapter 13 Move Instructions Introduction This chapter describes move Instructions of X8 Series PLC The chapter is organized as follows Topic Page Introduction 13 1 MOV Move 13 2 MOVM Masked Move 13 3 ...

Страница 220: ...ation Specific InstrUcitons Instruction ESCRIPTION MOV Move Move the source value to the destination MOVM Masked Move Move data from a source location to a selected portion of the destination With this Bit The Controller SR2 0 0 Carry Flag always resets SR2 0 1 Overflow Flag sets when an overflow infinity or NAN not a number condition is detected otherwise resets SR2 0 2 Zero Flag sets if result i...

Страница 221: ...ble SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Destination Source 1 OOFFH 0000 0000 1111 1111 MASK 5555H 0101 0101 0101 0101 Destination 0000 0000 0101 0101 0055H 85 With this Bit The Controller SR2 0 0 Carry Flag always resets SR2 0 1 Overflow Flag always ...

Страница 222: ... Move Instructions Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Mask Destination ...

Страница 223: ... Data Table Instructions Introduction This chapter describes data table Instructions of X8 Series PLC The chapter is organized as follows Topic Page Introduction 14 1 FILT Fill Table 14 2 COPT Copy Table 14 4 SWAP Swap Word 14 4 COPW Copy Word 14 5 ...

Страница 224: ... instruction fills the N12 0 date with five source values from N12 1 The data range for the source is Word 32 768 32 767 LONG WORD 2 147 483 648 2 147 483 647 IEEE 754 32 bit The data length can range from Word 1 128 LONG WORD 1 64 3 Words 1 42 Instructions Description FILT Fill Table Move Source data to Destination data table COPT Copy Table After mask Source data copy to Destination data table S...

Страница 225: ...shows that the COPT instruction copies N12 0 N12 4 to N12 11 N12 15 The length limit is Word 1 128 LONG WORD 1 64 3 Word 1 42 String 1 3 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms IOS I O DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Length Destination COPT EN ENO IN N12 0 5 Length...

Страница 226: ...mber of words for a given length You can check the result of above example to the figures below Before After Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms IOS I O DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Length Destination SWAP EN ENO IN N12 16 3 Length ...

Страница 227: ...G WORD to INTEGER INTEGER to SFR PTO data table The length of data cannot exceed 128 words If the data exceed data table size or min or max value of each data table during execution the fault will be generated You can check the result of the above example to the figure below Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI...

Страница 228: ... Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms IOS I O DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Length Destination FFL EN ENO IN N4 10 FIFO N4 12 CTRL R6 0 LEN 34 EN DN POS 9 EM FFU EN ENO EN DN EM FIFO N4 12 CTRL R6 0 LEN 34 POS 9 OUT N4 11 ...

Страница 229: ...on This chapter describes Shift and FIFO LIFO instructions of the X8 Series PLC The chapter is organized as follows Topic Page Introduction 15 1 BSL Bit Shift Left BSR Bit Shift Righter 15 2 FIFOL FIFO QUEUE LOAD FIFOU FIFO QUEUE UNLOAD 15 4 LIFOL LIFO QUEUE LOAD LIFOU LIFO QUEUE UNLOAD 15 6 ...

Страница 230: ... at a time when the rung status is true BSR Bit Shift Right Load the spEcified BIT to MSB and shift right a bit array one bit at a time when the rung state is true FIFOL FIFO Queue Load Load the specified data to Queue when the rung state is true PUSH FIFOU FIFO Queue Unload Unload the data from the data table specified as Queue when the rung state is true POP LOFOL LIFO Queue Load Like Stack stor...

Страница 231: ...sult of above example to the figures below To bit shift specify B3 3 as data table and specify bit data as B3 4 0 to load Then the B3 3 Bit shift left and the 3 5 Bit shift right If the bit shift by the BSL or BSR instruction some values are unloaded from the bit array You can check the unloaded bit on the Unload flag of the CR data table Parameter Data Table SFR Address Mode Address Level Y X SR ...

Страница 232: ...e used to control the internal flag LENGTH data table size specified as QUEUE POS data location that is loaded first Pointer The FIFOU instruction use the following data type FIFO data table specified as QUEUE CTRL CR data table It the BSL instruction is in run state and used to control the internal flogs LENGTH bit length of the data table POS data location that is stored first when extracting da...

Страница 233: ...f the FIFOL instruction is in run state the N14 0 is stored to the POS in the QUEUE If the FIFOU instruction is in run state unload data from the POS in the QUEUE and stores the data to N4 12 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms IOS I O DLS DataLog Immediate Direct Indirect Bit Word LongWord Element IN...

Страница 234: ...te are used to control the internal flag LENGTH data table length specified as Stack POS Pointer location to load data Stack Pointer The LIFOU instruction uses the following data types OUT data output location unloaded from Stack LIFO data table specified as Stack CTRL CR data table if the FIFOL and FIFOU instructions are in run state are used to control the internal flags LENGTH data table length...

Страница 235: ... 11 is stored to the POS in the Stack area If the LIFOU instruction is in run state unload the data from the POS in the Stack area and then stores the data to N15 12 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms IOS I O DLS DataLog Immediate Direct Indirect Bit Word LongWord Element IN FIFO CTRL LENGTH POS OUT ...

Страница 236: ...X8 Instruction Set Reference Manual 15 8 Shift and FIFO LIFO Instructions ...

Страница 237: ...uencing Instructions Introduction This chapter describes sequencer instructions of the X8 Series PLC The chapter is organized as follows Topic Page Introduction 16 1 SEQIC Sequencer Input Compare 16 2 SEQO Sequencer OuTput 16 4 SEQL Sequencer Load 16 5 ...

Страница 238: ...pare IN data and masked source at the data table If the data are equal it sets Found flag in the CR data table specified as CTRL SEQO Sequencer Output If rung state is true data table value in the POS and masked value are logically ANDed then copy the data to the destination data table If copy is done Done flag in the data table specified CTRL is set SEQL Sequencer Load If rung state is true load ...

Страница 239: ...e data in the N19 10 N19 19 data table On above figure same data is in the N19 12 When the instruction detects them the FOUND flag in the CR data table will be set SEQO Sequencer OuTput Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Data Table MASK ...

Страница 240: ...one for a given length the DONE flag in the CR data table specified CTRL is set IMPORTANT Data table and Masked source data type must be same That is if the data table is an integer N Mask and IN must be integer N Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongW...

Страница 241: ...E flag in the CR data table specified CTRL is set IMPORTANT Data table and Masked source data type must be same That is if the data table is an integer N Mask and IN must be integer N SEQL EN ENO Data Table N20 20 IN N20 31 CTRL CR17 2 Length 10 POS 7 Enable Done Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DL...

Страница 242: ...X8 Instruction Set Reference Manual 16 6 Sequencing Instructions ...

Страница 243: ...program conTRol Instructions are described This chapter organized as follows Topic Page Introduction 17 1 JMP Jump to Label 17 2 LBL Lable 17 3 CALL Call Subroutine 17 3 SBR Subroutine 17 3 RET Return from Subroutine 17 4 SUSP Suspend 17 4 ENDT Temporary End 17 4 END End of Ladder Program 17 5 MCR Master ContrOl ReplY 17 5 ...

Страница 244: ...Call Subroutine Call the subroutine SBR Subroutine Label Indicate the beginning of a subroutine and should be paired with RET RET Return from Subroutine Used at the end of the subroutine and return to next instruction after call the subroutine SUSP Suspend Instruction for program debugging test and the PLC enters the IDLE state ENDT Temporary End Stop current program temporary The ENDT instruction...

Страница 245: ... output The CALL instruction is used to call a separate subroutine The NUM of the subroutine is the number of the subroutine on the XGPC To return from the subroutine during the ladder program execution use the RET instruction or use END instruction to return from subroutine after the CALL instruction is executed SBR Subroutine Instruction Type output The SBR instruction contains codes that is not...

Страница 246: ...gram debugging and system troubleshooting This instruction causes the processor to enter the suspend IDLE mode causing all outputs to be de energized The NUM data range is from 32768 to 32767 ENDT Temporary End Instruction Type output The ENDT instruction is used to end the ladder program execution temporary If this instruction enters RUN state mode during the ladder program execution the PLC abor...

Страница 247: ...uction works in pairs to control internal ladder program Rungs within the MCR zone are still scanned but scan time is reduced due to the false state of non retentive outputs The following example shows that when the start of an MCR rung Y0 0 02 in the box is output however when the end of the MCR rung the Y0 0 02 is not output even the RTC 0 Second 0 state is TRUE END MCR B18 0 5 MCR RCT 0 Second ...

Страница 248: ... 17 6 Program Control Instructions IMPORTANT If you start with MCR instruction must end with the MCR instruction You cannot nest one MCR within another Do not jump into an MCR zone to control logic of the program to be working correctly ...

Страница 249: ...Output Instructions Introduction This chapter the X8 Series PLC input and output Instructions are described This chapter organized as follows Topic Page Introduction 18 1 REFI Embedded Input Refresh 18 2 REFO Embedded Output Refresh 18 3 EOS End of Scan 18 3 ...

Страница 250: ... input port For above example If slot X1 0 1 word 1 of slot 0 in input is used Mask the masked value of the input data or data table contains constants or masked data Length This is the number of words to input Application Specific InstrUctIons Instruction Used To REFI Embedded Input Refresh Update input port state embedded CPU module immediately REFO Embedded Output Refresh Update output port sta...

Страница 251: ... EOS End of Scan Instruction Type output The EOS instruction updates IO read write and communications The EOS instruction is not required separate the input data because it executes all of ports in the PLC at the same time When the rung condition is in true updated all of IO ports and communication status The scan then resumes at the instruction following the REF instruction This instruction updat...

Страница 252: ...X8 Instruction Set Reference Manual 18 4 Input and Output Instructions ...

Страница 253: ...interrupts are described This chapter organized as follows Topic Page Introduction 19 1 What is an Interrupt 19 2 Priority of User Interrupts 19 4 Interrupt Type and Elements 19 5 PITS Programmable Interrupt Timer Start 19 13 INTD Interrupt Disable 19 13 INTE Interrupt Enable 19 15 INTF Interrupt Flush 19 15 ...

Страница 254: ...s at one point during the ladder program execution it suspends task it is currently performing then performs subroutines specified by SFR or ladder program according to the occurred interrupt type For example in the following figures when an interrupt occurs in the LadderProgramNumber if you input the subroutine number to perform it performs following defied subroutines Instruction Description INT...

Страница 255: ...interrupt service routine configuration window Example 2 EII External Input Interrupt interrupt service routine configuration window Example 3 HSC interrupt service routine configuration window Example 4 UFR User Fault Routine interrupt service routine configuration window ...

Страница 256: ...ultiple interrupts occur the interrupts are serviced based upon their individual priority The priorities from highest to lowest are Priority Interrupts 1 UFR User Fault Routine Interrupt 2 External Input Interrupt 0 3 External Input Interrupt 1 4 HSC Interrupt 0 HSC0 5 External Input Interrupt 2 6 External Input Interrupt 3 7 HSC Interrupt 1 HSC1 8 External Input Interrupt 4 9 HSC Interrupt 2 HSC2...

Страница 257: ...coverable Faults are caused by the user and may be recovered from by the UFR interrupt To clear the errors set the SR2 1 13 flag as reset value in the UFR service routine Non Recoverable Fault Non Recoverable Faults are covered after Power Cycle Power On Off External Input Interrupt EII The EII contains 8 of interrupts from EII 0 to 7 according to the priority It is supported X1 input port embedde...

Страница 258: ...erforms AutoStart The AutoStart control bit automatically sets the interrupt when the X8 Series PLC enters any executing mode Description Data Format HSC Mode Function User Program Access EII 0 LadderProgramNumber Word 6 1 535 Control Read Write Description Data Format HSC Mode Function User Program Access EII 0 UserInterruptEnable Bit 0 or 1 Control Read Write Description Data Format HSC Mode Fun...

Страница 259: ...rt signal is used For example it uses 0 3 among X1 0 0 X1 0 3 In case of X8 M16DDR ErrorCode The following table shows the error codes of EII Description Data Format HSC Mode Function User Program Access EII 0 EdgeSelect Bit 0 or 1 Control Read Write Description Data Format HSC Mode Function User Program Access EII 0 InputSelect Word 0 7 Control Read Write Description Data Format HSC Mode Function...

Страница 260: ...hat represents an EII interrupt is pending Error Code Descriptions 1 Invalid Program File Number The program file number is not 6 1535 or not exist 2 Invalid Input Selection The input port range is 0 1 2 3 4 5 6 7 3 Input Selection Overlap Each EII uses a different input since the EII cannot share the input Description Data Format HSC Mode Function User Program Access EII 0 UserInterruptExecuting ...

Страница 261: ...he EII configuration High Speed Counter HSC Interrupt The following figure shows HSC interrupts in the box among the SFR of the high speed counter The usage of the HSC interrupts are similar with EII Each elements are used to EII HSC and PTI similary Please refer to EII and PIT elements Description Data Format HSC Mode Function User Program Access EII 0 ErrorDetected Bit Status Read Only ...

Страница 262: ...Number The LadderProgramNumber control flag defines PIT interrupt service routine UserInterruptEnabled The UserInterruptEnabled bit is used to perform whether the LadderProgramNumber service routine allocated to PIT event Description Data Format HSC Mode Function User Program Access PIT 0 LadderProgramNumber Word 6 1 535 Control Read Write Description Data Format HSC Mode Function User Program Acc...

Страница 263: ... section and control the timer interrupt interval ErrorCode The following table shows the error codes of PIT Description Data Format HSC Mode Function User Program Access PIT 0 EventInterruptEnabled Bit 0 or 1 Control Read Write Description Data Format HSC Mode Function User Program Access PIT 0 AutoStart Bit 0 or 1 Control Read Write Description Data Format HSC Mode Function User Program Access P...

Страница 264: ...rrupt lost by this bit UserInterruptPending The UserInterruptPending is a status bit that represents an PIT interrupt is pending Error Code Descriptions 1 Invalid Program File Number The program file number is not 6 1535 or not exist Description Data Format HSC Mode Function User Program Access PIT 0 UserInterruptExecuting Bit Status Read Only Description Data Format HSC Mode Function User Program...

Страница 265: ...t the XGPC internal configration of the Programmable Interrupt through the PTI section of the SFR INTD Interrupt Disable Description Data Format HSC Mode Function User Program Access PIT 0 ErrorDetected Bit Status Read Only PITS EN ENO Time N21 0 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immedia...

Страница 266: ... EII 1 interrupt is disabled in the above example If you need to control 2 or more interrupts at the same time add above values and input them to the Interrupt Bits Select value Interrupt Bit hexadecimal EII 0 0 1H EII 1 1 2H EII 2 2 4H EII 3 3 8H EII 4 4 10H EII 5 5 20H EII 6 6 40H EII 7 7 80H HSC 0 16 10000H HSC 1 17 20000H HSC 2 18 40000H HSC 3 19 80000H HSC 4 20 100000H HSC 5 21 200000H PIT Ti...

Страница 267: ...If you need to control 2 or more interrupts at the same time add above values and input them to the Interrupt Bits Select value INTF Interrupt Flush Instruction Type output Interrupt Bit hexadecimal EII 0 0 1H EII 1 1 2H EII 2 2 4H EII 3 3 8H EII 4 4 10H EII 5 5 20H EII 6 6 40H EII 7 7 80H HSC 0 16 10000H HSC 1 17 20000H HSC 2 18 40000H HSC 3 19 80000H HSC 4 20 100000H HSC 5 21 200000H PIT Timer 3...

Страница 268: ...ontrol 2 or more interrupts at the same time add above values and input them to the Interrupt Bits Select value Interrupt Bit hexadecimal EII 0 0 1H EII 1 1 2H EII 2 2 4H EII 3 3 8H EII 4 4 10H EII 5 5 20H EII 6 6 40H EII 7 7 80H HSC 0 16 10000H HSC 1 17 20000H HSC 2 18 40000H HSC 3 19 80000H HSC 4 20 100000H HSC 5 21 200000H PIT Timer 31 80000000H ...

Страница 269: ...20 PID Control Introduction This chapter describes the X8 Series PLC Proportional Integral Derivative PID instructions This chapter organized as follows Topic Page Introduction 20 1 The PID Equation 20 2 PID Proportional Integral Derivative 20 3 ...

Страница 270: ...deviation Derivative Action D Action calculate proportional values to the size of deviation e y Detection e Deviation KP Proportional coefficient 0 01 327 67 TI Integral time 327 67 0 01 TD Derivative time 0 01 327 67 That is PID control is configured following three elements and the basic meaning of PID control is to find the optimal value considering past current and future data Integral Action ...

Страница 271: ...ble shows the each elements Total elements are described based on the data table PD22 IMPORTANT Analog module data and PID instruction parameter must be same It is recommended that you place the PID instruction on a rung without any conditional logic If conditional logic exists the Control Variable output remains at its last value and the CVP CV term and integral term are both cleared when the run...

Страница 272: ... Read Write PD22 0 LoopUpdatesTooFast Binary Bit 0 or 1 Status Read Write PD22 0 ComputeRateErrorTerm Binary Bit 0 or 1 control Read Write PD22 0 UpperOutputLimit Binary Bit 0 or 1 Status Read Write PD22 0 LowerOutputLimit Binary Bit 0 or 1 Status Read Write PD22 0 SetpointOutOfRange Binary Bit 0 or 1 Status Read Write PD22 0 ProcessOutOfRange Binary Bit 0 or 1 Status Read Write PD22 0 PidComplete...

Страница 273: ...CV value 1 Manual Mode The user air program controls the CV value ForwardReverseActing PD10 0 OutputLimitingEnabled Binary 1 Enable 0 Disable control Read Write PD10 0 ControlVariableHighLimit Word INT 1 100 control Read Write PD22 0 ControlVariableLowLimit Word INT 1 100 control Read Write Address Data Format Data Range Function User Program Access Description Data Format HSC Mode Function User P...

Страница 274: ...ation The ControlVariableHighLimit and ControlVariableLowLimit values are used for output limiting GainRangeSelection The GainRangeSelection bit sets the scale of the gain range value 0 Value 0 1 P Gain P Gain 10 D Gain D Gain 10 1 Value 0 01 P Gain P Gain 100 SetPointScalingEnabled 0 disable the Scale Description Data Format HSC Mode Function User Program Access PD 10 OutputLimitingEnabled Bit 0 ...

Страница 275: ... the setpoint by the value entered and is entered at the zero crossing of the process variable and the setpoint This means that the deadband is in effect only after the process variable enters the deadband and passes through the setpoint The valid range is 0 to the scaled maximum or 0 to 16 383 when no scaling exists Description Data Format HSC Mode Function User Program Access PD 10 LoopUpdateToo...

Страница 276: ...Time The Ti is I that is integral time for I Action of the PID control That is In above formula This part is a major parameter that is divided accumulated error in the integral time Ti Description Data Format HSC Mode Function User Program Access PD 10 Kc Word 0 32 767 Control Read Write TIP Gain output input Input to output ratio Pb 1 Gain 100 Constant that determines the size of the control devi...

Страница 277: ...er that is multiplied derivative value by derivative time Td The range is 0 327 67 min Generally Td is set to 1 2 of the Td LoopUpdateTime The LoopUpdateTime is PID operating cycle of the PID control The operating cycle is 0 01sec scaling Description Data Format HSC Mode Function User Program Access PD 10 Td Word 0 32 767 Control Read Write Description Data Format HSC Mode Function User Program Ac...

Страница 278: ...o compensate for disturbances that may affect the CV ScaledError The ScaledError is the difference between the process variable and the setpoint ErrorCode Description Data Format HSC Mode Function User Program Access PD 10 FeedForwardBias Word 16 383 16 383 Control Read Write Description Data Format HSC Mode Function User Program Access PD 10 ScaledError Word 32 767 32 767 Status Read Only Descrip...

Страница 279: ... Code Error Code Description 0x01 Kc Error 0x02 Ti Error 0x03 Td Error 0x04 Bias Error 0x05 Loop Update Error 0x11 CV Low Limit Error 0x12 CV High Limit Error 0x13 CV Low Limit greater than High Limit 0x21 Set Point Minimum greater than Maximum 0x31 Set Point out of range 0x41 Deadband Error ...

Страница 280: ...X8 Instruction Set Reference Manual 20 12 PID Control ...

Страница 281: ...TOI Convert ASCII String to Integer 21 3 ITOA Convert ASCII String to Integer 21 4 ACN ASCII String Concatenate 21 4 AHX ASCII String Extract 21 5 ASCH Searching String 21 6 ACMP Compare String 21 6 ARNL Number of Characters for Line 21 7 ARNC Number of Characters in Buffer 21 7 ACB Clear Buffer 21 9 AHS Handshake 21 10 ARC Read Characters 21 11 AWA Write String with Append 21 12 AW Write String 2...

Страница 282: ... the string data ASCH Search a string Search a specific string ACMP ASCII String Compare Compare two strings Instructions for ASCII communications Instructions Descriptions ARNL Number of Characters for Line Get the number of characters contains End of Line character in buffer ARNC Number of Characters in Buffer Get number of characters in buffer ACB ASCII Clear Buffer Clear sending and receiving ...

Страница 283: ...r converting only Therefore If you enter ST23 0 AA this instruction does not output any data since there is no numbers The data range is WORD 32 768 32 767 LONG OWRD 2 147 483 648 2 147 483 647 Error Code Descriptions 0 Success 2 Illegal parameter 3 Not supported 4 Channel is shutdown 5 Protocol contention 6 Transmit is in progress 7 CTS Signal lost 10 Source Control Data Table invalid 11 Source S...

Страница 284: ...on combines two strings For example Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source Destination ITOA EN ENO IN N25 1 OUT ST23 1 255 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM ST...

Страница 285: ...estination Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element Source 1 Source 2 Destination AEX EN ENO IN ST23 4 OUT ST23 5 N25 2 Index N25 3 N Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM ...

Страница 286: ...ng in ST23 5 starting at the Index for the string found in ST23 4 the position result is stored in 1 ACMP Compare String Instruction Type output ASCH EN ENO IN ST23 4 Result N25 5 N25 4 Index String Search ST23 3 0 B3 10 4 ASCH EN ENO IN ST23 4 Result N25 5 Index N25 4 String Search ST23 5 1 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PW...

Страница 287: ...The ARNL instruction gets number of characters include End Of Line in the buffer The result data gets from buffer is stored to POS or Position in the Control Data Table CR The parameters are CH serial port number 0 COM1 1 COM2 2 USB CTRL CR Control data table B3 10 5 ACMP EN ENO IN 1 ST23 4 IN2 ST23 5 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC ...

Страница 288: ...nfiguration in the Channel Configuration Settings should be set to ASCII BIN Following figure shows the Channel 1 configuration part If ARNL instruction is executed without Driver configuration Error 3 is generated Following ladder example reflects the CH 1 configuration B3 10 6 ARNL EN ENO CH 1 CTRL CR17 4 POS 0 Enable ERROR 00h Done Error ARNC EN ENO CH 2 CTRL CR17 1 POS Error 00h 30 Enable Done...

Страница 289: ...struction Type output The ABC instruction clears sending and receiving communications buffer The parameters are CH serial port number 0 COM1 1 COM2 2 USB RX CLR Yes or No TX CLR Yes or No IMPORTANT Driver configuration in the Channel Configuration Settings should be set to ASCII BIN Following figure shows the Channel 1 configuration part If ARNC instruction is executed without Driver configuration...

Страница 290: ...resets the RTS a value of 0 remains the RTS signal The following examples shows that the value of 2 in the AND Mask resets the RTS OR Mask sets the RTS control signal Bit 1 corresponds to the RTS a value of 2 in the OR Mask sets the RTS a value of 0 remains the RTS signal CTRL CR Control data table B3 11 0 ACB EN ENO CH RX CLR Yes TX CLR Yes 2 AHS EN ENO CH 0 AND Mask 0002h CTRL HS Bits Status 000...

Страница 291: ... not support Handshake Handshake control is only possible in ASCII BIN communications Other protocols are controlled in PLC autonomously Error Code Descriptions 0 Success 2 Illegal parameter 3 Not supported 4 Channel is shutdown 5 Protocol contention 6 Transmit is in progress 7 CTS Signal lost 10 Source Control Data Table invalid 11 Source String Length invalid 12 Request String Length invalid 13 ...

Страница 292: ... AWA Write String with Append Instruction Type output The AWA instruction adds two characters from the Channel Configuration and writes them to the port The default is CR 0DH and LF 0AH B3 11 2 ARC EN ENO CH 2 CTRL CR17 3 Length OUT ST23 6 43 Enable Done Error Error 00h POS 43 AWA EN ENO CH 2 CTRL ST23 6 Length 43 Enable Done Error Error 00h POS 45 IN CR17 6 ...

Страница 293: ...gth to write to port The output parameter is POS number of data complete write IMPORTANT It is set when the rung condition goes false to true If the rung condition is changed true to false during the AWA instruction is in run state the instruction complete the communication output Set the writing interval to more 0 5 seconds B3 11 3 AWA EN ENO CH 2 CTRL ST23 6 Length 43 Enable Done Error Error 00h...

Страница 294: ...ata table to write to destination CTRL CR Control data table Length data length to write to port The output parameter is POS number of data completing writing Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element CH IN CTRL AW EN ENO CH 2 CTRL ST23 6 Lengt...

Страница 295: ...run state the instruction complete the communication output Set the writing interval to more 0 5 seconds B3 11 4 AW EN ENO CH 2 CTRL ST23 6 Length 43 Enable Done Error Error 00h POS 43 IN CR17 7 Parameter Data Table SFR Address Mode Address Level Y X SR B TM CT CR N F ST A L MG PD RP PS RTC HSC PTO PWM STI EII BHI MMI CS Comms DLS DataLog Immediate Direct Indirect Bit Word LongWord Element CH IN C...

Страница 296: ...X8 Instruction Set Reference Manual 21 16 ASCII Instructions ...

Страница 297: ...ter 22 Communications Instructions Introduction This chapter describes the X8 Series PLC communications instructions This chapter organized as follows Topic Page Introduction 22 1 SVC Service Communication 22 2 MSG Message Communication 22 3 ...

Страница 298: ... To solve theses problems you can use the SVC instruction That is The SVC instruction is used to improve communications performance and throughput but also causes the ladder scan to be longer The input parameters are Channel Select serial port number 0 COM1 1 COM2 2 USB If you execute the SVC instruction for 2 or more ports at the same time logically ORed 3 ports and then substitute them The follo...

Страница 299: ...tatus 01 Modbus Input Status 02 Modbus Read Holding Registers 03 Modbus Read Input Registers 04 Modbus Write Single Coil 05 Modbus Write Single Register 06 Modbus Write Multiple Coils 0F Modbus Write Multiple Registers 10 PCCC PCCC 500CPU Read PCCC 500CPU Write PCCC 485CIF Read PCCC 485CIF Write PCCC PLC5 Read PCCC PLC5 Write NX Protocol NX Plus Read Bits 21 NX Plus Write Bits 22 B3 10 7 SVC EN EN...

Страница 300: ...n How to use the MSG instruction The MSG instruction is input parameter and needs MG data table Therfore the MG data table should be created Right click on the Data Tables menu to create new data table and select MG Message for Data Table Type Though the Data Table Number is 26 in the following figure use an unallocated number And set the number of internal Element 1 in the figure Default setting ...

Страница 301: ...et Master 1 Modbus Master 2 PCCC 3 CIP Generic 4 NX Plus Master Command The Command instruction is used to store the specified instruction code Address Data Format HSC Mode Function User Program Access MGn 0 Subtype Word 32 767 32 767 Status Read Only Address Data Format HSC Mode Function User Program Access MGn 0 Command Word 32 767 32 767 Status Read Only ...

Страница 302: ...uction stores the number of Data Byte to send When the subtype is Modbus Master of NX Plus it stores the number of Element Address Data Format HSC Mode Function User Program Access MGn 0 SuppElementInfo 0 2 Word 32 767 32 767 Status Read Only Address Data Format HSC Mode Function User Program Access MGn 0 ChannelNumber Word 32 767 32 767 Status Read Only Address Data Format HSC Mode Function User ...

Страница 303: ...essage bit is set an unconnected type message will be generated whenever that EtherNet IP MSG instruction is triggered Timeout Address Data Format HSC Mode Function User Program Access MGn 0 TargetDataTableInfo 0 4 Word 32 767 32 767 Status Read Only Address Data Format HSC Mode Function User Program Access MGn 0 BreakConnection Bit O or 1 Status Read Write Address Data Format HSC Mode Function Us...

Страница 304: ...led The enable conditions are when the command packet is built and put into one of the MSG buffers the request is put in the MSG queue You may clear this bit in order to re trigger a MSG instruction or set the ContinuousOperation to automatic execution There are two method to clear this bit Set the Done or Error bit in the MSG data table or use RST instruction to clear the Enable bit Address Data ...

Страница 305: ...EnabledWaiting When this bit is set the message is enabled and waiting for message transmission Error The Error bit is set when message transmission has failed Address Data Format HSC Mode Function User Program Access MGn 0 Range Bit O or 1 Status Read Only Address Data Format HSC Mode Function User Program Access MGn 0 EnabledWaiting Bit O or 1 Status Read Only Address Data Format HSC Mode Functi...

Страница 306: ...nd ErrorTimeout bit is set ErrorCode When this bit is set the error code is displayed to check ElapsedTIme This bit ise cleared when the message is enabled Address Data Format HSC Mode Function User Program Access MGn 0 Eone Bit O or 1 Status Read Only Address Data Format HSC Mode Function User Program Access MGn 0 Start Bit O or 1 Status Read Only Address Data Format HSC Mode Function User Progra...

Страница 307: ...tiongPathDataTable This word displays the Routing Path Data Table Elements specified by the MSG configuration The MSG instruction configuration process Configure the port and protocol to use Configure nod address of the target device and Local or Remote communication method Enter data table addresses of both sides Address Data Format HSC Mode Function User Program Access MGn 0 ErrorCount Word 32 7...

Страница 308: ...X8 Instruction Set Reference Manual 22 12 Communications Instructions ...

Страница 309: ...corrupted Non User 04 System Error Hardware Error Non User 05 System Error Firmware Error Non User 07 System Soft Faults 08 System Error Background User Program Integrity failed Non User 09 0A 0B 0C 0D 0E 0F Ladder Program Faults 10 Ladder Program Error Integrity check at start executing Non User 11 Ladder Program Error Ladder Memory currupted Non User 12 Ladder Program Error User Program Function...

Страница 310: ...s detected Non User 2B Ladder Program Error Invalid Word Address detected Non User 2C 2D 2E PIT Error See PIT Special Function Register for specific error code Recoverable 2F EII Error See EII Special Function Register for specific error code Recoverable Instruction Specific Faults 30 Instruction Error Unsupported Instruction detected Non User 31 Instruction Error Unsupported Operand Type detected...

Страница 311: ...tion Error Address Range Error in COPT COPW FILT instrucitons Recoverable 3F 40 Instruction Error Invalid Recipe number entered Recoverable 41 Instruction Error Invalid data write to RTC Recoverable 42 43 44 45 46 47 48 49 4A 4B 4C 4D HSC Error See HSC Special Function Register for specific error code Recoverable 4E PTO Error See PTO Special Function Register for specific error code Non User 4F PW...

Страница 312: ...Appendix A 4 System Error Code ...

Страница 313: ...Appendix B MSG Instruction Error Code MSG Instruction Error Code ...

Страница 314: ...ecause requested function is not available 06 Target node does not respond 07 Message retries exhausted 08 Local modem communication has been lost 09 Received a Master Link reset 01 21 for Ethernet Invalid Local IP address configured 02 Multi Hop messaging cannot route request 03 Maximum connections used no connections available 04 Invalid Target IP address or host name 05 Cannot communicate with ...

Страница 315: ...parameter send data size 11 Invalid parameter service code 12 Invalid parameter socket type 13 Invalid parameter server type 14 Invalid parameter type code 15 Invalid parameter family 16 Invalid parameter port 17 Invalid parameter address 18 Invalid parameter address length 19 Invalid parameter data length 1A Invalid parameter timeout 20 Socket error create 21 Socket error listen 22 Socket error b...

Страница 316: ...r disconnect 2B Socket error delete 30 Open connection timeout 31 Accept connection timeout 32 Read timeout 33 Write timeout 01 27 for SMTP SMTP mail server IP Address not configured 02 To destination Address not configured or invalid 03 From reply Address not configured or invalid 04 Unable to connect to SMTP mail server 05 Communication error with SMTP server 06 Authentication required 07 Authen...

Страница 317: ... 04 rw byte fnc is invalid 05 localAddr is not within user data space 06 numBytesRW is invalid 07 targetDataTable subele is invalid 08 localAddr numBytesRW 2 is invalid 09 PLC type not supported 0A subtype is invalid 0B Improper number of elements specified to adequately fill a set of larger elements 0C Protocol not supported on channel 0D Source target mismatch 0E Supplemental Routing Path Error ...

Страница 318: ...emote MSG not supported DH485 remote broadcast MSG not supported 09 Amount of data is too large to be supported by link layer or expansion I O communications module 00 62 Unexpected link layer error Network Layer Qualification Bad network address 01 71 Internet to Internet Remote MSG remote bridge non zero and the targetNode is not valid not within the range 0 254 02 Internet to NonInternet Remote...

Страница 319: ...05 Rejected SDN packet 06 Bad data type 07 Buffer format code mismatched 08 Service code mismatched 09 Modbus Write Reply bytes 2 5 don t match outgoing MSG 0A NX Plus Write with fail Application Layer Qualification MSG Timing Failures MSG Error Code Mapping Internal Fail Code Hex Description High byte Low byte Identifier Code Error Code group ...

Страница 320: ...mmand buffer 3 04 MSG waiting for reply MSG timed out waiting for target to reply command buffer 0 14 MSG waiting for reply MSG timed out waiting for target to reply command buffer 1 24 MSG waiting for reply MSG timed out waiting for target to reply command buffer 2 34 MSG waiting for reply MSG timed out waiting for target to reply command buffer 3 05 MSG waiting in transmit queue MSG timed out wh...

Страница 321: ...buffer 0 12 MSG was waiting for reply command buffer 1 22 MSG was waiting for reply command buffer 2 32 MSG was waiting for reply command buffer 3 03 MSG was on overflow queue 04 MSG was on transmit queue MSG Error Code Mapping Internal Fail Code Hex Description High byte Low byte Identifier Code Error Code group ...

Страница 322: ...Appendix B 10 MSG Instruction Error Code ...

Страница 323: ...2 J 106 6A 152 j K 11 0B 013 VT 43 2B 053 75 4B 113 K 107 6B 153 k L 12 0C 014 FF 44 2C 054 76 4C 114 L 108 6C 154 l M 13 0D 015 CR 45 2D 055 77 4D 115 M 109 6D 155 m N 14 0E 016 SO 46 2D 056 78 4E 116 N 110 6E 156 n O 15 0F 017 SI 47 2F 057 79 4F 117 O 111 6F 157 o P 16 10 020 SLE 48 30 060 0 80 50 120 P 112 70 160 p Q 17 11 021 DC1 49 31 061 1 81 51 121 Q 113 71 161 q R 18 12 022 DC2 50 32 062 2...

Страница 324: ...C 134 124 7C 174 29 1D 035 GS 61 3D 075 93 5D 135 125 7D 175 30 1E 036 RS 62 3E 076 94 5E 136 126 7E 176 _ 31 1F 037 US 63 3F 077 95 5F 137 _ 127 7F 177 DEL Column 1 Column 2 Column 3 Column 4 Ctrl DEC HEX OCT ASC DEC HEX OCT ASC DEC HEX OCT ASC DEC HEX OCT ASC ...

Страница 325: ...ASCII Character Set Appendix C 3 ...

Страница 326: ...Publication number X8 RM001A EN September 2012 ...

Страница 327: ...Copyright 2012 RS Automation Co Ltd All rights reserved ...

Отзывы: