NT21_Reference Manual (V069-E1-1) (986756), страница 83
Текст из файла (страница 83)
Use the Support Tool to set the following formula in a mathematical table.• Formula format:(x ! x) ! x• Result storage destination:Numeral memory table entry 0• Operands (from left):constant 2, D00000, constant 3• Calculation operators (from left): * and +2. Register a trend graph in the window that displays numeral memory tableentry 0.Suggestions• Multiple mathematical formulas can be set in the mathematical table to continuously execute multiple calculations. (Refer to 2-18 Mathematical Function onpage 279 for details.)• It is possible to notify the host of the calculation results by specifying a hostword or a numeral memory table entry that is allocated a host word for the result storage destination.• Logical operators and comparative operators can be used for the calculationoperators as well as arithmetic operators and bit operators.SectionExamples of Actual Applications of Memory Link5-25-2Examples of Actual Applications of Memory LinkSome examples that will give you an idea of how to actually apply the memorylink are presented below.• Switching screen by the operation at PT control areaPage 417• To know the event that a numeral/character string is input to PT Page 418The examples below give you the explanation centered on which commands aresent to apply the function and the method to use the responses returned from PT.For method on using programming language that is run at the host, refer to themanual of each programming language etc.
For details of commands used withmemory link, refer to Section 4 Using Memory Link.Switching screen by the operation at PT control areaSwitching screen by the operation at PT control area:Allocated word in PT control area: Wd 0100Example:HostPTCommandScreen No.
10Screen No. 15Use PT memory write command (sent from host to PT) for this case since it isnecessary to write new screen number to the first word in PT control area.• Command[ESC]WM80100000F[CR]1B574D3830313030303030460D(1)(3)(2)• Explanation1, 2, 3...1. Write attribute: Checksum absent, SET attribute (writing 1 word)2.
First word address written: Wd 0100Number of words written: Omitted, since the write attribute is as above.3. Data of written word:000FHScreen switch is executed by writing the screen number to the first word in PTcontrol area.In this example, screen is switched from screen No.10 to screen No.15.000F is specified in the example above since it is necessary to specify data ofwritten word in PT memory write command in binary.If Yes is set for the Response memory switch for the communication setting ofmemory link, the response indicated below is returned from PT after sendingcommand.
(If No is set, no responses will be returned.)417SectionExamples of Actual Applications of Memory Link5-2• Response[ESC]WM001F[CR]1B574D383031460D• ExplanationFormat of response is fixed.Hint• In the same way, by changing the status of PT control bit, buzzer can bebeeped or backlight ON/OFF status can be controlled from the host. See page52.• By writing the value in window control area, it is possible to control window(open/close/move). See page 65.• Use bit memory table write command to switch screens by the operation of bitmemory table entry. See page 380.To know the event that a numeral/character string is input to PTExample:HostPTProductionvolumeNo.
ofpartsNumeral data00010005Processed dataNumeral input and numeral display(Input production volume numberof required parts is calculated atthe hostThe returned result is displayed)When the numeral was input on PT, numeral input notify command (sent from PTto host) is issued from the PT. At the host, numeral data was taken out and processed, then it is written to the PT by the numeral memory table write command(sent from host to PT).1, 2, 3...1.
When numeral data is input on PT (numeral input notify command sent fromPT to host):• Command[ESC]SN01421B534E30313432(1)000000F03030303030304630(2)19[CR]31390D(3)418SectionExamples of Actual Applications of Memory Link5-2• Explanation• Numeral memory table entry number: 142• Input numeral:00000000F0H (240 in decimal)• Checksum:19HIt is ascertained that 240 is input to numeral memory table entry 142.
With numeral input notify command, input numeral data is expressed as binary. Here,input data (240) is expressed as binary (000000F0H).2. When numeral is written to PT (numeral memory table write command (sentfrom host to PT) )• Command[ESC]WN801421B574E3830313432(1)(2)000004B0[CR]30303030303442300D(3)• Explanation• Checksum present/absent:• First numeral memory table entry written:• Data of written numeral memory table entry:None (writing 1 word)142000004B0H(1200 in decimal)In this way, numeral data that is input from the PT is processed at the host andthe result is notified to the PT.Suggestions• Same as numeral, character string input notify command (sent from PT tohost) is issued from the PT for the character string that is input at PT.
(See page393.)• Character string that is input from bar code reader is also notified to the host.(See page 210.)• Data of numeral/character string memory table entry can be cleared bymemory table clear command. (Numerals are cleared to 0, and characterstrings are cleared to the space code 20 H.) (See pages 388 and 389.)419SECTION 6Troubleshooting and MaintenanceThis section describes the action to take when PT errors occur.6-16-2Troubleshooting . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Responding to Displayed Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6-2-1 Errors Occurring at Start of Operation and Their Remedies . . . . . . . . . . . . . .
. . .6-2-2 Errors Occurring during Operation and Their Remedies . . . . . . . . . . . . . . . . . . .6-2-3 Errors Occurring on Screen Data Initialization and Transmission . . . . . . . . . . . .6-2-4 Errors in the System Installer Mode and Their Remedies . . . . . . .
. . . . . . . . . . . .6-2-5 Communication Errors and Their Remedies . . . . . . . . . . . . . . . . . . . . . . . . . . . . .422427427429430431432421SectionTroubleshooting6-16-1TroubleshootingWhen a fault relating to the operation of the PT occurs, find the symptoms in thetable below and respond by following the corresponding Remedy indicated inthe table.PT SymptomsNT31/NT31C orNT631/NT631C:Power indicator fails tocome ONNT21NT21:Nothing is displayed onthe screen.Nothing is displayed ontthee sceescreen.Cannot communicate withthe Support ToolCannot communicate withthe hostCannot switch from thesystem initializing screen.Communication errormessage is displayedwhen communicating tothe host.The buzzer has soundedand the RUN indicator isOFF.The touch panel does notrespond.The PC mode haschanged to MONITORmode.422CauseRemedyPower is not being supplied.Check the connections and make sure that power issupplied correctly.
(Refer to Power SupplyConnection in section 3 in the Setup Manual.)Power supply fuse has blown.Contact your nearest OMRON representative.Screen No. 0 has been read at thehost side.This is not an error. Change the screen number.(3-3 Screen Display and Notification, page 299)The system startup waiting time hasnot elapsed yet.This is not an error. The display will appear after thewaiting time has elapsed.The Transmit mode has not beenestablished.Display the System Menu and select the Transmitmode. (Refer to Transmitting the Screen Data insection 6 in the Setup Manual.)Not connected to the Support Tool.Check the installation of the connector cable.
(Referto Connecting to the Support Tool in section 3 in theSetup Manual.)The PT model setting and directconnection setting at the SupportTool do not match the NT21,NT31/NT31C, or NT631/NT631C.Using the PT Configuration settings of the SupportTool, set the PT model and direct connectionsettings that match the NT21, NT31/NT31C, orNT631/NT631C.Memory switch settings do notmatch.Check the communication setting in the MemorySwitch menu of the Maintenance mode, and matchthe communication protocol settings for the host andPT.
(Refer to Setting the Conditions forCommunications with the Host by Using theMemory Switches in section 6 in the Setup Manual.)PT and host are not correctlyconnected.Check that the type, length, and installation of theconnector cable match the specifications. (Refer tosection 4 and section 5 in the Setup Manual.)In an RS-422A/485 connection, theterminator setting is incorrect.Set the terminating resistance correctly for the PTs,PCs, and RS-232C/RS-422A Adapters. Section 5 inthe Setup Manual.)In an NT link (1:N) connection, thereis duplication in the unit numbers.Make the settings again so that there is noduplication. (Refer to Setting the NT Link (1:N)Method in section 6 in the Setup Manual.)The power to the PT, NT-AL001 orhost is OFF.Check the power supply.Malfunction due to external noiseCarry out grounding work in accordance with theconditions.
(Refer to Grounding in section 3 in theSetup Manual.)The PT has developed trouble.Contact your nearest OMRON representative.Malfunction due to external noiseCarry out grounding work in accordance with theconditions. (Refer to Grounding in section 3 in theSetup Manual.)The touch panel is broken.Test the touch panel with I/O Check in theMAINTENANCE MODE menu. If there is an error,contact your nearest OMRON representative.The PT changes the mode whenhost link communication is used.This is an PT specification. When using a PC thatcan also be connected using the NT link method,use an NT link connection (there is no mode changewith the NT link method).SectionTroubleshootingPT SymptomsCause6-1RemedyThe graph display doesnot change.One of the percentage displaysettings — –100%, 0%, or 100% —is incorrect.Set the –100%, 0%, and 100% values in thefollowing relationship:–100% value < 0% value < 100% valueThe trend graph displaydoes not agree with theactual time axis.The cycle for graph display updateprocessing is longer than the setsampling cycle.Delete other elements on the same screen as thetrend graph that are allocated words in the host andhave a high update frequency.
Or lengthen thesampling cycle.The ProgrammingConsole function cannotbe used.The communication settings areincorrect.Set the communication method/communication portas follows when using the Programming Consolefunction:- With C-series PC: 1:1 NT Link- With CS/CJ-series PC: 1:N NT LinkA Programming Console isconnected.With all PCs except for the CS/CJ-series PCs, it isnot possible to use a Programming Console and theProgramming Console function at the same time.Disconnect the Programming Console.The PC does not support theProgramming Console function.Not all PCs support the Programming Consolefunction.
Check the model of PC you are using.(Refer to Programming Console Function in section6 in the Setup Manual.)The system program for othervendor’s PCs has been installed.(PC models other than OMRON.)The Programming Console function can be usedonly when the system program for OMRON PCs isinstalled.