Вы находитесь на странице: 1из 24

Automation Products for the New Millennium

21640 N. 19th Ave Ste C6 Phoenix AZ 85027 USA www.VSI-AZ.com 623-434-6621

SuperLogic Users Guide 1. OVERVIEW.................................................................................................................................. 3 2. SOFTWARE REQUIREMENTS AND INSTALLATION ...................................................... 3 3. WORKBENCH COMPONENTS ............................................................................................... 4 3.1 FILE SUBMENU........................................................................................................................... 4 3.2 DEVICE SUBMENU ..................................................................................................................... 5 3.3 HELP SUBMENU ......................................................................................................................... 5 3.4 SHORTCUT ICONS FOR FILE SUBMENU ....................................................................................... 6 3.5 SHORTCUT ICONS FOR DEVICE SUBMENU .................................................................................. 6 3.6 SHORTCUT ICONS FOR LADDER PROGRAM DEVELOPMENT ........................................................ 6 3.7 SHORTCUT ICONS FOR PROGRAMMING ELEMENTS..................................................................... 6 3.8 I/O STATE INDICATORS .............................................................................................................. 6 3.9 STATUS INDICATORS .................................................................................................................. 7 3.10 NETWORK AND GENERAL STATISTICS ..................................................................................... 7 4. SYSTEM FILES ........................................................................................................................... 7 4.1 FILE ADDRESSING ...................................................................................................................... 7 4.2 CONTROL BIT FILE DEFINITION ................................................................................................. 8 4.3 CONTROL WORD FILE DEFINITION ............................................................................................ 9 5. LADDER PROGRAMMING ELEMENTS............................................................................... 9 5.1 CONDITION ELEMENTS .............................................................................................................. 9 5.1.1 Normally Open Condition.................................................................................................. 9 5.1.2 Normally Closed Condition ............................................................................................. 10 5.1.3 Compare Conditions ........................................................................................................ 10 5.2 RESULT ELEMENTS .................................................................................................................. 11 5.2.1 Output/Coil Contact......................................................................................................... 11 5.2.2 Output/Coil Latch Contact............................................................................................... 11 5.2.3 Output/Coil Unlatch Contact........................................................................................... 11 5.2.4 Output/Coil Pulse Contact............................................................................................... 12 5.2.5 On Delay Timer Command .............................................................................................. 12 5.2.6 OFF Delay Timer Command ........................................................................................... 13 5.2.7 Retentive Timer Command............................................................................................... 13 5.2.8 Up Counter Command ..................................................................................................... 14 5.2.9 Timer/Counter/FIFO Reset Command ............................................................................ 14 5.2.10 Move Command ............................................................................................................. 14 5.2.11 Send-Message Command............................................................................................... 15 5.2.12 FFL - FIFO/LIFO Load Command ............................................................................... 15 5.2.13 FFU - FIFO/LIFO Unload Command........................................................................... 15 6. PROGRAMMING OVERVIEW WITH EXAMPLE ............................................................. 16 6.1 LADDER PROGRAMMING INTRODUCTION ................................................................................. 16 6.2 EXAMPLE LADDER PROJECT .................................................................................................... 16 6.2.1 Create New Ladder Project ............................................................................................. 16 6.2.2 Insert a rung..................................................................................................................... 16 6.2.3 Insert conditions into rung............................................................................................... 16

VITAL Systems, Inc.

Page 1

Doc. Rev 5503-3

SuperLogic Users Guide 6.2.4 Insert Branch into Rung................................................................................................... 17 6.2.5 Insert New Condition into New Branch........................................................................... 17 6.2.6 Insert Output(Coil) into Rung.......................................................................................... 17 6.2.7 Explanation of Example Ladder Program....................................................................... 18 7. CONNECTING TO SUPER-I/O DEVICE............................................................................... 18 7.1 DIRECT CONNECTION VIA SERIAL PORT .................................................................................. 18 7.2 CONNECTION THROUGH SERIAL-CAN BRIDGE........................................................................ 19 7.3 NETWORK CONNECTION VIA DEVICENET NETWORK INTERFACE ........................................... 19 8. CONFIGURING SUPER-I/O DEVICE.................................................................................... 19 8.1 CONFIGURATION PARAMETERS ................................................................................................ 19 9. DOWNLOADING PROGRAM TO SUPER-I/O DEVICE .................................................... 21 10. MONITORING A PROGRAM IN A SUPER-I/O DEVICE ................................................ 22

