Главная » Просмотр файлов » CX-Programmer User Manual

CX-Programmer User Manual (986752), страница 19

Файл №986752 CX-Programmer User Manual (Техническая документация) 19 страницаCX-Programmer User Manual (986752) страница 192015-07-23СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 19)

Select the OK pushbutton to accept thesettings or select the Cancel pushbutton to abort the operation.Refer to Chapter 5 - Advanced Topics for further information.Revision 2.0Page 89CHAPTER 4 – ReferenceOMRONData Trace/Time Chart MonitoringOnce a program has been downloaded into a PLC and is being executed, the program and any associateddata can be graphically traced providing an analytical tool for monitoring program performance.During the execution of a Data Trace, the PLC records the data values and holds them in an internalbuffer. When the trace is complete, the values are uploaded from the PLC and displayed on the screen.Select the Data Trace button from the toolbar or Time Chart Monitoring from the PLCmenu.

Refer to the CX-Server User Manual for further information.CX-Net Network Configuration ToolThe CX-Net Network Configuration tool provides procedures for establishing communications to PLCsfor direct and gateway connections. It allows the creation and editing of local and network RoutingTables, and the creation and editing of Data Link Tables.To open the CX-Net Network Configuration tool, select Network Configuration Tool from the Toolsmenu.Refer to the CX-Server User Manual for further information.IO TableThe IO table enables the map of racks and units needed by the PLC programs to be edited. It also allowsthe desired map to be compared with the actual map of the connected PLC when online. See the CXServer manual for details on editing the table.Some (usually smaller) PLCs do not have configurable IO, and so do not have an IO table.Once IO assignments have been made, affected addresses are shown prefixed in CX-Programmer’sprogram editors.

An ‘I: ’ prefix indicates that the address is mapped to an input unit. A ‘Q: ’ prefixindicates that the address is mapped to an output unit.Page 90Revision 2.0OMRONCHAPTER 5 – Advanced TopicsCHAPTER 5Advanced TopicsThis chapter discusses features and topics associated with CX-Programmer for use by advancedprogrammers.Writing More Maintainable ProgramsCX-Programmer contains features that allow better-documented, more maintainable programs to bedeveloped.

The following paragraphs discuss the topics associated with those features.SymbolsSymbols give readability to a program by adding a meaningful name and/or comment to an address orvalue.Symbols should be defined locally to a program and rarely at PLC global scope, unless it is necessaryto share an address between a PLC’s programs. Keeping symbols local means that the symbol set forthe program is as small and maintainable as possible, and stops modifications of one program fromaffecting others. Other benefits include the ability to easily cut/paste a program between PLCs orprojects, keeping the correct symbol set.It is possible to override the definition of a global symbol at local level, by redefining the symbol at thelocal level.

CX-Programmer gives a warning when performing a program check, but the practice isallowed.It may improve readability and maintainability by defining ‘work’ type addresses automatically. Anyaddress that is automatically assigned is indicated as such each time it is used. The allocation ofaddresses is controlled at the PLC level – CX-Programmer ensures that all addresses are unique withinthe assigned address range.Data TypesA symbol’s data type allows CX-Programmer to check correct usage of the address – for example, asymbol can indicate that an address is for Binary Coded Decimal encoded values. CX-Programmerchecks that the address is not used incorrectly in binary instructions.Although the CHANNEL data type is available for symbols, it does not give protection against incorrectencoding usage.

The CHANNEL data type is for use when the data within an address is of anindeterminate format. It can also be used to mark the start of an array.The NUMBER data-type makes it possible to create a symbol for a constant value, further helpingreadability.Revision 2.0Page 91CHAPTER 5 – Advanced TopicsOMRONCopying Information between ProjectsCX-Programmer can only open a single project at a time. However, it is possible to copy parts of theproject information to another project. To do this, it is necessary to have two CX-Programmerapplications running at the same time.Data that can be copied includes the following:♦PLCs;♦Programs;♦Symbol tables;♦Symbols;♦ Parts of a Ladder program.It is thus possible to integrate programs and information from several projects.

This is useful, forexample, where each person on a team is responsible for writing a single program. The personresponsible for integration can then copy each program produced, from its own project into a single PLCon the master project.Both cut/paste and drag/drop techniques can be used to copy data. For cut/paste, copy the data to theclipboard in one application, and paste into the other application.Note:When a program is pasted from one PLC type to another, it does not undergo programconversion. To correctly assemble programs from different PLC types, it is necessaryto first change the PLC types of the source programs to the target type before copying.Using CX-Programmer with Other ApplicationsCX-Programmer can be utilised effectively with other applications within the Microsoft Windowsenvironment.Converting ProjectsIt is possible to convert data from other applications to CX-Programmer.

A file conversion utility isprovided with CX-Programmer that allows files from other packages to be converted to a CXProgrammer project.The following procedure is not necessary for SYSWIN projects – they may be directly loaded fromwithin CX-Programmer.Use the following procedure to convert projects.1, 2, 3…Page 921.Activate the File Conversion Utility from the Start pushbutton on the MicrosoftWindows taskbar.2.Select Import from the File menu.

