10
Twido Simulator - Online Help Scope This is the Online Help for the Twido Simulator. The Twido Simulator is a feature of TwidoSuite which allows you to test, run and a debug a program by simulating a connection between a PC and any Twido PLC, expansion module and option. What's in this Part? This part contains the following chapters: Twido Simulator © 2011 Schneider Electric. All rights reserved. Twido Simulator Overview This section explains how to use the Twido Simulator. Twido Simulator allows you: to simulate a connection between a PC and any Twido PLC, expansion module and option to run and test a program without a real Twido PLC, expansion module and option connected to your PC. What's in this Chapter? This chapter contains the following topics: How to Use Twido Simulator Twido Simulator Dashboard Twido Simulator Overview Window Time Management Panel Discrete Input Settings Analog Input Settings Outputs Tracing Tracing Configuration © 2011 Schneider Electric. All rights reserved. How to Use Twido Simulator Accessing Twido Simulator To access the Twido Simulator select Program → Program and click the Twido Simulator button at the bottom right of the TwidoSuite screen. Result: TwidoSuite switches automatically to Program → Debug → Animate the program. The Twido Simulator overview window appears. The Dashboard pops up. If an RTC is configured or embedded, the Time Management Panel is also displayed. See: Related Topics Submit Feedback NOTE: These windows are not resizable. Page 1 of 10 Twido Simulator - Online Help 10/27/2011 file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Twido Simulator

Embed Size (px)

Citation preview

Page 1: Twido Simulator

Twido Simulator - Online Help

ScopeThis is the Online Help for the Twido Simulator. The Twido Simulator is a feature of TwidoSuitewhich allows you to test, run and a debug a program by simulating a connection between a PCand any Twido PLC, expansion module and option.

What's in this Part?This part contains the following chapters: Twido Simulator

   

© 2011 Schneider Electric. All rights reserved.

Twido Simulator

OverviewThis section explains how to use the Twido Simulator.Twido Simulator allows you: to simulate a connection between a PC and any Twido PLC, expansion module and option to run and test a program without a real Twido PLC, expansion module and option connected

to your PC.

What's in this Chapter?This chapter contains the following topics: How to Use Twido Simulator Twido Simulator Dashboard Twido Simulator Overview Window Time Management Panel Discrete Input Settings Analog Input Settings Outputs Tracing Tracing Configuration

   

© 2011 Schneider Electric. All rights reserved.

How to Use Twido Simulator

Accessing Twido SimulatorTo access the Twido Simulator select Program → Program and click the Twido Simulator button

at the bottom right of the TwidoSuite screen.

Result: TwidoSuite switches automatically to Program → Debug → Animate the program. The Twido Simulator overview window appears. The Dashboard pops up. If an RTC is configured or embedded, the Time Management Panel is also displayed.

See: Related Topics Submit Feedback

NOTE: These windows are not resizable.

Page 1 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 2: Twido Simulator

Twido Simulator Hardware ConfigurationTwido Simulator Overview is loaded with the configuration created in the Describe screen.

Twido Simulator WindowsThere are several windows in the Twido Simulator: Twido Simulator Dashboard Twido Simulator Overview Window Time Management Panel Discrete Input Settings Analog Input Settings Outputs Tracing Tracing Configuration

Twido Simulator FunctionalitiesThe following functionalities are available in Twido Simulator: Animate the program Manage animation tables Check PLC Monitor hardware configuration Monitor software configuration Monitor described configuration Monitor the behavior

Stopping Twido SimulatorTo stop the Twido Simulator, click the button at the bottom right of the TwidoSuite screen.After stopping the simulation TwidoSuite returns to the screen displayed before starting TwidoSimulator.

Although the Twido Simulator is available with an invalid program, only a valid program can besimulated.For more information on how to validate a program, refer to Analyzing a Program in the TwidoSuiteProgramming Software Online Help.

NOTE: Network elements, Exchange Instruction (EXCH), PID, FC, VFC and PLS/PWM cannot besimulated.

NOTE: For more information concerning these features, refer to chapter Debugging Online UsingProgram Animation Tables in TwidoSuite Programming Software Online Help

NOTE: It is not possible to backup the Twido Simulator program before stopping.

© 2011 Schneider Electric. All rights reserved.

Twido Simulator Dashboard

OverviewYou can use the Twido Simulator dashboard to issue the following commands to the controller: Run (in simulate mode) Stop Initialize

