Simulating projects 1 SIMATIC RFID-Systems Compact Operating Instructions 06/2010 A5E01074276-03
Legal information Legal information Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger. DANGER indicates that death or severe personal injury will result if proper precautions are not taken. WARNING indicates that death or severe personal injury may result if proper precautions are not taken. CAUTION with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken. CAUTION without a safety alert symbol, indicates that property damage can result if proper precautions are not taken. NOTICE indicates that an unintended result or situation can occur if the corresponding information is not taken into account. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage. Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation for the specific task, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems. Proper use of Siemens products Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be adhered to. The information in the relevant documentation must be observed. Trademarks All names identified by are registered trademarks of the Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner. Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions. Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY A5E01074276-03 P 07/2010 Copyright Siemens AG 2010. Technical data subject to change
Table of contents 1 Simulating projects... 5 1.1 Overview...5 1.2 Calling the simulator...5...7 1.3.1 Operation...7 1.3.2 Tag jobs...9 1.3.3 I/O jobs...11 1.3.4 Starting simulation...13 1.3.5 Application examples...13 Index... 17 Compact Operating Instructions, 06/2010, A5E01074276-03 3
Table of contents 4 Compact Operating Instructions, 06/2010, A5E01074276-03
1 1.1 Overview The RF-MANAGER is supplied a simulator which you can use to test the essential components of the RFID project. The simulator is a separate application. You can use the simulator to simulate operation of the readers used in your projects by means of predefined tag events on the runtime system. The tag events are created in a simulation table. Tag IDs can be defined simply and conveniently in this table. It is also possible to trigger several tag IDs simultaneously. You can also simulate reader inputs on the runtime system. The I/O events are also created in a simulation table. You can easily define the reader inputs and their conditions in this table. Simulated reader inputs can also be used to trigger tag events. 1.2 Calling the simulator Note Engineering System and Runtime System on the same PC The sequences of actions described below refer to scenarios in which the Engineering System and Runtime are installed on the same PC. If you operate the Engineering System and Runtime on different PCs, you will find the information on transferring and starting projects in the SIMATIC RF-MANAGER Configuration and Operating Manual. Call simulator using the RF-MANAGER 1. Start the RF-MANAGER Engineering System, either by clicking the desktop icon on the programming device or by selecting it from the Windows Start menu. 2. In the Engineering System, select the option "Open existing project". 3. Enter the path of the project to be simulated "*.rfid". Compact Operating Instructions, 06/2010, A5E01074276-03 5
1.2 Calling the simulator 4. Click "Open". The project opens. 5. Click on "Project / Generator / Start Runtime with simulator". As an alternative, you can click the button. The project is generated and the simulator is called. Note Simulation table The simulator is started with a new and blank simulation table when you initially simulate the project. The previously configured readers are already visible in the left window area of the simulation table. If you have already created a simulation table for your project, it will then be opened automatically. The simulation table "*.rfidsim" contains all the settings that you made for the simulation. These settings can be changed. 6 Compact Operating Instructions, 06/2010, A5E01074276-03
Calling the simulator as a stand-alone application You can also directly call the simulator from the Start menu, bypassing the ES. This requires that a project is available with the file extension ".rfidx" that has already been generated. 1. In the Windows Start menu, click "Start > SIMATIC > RF-MANAGER 2008 Runtime > RF- MANAGER 2008 Simulator. The simulator view will be displayed. 2. When you are simulating the project for the first time, click the button and call your "*.rfid" project. A new empty simulation table is started at the same time that displays the configured readers. If you have already created a simulation table "*.rfidsim" for your project, call this up via the button. Figure 1-1 Simulator: Complete application 1.3.1 Operation In the top simulation table, tag jobs are created for simulating tag events for each existing reader. In the bottom simulation table, I/O jobs are created for simulating reader inputs for each existing reader. Compact Operating Instructions, 06/2010, A5E01074276-03 7
The simulator is started with a two new and blank simulation tables when you initially simulate the project. The previously configured readers are already visible in the left window area of the simulation tables. Over-arching operator controls The functions of the buttons in the menu bar are as follows: Button Meaning Button Meaning Create a new simulation table for a Cut the selected tag/io jobs. previously generated project. Open an existing simulation table. Copy the selected tag/io jobs. Save the changes in the simulation table which is currently open. Start the project in the Runtime with use of the simulation table. Stop Runtime. Stop runtime and close the simulator view. Call this help. Insert the selected tag/io jobs. This is a cross-reader function. Insert a new tag job. Insert a new I/O job. Delete the selected tag/io jobs. 8 Compact Operating Instructions, 06/2010, A5E01074276-03
Edit the simulation tables In both simulation tables, you can select jobs with the <SHIFT> key or the <CTRL> key and the mouse more than once. In this manner, the functions can be applied to several jobs. The above-mentioned buttons as well as the shortcut menu for the right mouse button are available for this purpose. To highlight a job, click the button to the left of the ID of the assigned job. This marks the entire row. If you want to mark all the jobs, click on the gray rectangle without any text in the top lefthand corner. You can also copy all the settings of a reader. To do this, highlight the reader in the lefthand tree of the window and sect "Copy" in the shortcut menu. If you subsequently highlight another reader and select "Insert" in the shortcut menu, the entries of both simulation tables for these readers will be inserted. Note Deactivating readers If you remove the tick from the box next to a reader name using the mouse, all the tag jobs and I/O jobs connected to the reader will be deactivated. NOTICE No drag and drop Please note that the "Drag and drop" function is not supported when editing the simulation tables. NOTICE Multiple selection cannot be used across simulation tables Please note that functions that are applied to more than one selected job will only be effective in one simulation table. Only use multiple selection in one simulation table for this reason. 1.3.2 Tag jobs Creating tag jobs You can use the tag jobs simulation table to simulate operation of the readers used in your project using pre-defined tag events in the runtime system. To create tag jobs, you must click the appropriate reader in the left window area with the mouse - its name is then displayed against a colored background. You can then create new tag jobs for this reader via "Edit > Insert tag job". As an alternative, you can select the button. Compact Operating Instructions, 06/2010, A5E01074276-03 9
Parameters for tag jobs By double-clicking the respective field in the right window area, you can change the parameters of the tag job. The meanings of the parameters are as follows: Parameter Meaning Value range ID ID of tag job. This is automatically assigned by the application. - Name Name of tag job. This can be freely selected. 1 to 40 characters; the name can be freely selected but it must be unique. Active Activation of the tag job. This parameter can be used to halt execution of jobs. Reactivation starts the job from the beginning. Yes / No Tag ID Tag ID of tag job. This can be freely selected. The following entries are possible: Entry Meaning 0-9; A-F Fixed values? Random generation of a character 0-9; A-F for initial creation of a tag ID / initial starting of a job; does not change in subsequent generations * Random generation of a character 0-9; A-F whenever a tag ID is generated # Consecutive numbering is created. With # for one position, with ## for two positions, etc. The first number is generated randomly on initial generation / initial starting of a job. + Corresponds to # except the value is "0" for initial generation or initial starting of a job. Any length up to 100 characters; blanks are permitted for better clarity. 10 Compact Operating Instructions, 06/2010, A5E01074276-03
Parameter Meaning Value range Example: 31 23 34 56?? 23 ** ** 34 AB ## ##: A 96-bit (12-byte) long tag ID is generated. The first four bytes always have the same value (31 23 34 56). In the next byte (??), a random value is generated that remains constant following initial generation or initial starting of a job. This is followed by a byte with a fixed value (23). In the next two bytes, random values will be created for each generation. The last 2 bytes will be incremented from a randomly assigned number. e.g. first generation: 31 23 34 56 AB 23 DF 23 34 AB12 34 e.g. second generation: 31 23 34 56 AB 23 98 A1 34 AB 12 35 etc. Offset Delay until a job starts. 0 to 2147483647 milliseconds Application is appropriate when creating several jobs which are to be executed offset in time. ON time Interval which defines how long the tag of the corresponding job is 0 to 2147483647 milliseconds within the measuring range of the reader antenna (visibility). With non-cyclic jobs, this parameter is used to define the job duration. OFF time Interval which defines how long the tag of the corresponding job is 0 to 2147483647 milliseconds outside the measuring range of the reader antenna (invisibility). This parameter is only relevant with cyclic jobs. The cycle time is then the total of the On time and Off time. Cyclic Option for cyclic execution of the tag job. Yes / No When this is not selected, the job will only execute once per trigger event. Number Number of tags that should be created by a tag job. A number of 1 to 999 tags can be created with one tag job in accordance with this number and the wildcards entered in the tag ID. Trigger Selection of an input or continuous Continuous / Inport00 / Inport01 / Inport02 / Inport03 Conditions Trigger condition that determines when the input assigned under trigger should activate the tag job. Low/High/Falling/Rising Low/High: The tag job will only run as long as this trigger condition of the input is satisfied. This means that when the level of the reader input changes, the job will be interrupted. Falling/Rising: The tag job is activated once. 1.3.3 I/O jobs Creating I/O jobs Using the simulation table I/O jobs, you can simulate reader inputs with predefined time events on the runtime system. Compact Operating Instructions, 06/2010, A5E01074276-03 11
To create I/O jobs, you must click the appropriate reader in the left window area with the mouse - its name is then displayed against a colored background. You can then create new I/O jobs for this reader via "Edit > Insert I/O job". Alternatively, you can also select the button. Parameters for I/O jobs By double-clicking the respective field in the right window area, you can change the parameters of the I/O job. The meanings of the parameters are as follows: Parameter Meaning Value range ID ID of the reader input. This is automatically assigned by the application. Name Name of I/O job. This can be freely selected. 1 to 40 characters; the name can be freely selected but it must be unique. Active Activation of the I/O job. Yes/No This parameter can be used to halt execution of jobs. Reactivation starts the job from the beginning. Cyclic Option for cyclic execution of the I/O job. Yes / No If this is not activated, the job is only executed once. Input Selection of the input that should be simulated. Inport00 / Inport01 / Inport02 / Inport03 (depending on reader) Offset Delay time, until the job starts. Useful when several jobs are created that must execute at intervals. 0 to 4 billion milliseconds - 12 Compact Operating Instructions, 06/2010, A5E01074276-03
Parameter Meaning Value range On time Time interval that specifies how long the input is set to "High". 0 to 4 billion milliseconds Off time Time interval that specifies how long the input is set to "Low". 0 to 4 billion milliseconds More than one I/O job can act on an input. The jobs overlap in this case. Complex signal sequences can be implemented in this way. Note No simulation of reader-internal RF670R functions Please note that reader-internal functions of the RF670R cannot be simulated. 1.3.4 Starting simulation Starting simulation in Runtime When you have filled the simulation tables and have created tag jobs and I/O jobs in accordance with your requirements, click on the button. Simulation is then started in the runtime system based on the simulation tables. 1.3.5 Application examples You will find three typical application examples below that you can simulate using the simulator at runtime. Example 1: Simulation of a tag job If you want to simulate a tag job independently of a reader input, proceed as follows: 1. Create a new tag job for your reader. Use the "Offset" parameter to set a certain delay time. Assign a tag ID. Use the "On time" parameter to specify how long the tag is visible. 2. The "Trigger" parameter is set to "Continuous" and the trigger condition remains blank. 3. When all the parameters have been set, start the simulation in the runtime system based on the simulation tables using the button. The tag job will be simulated as follows: Figure 1-2 Continuous tag job simulation Compact Operating Instructions, 06/2010, A5E01074276-03 13
Example 2: Simulation of a pallet job with 16 tags To simulate processing of a pallet job with 16 tags, proceed as follows: 1. Create a tag job with a tag ID. In this tag ID, assign wildcards to represent randomly created positions in the tag ID. A wildcard is replaced by a hexadecimal number during simulation, so a wildcard can represent up to 16 tag IDs from "0" to "F". A tag job with the tag ID "123456*7" can generate the following tags: "12345607", "12345617", "12345627", "12345637", "12345647", "12345657", "12345667", "12345677", "12345687", "12345697", "123456A7", "123456B7", "123456C7", "123456D7", "123456E7", "123456F7". For further information about wildcards, see the section Tag jobs (Page 9). 2. Use the parameter "Number" to set the number of tags that you want to create in one step. Set it to 16 for this example. 3. When all the parameters have been set, start the simulation in the runtime system based on the simulation tables using the button. The 16 tag IDs are created automatically from a tag ID with the assigned wildcards. Example 3: Simulation of a tag job triggered via a reader input If you want to simulate a tag job via a reader input, proceed as follows: 1. In the bottom simulation table, create an I/O job for the reader input "InPort00". Use the created I/O jobs to define the properties of the reader inputs that you want to use to control your tag jobs. 2. Optional: In the bottom simulation table, create another I/O job for "InPort00" that differs from the previously created I/O job with regard to the "On time" parameter. If more than one I/O job is used on a reader, the I/O jobs will overlap at the reader input. This is shown in the diagram below: Figure 1-3 Simulation of a reader input with two I/O jobs 3. Create one or more tag jobs in the top simulation table, Use the "Trigger" parameter to select the reader input that should control your tag job. For this application example, select the reader input "InPort00" used in the I/O jobs, 4. Use the "Condition" parameter to specify when your tag job should be triggered. Select the "High" condition for this application example. 14 Compact Operating Instructions, 06/2010, A5E01074276-03
5. Use the "Offset" parameter to set a specific delay time, if required. 6. When all the parameters have been set, start the simulation in the runtime system based on the simulation tables using the button. The interaction between the reader input and the tag job is now simulated as follows: Figure 1-4 Timing diagram for tag job simulation When the reader input rises, this activates the trigger condition for the tag job. After the set delay time "Offset" has elapsed, the tag job also rises and the tag is visible for the antenna in the "On time" segment. When the reader input falls, this is the trigger for stopping the tag job. The tag is not visible to the antenna. Compact Operating Instructions, 06/2010, A5E01074276-03 15
16 Compact Operating Instructions, 06/2010, A5E01074276-03
Index A Application example Simulation of a pallet job with 16 tags, 14 Simulation of a tag job, 1314 Simulation of a tag job triggered via a reader input, 14 C Create I/O job, 12 Creating Tag job, 9 E Edit Simulation table, 9 I I/O job Create, 12 Parameter, 12 Calling as a stand-alone application, 7 Calling via RF-MANAGER, 5 Operator controls, 8 Start, 13 Usage, 8 Starting Simulator, 13 T Tag job Parameter, 10 Setting up, 9 U Use Simulator, 8 Wildcard, 14 W Wildcard Usage, 14 O Operator controls Simulator, 8 P Parameter I/O job, 12 Tag job, 10 S Simulation table Editing, 9 Simulation table for I/O jobs, 7, 11 Simulation table for tag jobs, 7, 9 Simulator Compact Operating Instructions, 06/2010, A5E01074276-03 17
Index 18 Compact Operating Instructions, 06/2010, A5E01074276-03