The Select Import File dialogue is displayed.3.Choose the file type that is to be imported in the Files of type field.Revision 2.0OMRONCHAPTER 5 – Advanced Topics4.Select the file that is to be converted from the File name field.5.Select the Open pushbutton to open the file. Select the Cancel pushbutton toabort the operation.The conversion process begins. Depending upon the file type chosen, messages or choices may appear.Follow the instructions on the screen.A CX-Programmer project is created, usually with the same name as the original file, but with the fileextension of ‘CXT’ (the text version of the CXP file type). This can be opened from within CXProgrammer as normal, ensuring that the Files of type field within the Open CX-Programmer Filedialogue is set to ‘CX-Programmer Text Files (*.cxt)’.It is possible to show details of the available converters by showing the File Conversion Utility’s Aboutdialogue.

This lists the converters – details of a converter can be displayed by selecting the Infopushbutton, after first selecting a converter.Sharing SymbolsCX-Programmer supports a mechanism for sharing symbol definitions with other, compliant applications.This could allow, for example, the symbols declared within CX-Programmer to be linked to a SCADApackage so that the definitions and changes of addresses are synchronised.Note:The sharing is not active – changes in the shared symbols are not instantly broadcastto the other applications.A CX-Server file is used as the medium for transferring symbol definitions between applications.Use the following procedure as an example of how particular symbols are linked between CXProgrammer and a fictional SCADA application AppX.1, 2, 3…Note:Revision 2.01.In CX-Programmer, create a new CX-Server file through the Project Propertiesdialogue.

This ‘.CDM’ type file will hold the definitions of all linked symbols.Refer to Chapter 3 Project Reference for further information.2.For each symbol required to be shared, set its Link the definition to the CX-Serverfile setting. Only global, named symbols can be shared.3.Save the project. At this time, the CX-Server file is created with a copy of thedefinitions of the shared symbols.4.In AppX, a similar process is followed, linking the CX-Server file to its CX-Serverproject file.

When the CX-Server project is then opened, the shared symbols areloaded into its symbol definitions.5.Whenever linked symbols are changed within CX-Programmer and the project issaved, the CX-Server file is updated. When AppX opens its CX-Server projectagain, its definition of the changed symbols is updated.The linkage between CX-Programmer and another application operates both ways. Itis possible for the other application to change the definitions of linked symbols, andto create them.

When CX-Programmer opens its project again, the ‘.CDM’ file ischecked for any changes made to the linked symbols within CX-Programmer.Page 93CHAPTER 5 – Advanced TopicsOMRONOptionally (depending upon the PLC Confirm Changes in Linked Global Symbolssetting), each change is indicated and confirmed. Any new symbols present in thelinked file are also read into the PLC’s global symbol table.CX-Programmer stores the necessary PLC definitions inside the CX-Server file as well as the linkedsymbols.

Therefore, the other application also has a PLC object of the same name in order to share theinformation.Note:When the name of a linked symbol is changed, the link to it in the other application islost. The name is used as the link between the definitions. The other applicationactually treats it as a new symbol. Similarly, if the PLC name is changed, the linkageto its symbols is lost.Importing and Exporting SymbolsCX-Programmer has the ability import and export symbol definitions to or from another package, suchas a spreadsheet. The information is transferred in a text format, so it is also possible to use a wordprocessor to define a set of symbols and use them within CX-Programmer.ExportingUse the following procedure to export a set of symbol definitions to a spreadsheet or word-processor:1, 2, 3…Note:1.Select a set of symbols in a symbol table, or select a complete symbol table fromthe project workspace.2.Perform a copy operation.3.Activate the other application.4.Perform a paste operation (this may be done differently according to theapplication, but is generally done using the Paste command under the Edit menu).For the paste to work successfully, it may be necessary to indicate to the otherapplication what the format of the data is.

See below for the format information.ImportingUse the following procedure to import a set of symbol definitions from a spreadsheet or word-processor:1, 2, 3…Note:Page 941.Select the information in the source application - ensure that it is of the correctformat (see Information Format below).2.Perform a copy operation.3.Activate CX-Programmer.4.Paste the information into the correct symbol table by either opening the table orpasting when a symbol table is selected in the project workspace.If errors are encountered in the information when pasting symbols, a dialogue is shownwhich allows the information to be modified. This dialogue lists all symbols in theRevision 2.0OMRONCHAPTER 5 – Advanced Topicsinformation that contain errors (i.e. Symbol with invalid names or invalid addresses).Each symbol may be modified or removed from the list before retrying the operation.Information FormatThe information is a comma separated list of text.

Характеристики

Тип файла
PDF-файл
Размер
1,15 Mb
Тип материала
Высшее учебное заведение

Список файлов учебной работы

Свежие статьи
Популярно сейчас
А знаете ли Вы, что из года в год задания практически не меняются? Математика, преподаваемая в учебных заведениях, никак не менялась минимум 30 лет. Найдите нужный учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6392
Авторов
на СтудИзбе
307
Средний доход
с одного платного файла
Обучение Подробнее