Selecting Run (in Simulate Mode)/Stop/InitializeWhen the TwidoSuite application is in simulate mode, these commands can be selected from theTwido Simulator dashboard shown below:

See: Related Topics Submit Feedback

Page 2 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 3: Twido Simulator

Run (in Simulate Mode)

To RUN the program in simulate mode, click to execute the application. The simulated inputsare updated and data values are set according to the application instructions. This is the only statewhere the simulated outputs are updated.

Stop

Click to stop the execution of the program. The simulated inputs are updated and internaldata retains its last values. Simulated outputs are not updated in this state.

Initialize (Init)

Click to initialize the program. The simulated inputs are updated and data values are set totheir initial state. No simulated outputs are updated from this state.

LED DisplayRUN, ERR, and STAT LEDs are simulated in the Twido Simulator dashboard as they wouldappear on a connected base controller (for details about these LEDs, see the Twido HardwareReference Guide).The following are states of the simulated LEDs as they appear in the Twido Simulator dashboard.For RUN and ERR LEDs:

The operation of the STAT LED is defined by user logic.

Closing and Reopening Control Panel DashboardTo close the control panel dashboard:

To re-open the dashboard, click the button as shown below:

RUN LED ERR LED Description

OFF Flashing red No valid configuration in controller

Flashing green OFF Controller is stopped

ON green OFF Controller is running

Flashing green Flashing red Controller is halted

OFF ON red Detected system error. Must coldrestart

Page 3 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 4: Twido Simulator

Expanding DashboardTo expand/reduce the control panel dashboard, click as shown below

The dashboard is then expanded as shown below. It may be reduced again by clicking the sameexpansion/reduction button.

NOTE: The Current PLC scanning period must always be set to 0.

© 2011 Schneider Electric. All rights reserved.

Twido Simulator Overview Window

OverviewThe Twido simulator overview window shows the state of inputs/outputs of all the described basecontroller and expansion modules.The hardware configuration of the overview window is the same as the one in the Describewindow.

Structure of the Overview WindowThe overview window is shown below:

See: Related Topics Submit Feedback

Page 4 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 5: Twido Simulator

1. Click to minimize to tray. When the overview window is minimized, the Twido Simulator icon appears in the satus area (on the bottom right of your screen). Double click on this

icon to restore the overview window.2. Inputs states:

Click to set/reset the corresponding input Double click to open the discrete input settings window

3. Outputs states: double click to open the output tracing window4. Click to always toggle the overview window on top5. PWR LED: Indicates if the simulated PLC is powered up.6. RUN LED: Indicates the state of the simulated PLC, refer to the LED display table.7. ERR LED: Indicates the state of the simulated PLC, refer to the LED display table.8. STAT LED: The operation of the STAT LED is defined by user logic9. Base controller and expansion modules references

10. Expansion modules that cannot be simulated

Inputs/OutputsStates of Discrete I/O are defined by 2 different colors: Green: I/O set to 1. Gray: I/O set to 0.States of Analog I/O are defined by: "-": I/O not configured. Number: I/O current value.

Contextual MenuRight click on the Overview Window to expand the following contextual menu: Time Management...: Opens the Time Management panel. Output Tracing...: Opens the Output Tracing window.

Accessing Input SettingsTo access analog input settings, double click on the analog input LED.To access discrete input settings, double click on the discrete input LED.

© 2011 Schneider Electric. All rights reserved.

Time Management PanelSee: Related Topics Submit Feedback

Page 5 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 6: Twido Simulator

OverviewThe Time Management Panel allows to control the timing of the simulation (Action on the timemanagement panel modifies the RTC time accordingly and immediately), you can choose: The beginning and the end of the simulation To accelerate the simulation.

Accessing the Time Management PanelIf an RTC is configured or embedded, the Time Management Panel automatically pops up at thestart of the Twido Simulator.If the Time Management Panel is not present, right-click on the Overview Window and "SelectTime Management..." to make it appear.

Structure of the Time Management PanelThe Time Management Panel is shown below:

1. Beginning time: Time at the beginning of the simulation2. Stop at the end:

If this box is checked, then when end time is reached the simulator stops and awindow pops up with the following text: End Time Reached! PLC switches to STOPeven if you don’t click OK.

If this box is not checked the simulation stays in RUN mode.3. End time: Time at the end of the simulation4. A cursor indicates the current time progression.