VITAL Systems, Inc.

Page 2

Doc. Rev 5503-3

SuperLogic Users Guide

1. Overview
SuperLogic enables the configuration and programming of the Super-I/O control modules. SuperLogic is a ladder based programming application, applying industry programming standards. The programming functionality is extensive and allows users to develop programs for many specialized applications. SuperLogic incorporates a drag-and-drop graphical interface to create a user-friendly programming environment. SuperLogic also has program monitoring capabilities which allow the user to debug a program against the system application. A SuperLogic program can incorporate on average 60 rungs.

2. Software Requirements and Installation


To ensure the proper operation of the SuperLogic Software, your computer system should have the following minimum requirements: Operating System: Windows 98, Windows ME, or Windows 2000 Processor: 300 MHz Pentium II Memory: 64 MB RAM Hard drive: 200 MB SuperLogic can be obtained through the Vital Systems website. The website is located at the URL- (http://www.VITALSYSTEM.com). Once the installation file has been acquired double-click the installation icon named SetupLdr.exe. The installation process will begin and follow the installation wizard's instructions. Once the installation is complete, restart your computer system. Now, the SuperLogic shortcut icon will be present on the computer's desktop and the installation is complete.

VITAL Systems, Inc.

Page 3

Doc. Rev 5503-3

SuperLogic Users Guide

3. Workbench Components
The SuperLogic Workbench components are listed below:

3.1 File Submenu


New Ladder: Open: Save: Save As: Print: Close: Create a New Ladder Program in the SuperLogic software. Open an existing Ladder Program to edit or download. Save a new or edited Ladder Program. Save a new or edited Ladder Program with a different name. Print current ladder program. Close the current Ladder Program in SuperLogic Workbench.

VITAL Systems, Inc.

Page 4

Doc. Rev 5503-3

SuperLogic Users Guide Exit: Exit from the SuperLogic software.

3.2 Device Submenu


Connect: Initiates a connection, serial or network between computer running SuperLogic software and a Super-I/O device. If connection is successful the device will be online, which is indicated by the "Yellow" Online Status Indicator. Connections take place through a serial port on SuperI/O or over DeviceNet network. While connected and online to a Super-I/O device this command will put controller into Run Mode, which will be indicated by the "Green" RUN Status Indicator. The Controller must be in Run Mode to execute the program stored in its memory.

Run Mode:

Program Mode: While connected and online to a Super-I/O device this command will put the controller into Program Mode, which will be indicated by a "Red" RUN Status Indicator. Super-I/O Controller must be in Program Mode to configure it. Similarly, after downloading a program to Super-I/O, the controller state initializes to Program Mode. Monitor: While connected and online with a controller, the program that the controller is executing can be monitored, which will be indicated by the "Blue" Status Indicator. The current project/program the Super-I/O is executing must be opened in the SuperLogic Workbench and the controller must be in Run Mode.

Configurations: While connected and online with an Super-I/O device, the following device characteristics can be configured: MAC ID, Upstream MAC ID, Downstream MAC ID, Bus Speed, Zone Count, Singulation or Slug Mode, and Host ID.

3.3 Help Submenu


This displays the contents of the Help Files. Search for Help: Allows users to search Help Files for specific information. About: This displays the version and copyright details for SuperLogic Software. Contents:

VITAL Systems, Inc.

Page 5

Doc. Rev 5503-3

SuperLogic Users Guide

3.4 Shortcut Icons for File Submenu


Create a new Project/Ladder Program. Open a previous Project/Ladder Program to edit or download. Save a new or edited Project/Ladder Program.

3.5 Shortcut Icons for Device Submenu


Connect / Disconnect a Super-I/O device. Configure Super-I/O device. Download Ladder Program to Super-I/O device. Monitor current program running on Super-I/O device. Set Super-I/O to Run Mode. Set Super-I/O to Program Mode.

3.6 Shortcut Icons for Ladder Program Development


Check for ladder programming errors Deletes selected element in a rung or an entire rung. Insert a new rung above the currently selected rung. Insert a new rung below the currently selected rung. Insert a branch into a rung. Cancel selected element and returns the pointer to its original state. Generate element usage / cross reference table.

3.7 Shortcut Icons for Programming Elements


Normally Open Condition. Normally Closed Condition. Compare Conditions: =, NEQ, >=, >, <=, <. Output Contacts: Normal, Latch, Unlatch, and Pulse(One-Shot). Move Commands. Reset Timer/Counter Command. Send Message Command. Timer/Counter Commands: Timers (TON, TOFF, and RTO) and Up Counters. FIFO/LIFO Queue Unload (pop) Command FIFO/LIFO Queue Load (push) Command

3.8 I/O state Indicators


While monitoring the program of a Super-I/O device, the state indicators give visual state verification for the 8 inputs and 8 outputs.

VITAL Systems, Inc.

Page 6

Doc. Rev 5503-3

SuperLogic Users Guide

3.9 Status Indicators


This visual indicator will illuminate when a message is received from a controller. It will also tally the total number of messages received. This visual indicator will illuminate when a message is transmitted to a controller. It will also tally the total number of messages transmitted. This visual indicator will illuminate in "Blue" when the SuperLogic software is monitoring the current ladder program. This visual indicator will illuminate in "Green" when the Super-I/O device is running the ladder program - "RUN" mode. This visual indicator will illuminate in "Yellow" and change to "Online" when the SuperLogic software is online with a Super-I/O device.

3.10 Network and General Statistics


Network/MAC ID number for Super-I/O device online with SuperLogic software. Specifies the channel of the network being used to connect to the Super-I/O device, e.g., COM1, CAN0, CAN1 Server name of the host computer. Identifies firmware version. Identifies the date and time at which the last program download occurred Program ID. This value is obtained by calculating the check-sum of the ladder program.

4. System Files
Super-I/O device supports both bit and word addressable files for storing program and intermediate data. In addition to the general purpose binary and integer files, Super-I/O has control bits and control words files for specific device data.

4.1 File Addressing


FILE NAME Binary Integer Integer Bits Control Word Control Word Bits Short from BIN REG REG CW CW Address Range BIN:1 BIN:40 REG:1 REG:25 (value -32767 +32767) REG:1.x REG:25.x where x is 0 -15 CW:1 CW:62 CW:1.x CW:62.x where x is 0 -15

VITAL Systems, Inc.

Page 7

Doc. Rev 5503-3

SuperLogic Users Guide Control Bit Timers Timer Bits Counters Counter Bits Inputs Outputs CB TMR TMR CNT CNT IN OUT CB:1 CB:25 TMR:1 - TMR:25 TMR:1.x - TMR:25.x where x is DN, TM, or EN. CNT:1. CNT:10 CNT:1.x CNT:10.x where x is DN or EN. IN:1 IN:8 OUT:1 OUT:8

4.2 Control Bit File Definition


Control Bits CB: 1 CB: 2 CB: 3 CB: 4 CB: 5 CB: 6 CB: 7 CB:9 CB: 10 CB: 11 CB: 12 CB: 13 CB: 14 CB: 15 CB: 16 CB: 17 CB: 18 Description Package Approaching from Merge Branch Ready to receive package from Merge Branch Controller Package Exiting to Divert Branch 1 (Left) Divert Branch 1 (Left) ready to receive package Package Exiting to Divert Branch 2 (Right) Divert Branch 2 (Right) ready to receive package Reserved New Barcode Received - Set By firmware, Cleared by Ladder Program Package exiting Super-I/O last zone Ready to receive a package from upstream Reserved Super-I/O device is configured for singulation operation. Reserved Type Read Only Read/Write Read/Write Read Only Read/Write Read Only Read/Write Read/Write Read/Write Read Only

Reserved Reserved Package approaching from upstream device. CB: 19 Downstream device is ready to accept a package. CB: 20 Reserved CB: 21 FIFO / LIFO Full CB: 22 FIFO / LIFO Empty CB:23 CB:25 Reserved

Read Only Read Only

Read Only Read Only

VITAL Systems, Inc.

Page 8

Doc. Rev 5503-3

SuperLogic Users Guide

4.3 Control Word File Definition


Control Bit CW:1 CW:5 CW:6 CW:7 CW:8 CW:9 CW:10 CW:11 CW:12 CW:13 CW:14 CW:15 CW:16 CW:17 CW:22 CW:23 CW:24 CW:25 CW:30 CW:31 CW:32 CW:33 CW:52 CW:53 CW:62 Description Reserved Merge branch MAC ID Divert 1 (Left) branch MAC ID Divert 2 (Right) branch MAC ID Host Read Data Host Write Data Super-I/O MAC ID. MAC ID for downstream Super-I/O device MAC ID for upstream Super-I/O device. Reserved Number of zones Super-I/O is controlling. Message Destination MAC ID. Send Message buffer (6 Bytes). Reserved FIFO/LIFO current queue size Receive Message buffer (6 Bytes). Reserved FIFO/LIFO queue buffer. 20 locations Barcode Receive buffer. 10 locations Type Read Only Read Only Read Only Read/Write Read Only Read Only Read Only Read Only Read Only Read/Write Read/Write Read Only Read/Write Read Only Read/Write

5. Ladder Programming Elements


A ladder program consists of programming elements. These elements consist of input conditional contacts and commands as well as output commands.

5.1 Condition Elements


A Condition can be entered in any of the first five insert positions (left to right) of a rung. When all the conditions in any one path in a rung are TRUE, then the rung condition becomes true.

5.1.1 Normally Open Condition


This condition is true when the bit pointed to by the address is true (1 or high). This condition supports the following addresses: 1. Inputs 2. Outputs IN:1 IN:8 OUT:1 OUT:8

VITAL Systems, Inc.

Page 9

Doc. Rev 5503-3

SuperLogic Users Guide 3. Binaries 4. Integers 5. Timers 6. Counter 7. Control Bits 8. Control Word Bits BIN:1 BIN:40 REG:1.x REG:25.x where x = 0 - 15 TMR:x.DN, TMR:x.EN, TMR:x.TM where x = 1 - 20 CNT:x.DN, CNT:x.EN where x = 1 - 10 CB:1 - CB:25 CW:1.x CW:62.x where x is 0 -15

5.1.2 Normally Closed Condition


This condition is true when the bit pointed to by the address is False (0 or low). This Condition supports the following addresses: 1. Inputs 2. Outputs 3. Binaries 4. Integers 5. Timers 6. Counter 7. Control Bits 8. Control Word Bits IN:1 IN:8 OUT:1 OUT:8 BIN:1 BIN:40 REG:1.x REG:25.x where x = 0 - 15 TMR:x.DN, TMR:x.EN, TMR:x.TM where x = 1 - 20 CNT:x.DN, CNT:x.EN where x = 1 - 10 CB:1 - CB:25 CW:1.x CW:62.x where x is 0 -15

5.1.3 Compare Conditions


There are six compare conditions: =, >, <, <=, >= and NEQ. These conditions expect two arguments labeled Argument 1 and Argument 2. In a mathematical statement, Argument 1 will be on left Side and Argument 2 will be on right side, i.e., Argument 1 < Argument 2, Argument 1 >= Argument 2, etc. Possible Arguments are: 1. Integer Constant (-32767 0 32767) 2. Integer file (REG:1 REG:25) 3. Control Word file (CW:1 CW:62) 4. Timer Accumulators (TMR:1 - TMR:25) 5. Counter Accumulators (CNT:1 - CNT:10)

VITAL Systems, Inc.

Page 10

Doc. Rev 5503-3

SuperLogic Users Guide

5.2 Result Elements


A Result Element can only be entered in the far right insert position of a rung. When the rung condition becomes true, the result element becomes true.

5.2.1 Output/Coil Contact


This command sets the addressed bit to true or false including the output bits. When the rung condition is true, the addressed bit or output is set to true (1 or high) and with rung condition false, the bit or output is set to false (0 or low). This command supports the following addresses: 1. Outputs 2. Binaries 3. Integers 4. Control Bits 5. Control Word Bits OUT:1 OUT:8 BIN:1 BIN:40 REG:1.x REG:25.x where x = 0 15 CB:1 CB:25 CW:1.x CW:62.x where x is 0 -15

5.2.2 Output/Coil Latch Contact


This command sets the addressed bit only to True including the output bits. When the rung condition is true, the addressed bit or output is set to true (1 or high). If the rung condition is false, the bit or output is left unchanged. This command supports the following addresses: 1. Outputs 2. Binaries 3. Integers 4. Control Bits 5. Control Word Bits OUT:1 OUT:8 BIN:1 BIN:40 REG:1.x REG:25.x where x = 0 15 CB:1 CB:25 CW:1.x CW:62.x where x is 0 -15

5.2.3 Output/Coil Unlatch Contact


This command sets the addressed bit only to False including the output bits. When the rung condition is true, the addressed bit or output is set to false (0 or low). If the rung condition is false, the bit or output is left unchanged. This command supports the following addresses: 1. Outputs 2. Binaries 3. Integers VITAL Systems, Inc. OUT:1 OUT:8 BIN:1 BIN:40 REG:1.x REG:25.x where x = 0 15 Page 11 Doc. Rev 5503-3

SuperLogic Users Guide 4. Control Bits 5. Control Word Bits CB:1 CB:25 CW:1.x CW:62.x

where x is 0 -15

5.2.4 Output/Coil Pulse Contact


This command is used to set a bit to true for the rest of the program scan. If the rung condition is true, the addressed bit will be set to true (1 or high). After the program scan is complete, the bit will reset back to false (0 or low). If the bit is already set, it will not change the bits state. This command supports the following addresses: Binaries: BIN:1 BIN:40

5.2.5 On Delay Timer Command


This timer starts timing when the rung condition becomes true. As long as the rung condition is true, the accumulator keeps on timing until it reaches the preset value. When Accumulator is equal to Preset, the Done bit is set and the Timing bit is reset. The Timer Enable bit follows the rung condition. The Done bit, Timing Bit and Enable Bit are reset as soon as the rung condition becomes false. The Accumulator is reset to 0 until the rung condition becomes true again. The time base is fixed at 10 mSec.

Rung State

Enable Bit Timing Bit Done Bit

Time

ON Delay Timing Diagram

VITAL Systems, Inc.

Page 12

Doc. Rev 5503-3

SuperLogic Users Guide

5.2.6 OFF Delay Timer Command


This timer starts timing when the rung condition becomes False. The enable bit follows the rung condition. When the rung condition becomes false, the Accumulator increments at a rate of 1 increment per 10 mSec, till it reaches the preset value or the rung condition becomes true again. The Done bit is a combination of Enable bit and the Timing bit. The two bits are OR together to generate the Done Bit. When the Accumulator is equal to the Preset value, the timing and done bits are reset. The time base is fixed at 10 mSec.
Rung State

Enable Bit

Timing Bit

Done Bit Time

OFF Delay Timing Diagram

5.2.7 Retentive Timer Command


The Retentive Timer begins to increment the accumulator when rung conditions become True. As long as rung condition is true the accumulator increments until it reaches the Preset value. However, unlike the TON, the RTO does not reset its accumulator when the condition goes false. Instead, a reset command is required to reset the accumulator and the done bit. Please refer to Timer/Counter Reset element. The Retentive Timer does not retain its accumulator value when you cycle the power of the controller or change the controller mode to program mode. The accumulator is retained only during run mode. The time base is fixed at 10 mSec.

VITAL Systems, Inc.

Page 13

Doc. Rev 5503-3

SuperLogic Users Guide

5.2.8 Up Counter Command


This result will count the rung state transitions from 0 to the preset value. Each transition of rung condition from false to true is registered by incrementing the accumulator by 1. When the accumulator is equal to the preset value, the Done Bit is set to true. The Enable Bit follows the rung condition. To reset the counter, Reset command is used. At reset, the accumulator and the Done Bit are set to zero. Please refer to Timer/Counter Reset element.

5.2.9 Timer/Counter/FIFO Reset Command


This element resets a timer, counter or FIFO/LIFO queue. A timer is selected by using a TMR in the address followed by the index of the timer. A counter is selected by using a CNT followed by the index of the counter. The FIFO/LIFO queue is selected by using the keyword FIFO or LIFO, both refer to the same queue. When the rung condition is true, the command will clear the accumulator of timer or counter specified. For a timer it will reset the done and timing bit. For a counter it will reset the done bit. For FIFO/LIFO queue, all data in the queue is set to zero, Queue count is set to zero, Queue full bit (CB:21) is set to false, Queue empty bit (CB:22) is set to true.

5.2.10 Move Command


When the rung condition becomes true, this command moves data from a source location to a destination. Possible Source Arguments: 1. Integer Constant (-32767 0 32767) 2. Integer File (REG:1 REG:25) 3. Control Word File (CW:1 CW:62) 4. Timer Accumulator (TMR:1 TMR:25) 5. Counter Accumulator (CNT:1 CNT:10) Possible Destination Arguments: 1. Integer File (REG:1 REG:25) 2. Control Word File (CW:1 CW:62) 3. Timer Preset File (TMR:1 TMR:25) 4. Counter Preset File (CNT:1 CNT:10)

VITAL Systems, Inc.

Page 14

Doc. Rev 5503-3

SuperLogic Users Guide

5.2.11 Send-Message Command


This element sends a user defined message from one Super-I/O to another or to the Host. When rung condition becomes true, the 6 bytes of data in the send-buffer will be sent to the receive buffer of the destination device. The send and receive buffers can only hold values from 0 to 255 in each location. Send Buffer Receive Buffer Destination CW:17 - CW:22 CW:25 - CW:30 CW:16

5.2.12 FFL - FIFO/LIFO Load Command


Parameters: Source Address or constant data to be loaded into the queue.Reg:1..25, CW:1..62, TMR:x.ACC, CNT:x.ACC, Constant 0 ... 32767 Size Queue Size. Range 2 ... 20 When Rung Condition goes True, the command will copy the source data to the bottom of the queue. Queue count (CW:24) is incremented by one. Queue Empty bit (CB: 22) is set to False. If the queue count (CW:24) becomes equal to Size, the FULL bit (CB:21) is set to true. If Queue is already full, no action is taken. Note: The Queue grows toward bottom. New data always end up at the bottom.

5.2.13 FFU - FIFO/LIFO Unload Command


Parameters Queue Type: Select Fifo or Lifo operation when executing this command. Destination: Address of file to receive data from the queue. Reg:1..25, CW:1..62 Fifo Operation When Rung Condition goes true, The integer value stored at the top of the queue is copied to the destination address. The entire queue is then moved one step towards the top, decrementing the the Queue Count (CW:24) by one. The Queue Full bit (CB:21) is set to false. If Queue Count (CW:24) becomes zero, the Empty bit (CB: 22) is set to true.

VITAL Systems, Inc.

Page 15

Doc. Rev 5503-3

SuperLogic Users Guide If queue is empty, no action is taken. Lifo Operation When Rung Condition goes true, The integer value stored at the bottom of the queue is copied to the destination address. The Queue Count (CW:24) is decremented by one. The Queue Full bit (CB:21) is set to false. If Queue Count (CW:24) becomes zero, the Empty bit (CB: 22) is set to true. If queue is empty, no action is taken.

6. Programming Overview with Example


6.1 Ladder Programming Introduction
Ladder programming is a controls industry standard for I/0 devices. A ladder program is created by inserting "Rungs" Just like connecting an electrical wire path from a left bus to a right bus. Between the two buses, logic conditions such as relay contact, AND, OR, Compare etc are added. A Result Element (traditionally a coil) is always inserted on the far right. This Result Element is executed if the logic state of all the input conditions in any one path of the rung equates to True.

6.2 Example Ladder Project


6.2.1 Create New Ladder Project
Click on the New Ladder Icon: A new ladder project/program with no rungs will appear.

6.2.2 Insert a rung


Click on the Insert Rung Before or After Icon: result elements will appear. or A new rung with no condition or

6.2.3 Insert conditions into rung


Insert two Normally-Open Contact Elements into rung #1. Click on the Normally Open Condition Icon: , then click the entry point on the rung where you want to place the element. A properties window will appear, address the bit accordingly and type a description of the element in the comment field. Repeat these steps for next Normally Open Condition. The result is shown below:

VITAL Systems, Inc.

Page 16

Doc. Rev 5503-3

SuperLogic Users Guide

6.2.4 Insert Branch into Rung


Click on the Branch button Icon: Select a beginning point for the branch on the desired rung by bringing the cursor over the entry point. The possible beginning and ending points will be show by red squares on the rungs. Click on one red square to select the beginning point for the branch. Then select the desired red box for the ending point of the new branch. A branch will appear between the two selected points.

6.2.5 Insert New Condition into New Branch


Click on the Compare Button: Then click an entry point on the new branch where you want to place the element. A properties window will appear, Select the equal command with Argument 1 as REG:1 and Argument 2 as 50. Also, type a description for the element in the comment field. Below shows the result of this step:

6.2.6 Insert Output(Coil) into Rung


Click on the Output Button: Then click on the far right output entry point. A properties window will appear. Select the Normal Output Result and address the bit accordingly. Also, type a description of the element in the comment field. Below shows the result of this step:

VITAL Systems, Inc.

Page 17

Doc. Rev 5503-3

SuperLogic Users Guide

6.2.7 Explanation of Example Ladder Program


Output 1 will turn on when any one of the following conditions is true: 1. Input 1 and Input 2 are both true 2. Integer file at index 1 is equal to 50 If both of these conditions are false, then output 1 will be off.

7. Connecting to Super-I/O Device


7.1 Direct Connection via Serial Port
Physically connect a serial cable between the serial port of desired Super-I/O device and COM port of the computer running SuperLogic software.

Click the connect button from menu. From Device Connect pop-up window, select the COM PORT radio button and the corresponding radio button for the COM PORT number. Click on the Connect button on the pop-up window. The Super-I/O device will go "Online". This can be visually verified by the Online Status Indicator on left side of the workbench.

VITAL Systems, Inc.

Page 18

Doc. Rev 5503-3

SuperLogic Users Guide

7.2 Connection through Serial-CAN Bridge


The Super-I/O device can be used as a bridge between the computer and other devices on the DeviceNet network. Using one Super-I/O device, you can program/configure another Super-I/O or SuperAccum device that is on the same network. Here is how it works: you physically connect your computer serial port to a Super-I/O device using the same cable as used in the direct COM port connection. This device will act as a bridge. Click the connect button from menu. From device connect window, select the SerialCAN Bridge radio button and enter the MAC-id of the desired Super-I/O device on the network. Leave the channel and server field blank. After selecting connect button from the window the desired Super-I/O device will go "Online". This can be visually verified by the Online Status Indicator on left side of the workbench.

7.3 Network Connection via DeviceNET Network interface


For connecting to the Super-I/O device from your computer using DeviceNet, you will need either the PCI DeviceNET adapter (PN# PCI7202B) or the USB-CAN interface module (PN# UC8901). In addition to the driver software for these devices, you will also need to install the SuperCIS server. Please refer to the install CD that came with the card you purchased. Once you have properly installed the Network adapter, you can connect to any Super-I/O device on any channel of DeviceNET. Click the connect button from the menu. From the Device Connect pop-up window, select DeviceNet radio button and designate the MAC ID and Network Channel of the desired device. If the SuperCIS server is installed in a Remote computer, enter the computer name in the Remote Server field. After selecting connect button from window the Super-I/O device will go "Online". This can be visually verified by Online Status Indicator on left side of the workbench.

8. Configuring Super-I/O Device


While online with a Super-I/O device click the Configure button from menu . The configuration pop-up window will appear. After making changes to the data, hit update button to send the new data to the Super-I/O device. The device will switch to program mode to save the changes in EEPROM. You will need to manually put the device in Run-Mode by clicking on the Run icon

8.1 Configuration Parameters


MAC ID: This is the MAC-Id (or Node ID) of the device currently "Online" with. Range of MAC Ids are 0 63. The MAC-ID can only be changed thru software for Super-I/O RevB only. Rev-C and higher have rotary switches for MAC-ID configuration. VITAL Systems, Inc. Page 19 Doc. Rev 5503-3

SuperLogic Users Guide

Upstream: The MAC ID of the upstream Super-I/O or SuperAccum device. If there is no device upstream, then set this value as "None". By default the value is ONE, which means that the upstream MAC ID is one minus the MAC ID of this controller. Downstream: The MAC ID of the downstream Super-I/O device. If there is no device downstream, then set the value to "None". By default the value is +ONE, which means that the downstream MAC ID is one plus the MAC ID of this controller. BusSpeed: Network baud rates in KBPS, three possible DeviceNet network speeds (125K, 250K, and 500K). Currently this value cannot be changed by the user. ZoneCount: The number of motorized roller zones being controlled by Super-I/O device. This value is copied to the Control-Word file at index 15. The firmware for Super-I/O does not use this value for any operation. It is left to be used by the ladder program written by the user. If you are using the standard accumulation ladder program supplied by VSI, then the range of Zone Count number is 1 8. Singulation: If this box is checked, the Control-Bit file at index 14 will be true, other wise false. If you are using the standard accumulation ladder program supplied by VSI, then the following will be applicable: This box is "checked" if the accumulation program is to operate in "singulation" mode. Otherwise, the accumulation program will operate in "slug" mode. Merge Branch: MAC ID of branch Super-I/O Device connected to the merge. Must be set to NONE if no branch interlock is needed. Divert 1 (L) Branch: MAC ID of Branch controller connected to side 1 (or Left) of the Diverter. Must be set to NONE if no branch interlock is needed. Divert 2 (R) Branch: MAC ID of Branch controller connected to side 2 (or Right) of the Diverter. Must be set to NONE if no branch interlock is needed. Host-ID: MAC-ID of PC Host with DeviceNET interface adapter. If you are connecting a serial device, e.g., a Barcode Reader to the Super-I/O, you need to provide the Host-ID value so that the Super-I/O device can send the data coming from the serial device to the PC host over DeviceNET. If no serial device is attached, then leave this value to None. To receive the serial data (e.g., barcode) inside the ladder program, set the Host ID to None. In this case the data from serial port is copied to control word file CW:53 CW:62. Each word contains two characters of the serial data received.

VITAL Systems, Inc.

Page 20

Doc. Rev 5503-3

SuperLogic Users Guide

9. Downloading Program to Super-I/O Device


The SuperLogic workbench has integrated tools for downloading and monitoring ladder logic program. Once a ladder program is written or loaded in the workbench editor, click on the Download icon from the menu. If you are currently online with the controller, you will see the Download Progress pop-up window. Click on Start to start the download sequence. After the download is complete, the window will close.

WARNING: Downloading a ladder program will delete the existing program stored in the Super-I/O controller. Once you hit the Start button to begin download, there is NO way to stop the process. The existing program in the controller will be deleted.

VITAL Systems, Inc.

Page 21

Doc. Rev 5503-3

SuperLogic Users Guide

10. Monitoring a Program in a Super-I/O Device


While connected to a Super-I/O device, from the file menu open the ladder file which is running on that device. Before monitoring a program ensure the device is in "RUN" mode. To start monitoring the program, click-on the shortcut icon or select "Monitor" from the Device Sub-menu. If the program that you loaded in the Workbench does not match the program running in the Super-I/O device, then the following error message will result: "Program Mismatch". If the program does match, then SuperLogic will begin monitoring the running program and the monitor indicator will show in blue color. During monitoring, if a Condition Element is red in color then its state is "True" at that moment. Otherwise, if the Condition Element is in the default green color then its state is "False". Also, the Result Elements are blue color when their state is "True" and the default green color when their state is "False". Similarly, while monitoring the program the INPUTS" and "OUTPUTS" State Indicators update the status of the devices 8 inputs and 8 outputs. The colors of the state indicators and ladder logic elements are valid only when the monitoring indicator is shown in Yellow color on the left pane of the workbench. To stop monitoring, again click-on the shortcut icon or select "Stop Monitoring" from the Device Submenu.

VITAL Systems, Inc.

Page 22

Doc. Rev 5503-3

Вам также может понравиться