You can move manually the cursor to set current time. If the current time is former to the beginning time then the cursor will go on "Beginning" If the current time is posterior to the end time then the cursor will go on "End".

5. Simulator status:

: Simulator in Stop mode : Simulator in Run mode : Simulator in fast forward : Simulator in fast rewind

6. Indicates the current time of the simulation7. Back to beginning time8. Fast rewind in time9. Fast forward in time

10. Go to the end time.11. Set the level of fast forward/rewind in time

NOTE: The default initial time of the simulation is the time of your PC.The default duration of the simulation is 7 days.

© 2011 Schneider Electric. All rights reserved.

Discrete Input Settings

Page 6 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 7: Twido Simulator

OverviewThe section below describes how to set discrete input.

Accessing the Discrete Input Settings WindowTo access the discrete input settings double-click on the discrete input LED.

Structure of the Discrete Input Settings WindowThe discrete input settings window displays all the discrete inputs of the chosen hardwareconfiguration as shown below:

Discrete Input Settings FieldThe discrete input settings fields displayed in the above figure are detailed in the following table:

The discrete input settings button displayed in the above figure are detailed in the following table:

See: Related Topics Submit Feedback

Field Possible Values Function

Inputs Input addresses Address of each discrete input

Set to 1/0 Check box selected or not. Selected inputs are set to 1 or 0.

Field Function

Set all to 1 Click this button to set all inputs to 1

Set all to 0 Click this button to set all inputs to 0

Cancel Click this button to discard all changes

OK Click this button to save all changes

Help Click this button to launch the Twido Simulator online help

© 2011 Schneider Electric. All rights reserved.

Page 7 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 8: Twido Simulator

Analog Input Settings

OverviewThe section below describes how to set analog input.

Accessing the Analog Input Settings WindowTo access the analog input settings double-click on the analog input LED.

Structure of the Analog Input Settings WindowThe analog input settings window displays all the analog inputs of the chosen hardwareconfiguration as shown below:

Analog Input Settings FieldThe analog input settings fields displayed in the above figure are detailed in the following table:

See: Related Topics Submit Feedback

Field Description

Inputs Address of each analog input

Change value field Displays the value of the corresponding variable according to theposition of the slide bar.Not available if the input is not configured

Change value slide bar Allows you to change the value of the selected analog input.Not available if the input is not configured

© 2011 Schneider Electric. All rights reserved.

Outputs TracingSee: Related Topics Submit Feedback

Page 8 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 9: Twido Simulator

OverviewThe outputs tracing window shows the variation of analog and discrete outputs over time.

Structure of the Outputs Tracing WindowThe outputs tracing window is shown below:

Analog Outputs TracingEvolution of analog output values are displayed on 74 sample points.

Discrete Outputs TracingEvolution of discrete output values are displayed on 74 sample points. The Scale of the analogdisplay is calculated from the analog historical value

Configuration of the Outputs TracingTo open the tracing configuration window click the configure button.

NOTE: Tracing can be affected if your PC has too many applications open.

© 2011 Schneider Electric. All rights reserved.

Tracing Configuration

OverviewThe section below describes how to set the tracing configuration.

Accessing the Tracing Configuration WindowTo access the tracing configuration window click on the Configure button of the outputs tracingwindow.

See: Related Topics Submit Feedback

Page 9 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm

Page 10: Twido Simulator

Structure of the Tracing Configuration WindowThe tracing configuration window is shown below:

You can modify values for the Sample Interval by either selecting a value from the drop-down listor by entering your own value.

Tracing Configuration FieldThe tracing configuration fields displayed in the above figure are detailed in the following table:

The tracing configuration buttons displayed in the above figure are detailed in the following table:

NOTE: The maximum number of configurable outputs is 8.

Field Possible Values Function

Select Check box selected or not Selected outputs are displayed on theoutput tracing window

Outputs Output addresses. Address of each discrete and analogoutput.

SamplingInterval

Drop down list.From 1 to 300s.

Sampling interval of the output tracinggraphic

Field Function

Help Click this button to launch the Twido Simulator online help

Cancel Click this button to discard all changes

OK Click this button to save all changes

© 2011 Schneider Electric. All rights reserved.

Page 10 of 10Twido Simulator - Online Help

10/27/2011file://C:\Documents and Settings\SESA109195\Local Settings\Temp\~hhAEC0.htm