Documentation search search close
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg
v10.0.1.x for R2026a
View other versions

IO642 Usage Notes

IO642 Usage Notes — Usage information about the I/O module

Description

This section describes how to configure the PROFIBUS DP network.

GSD File

To set up PROFIBUS communication, you must import the device description files of PROFIBUS slaves (GSD file) into your PROFIBUS Master configuration tool or PLC programming tool (refer to Step 7). You can download the GSD file HIL_0B69.GSD of the default IO642 here.

If you use warmstart parameters to simulate a PROFIBUS slave of a different vendor, you must import the GSD file of that particular slave into your Master configuration tool. The GSD file is generally available on the vendor's website.

I/O Module configuration from Simulink

The warmstart mode allows the PROFIBUS DP Slave to be configured in Simulink using the Setup driver block.

This approach offers more options than Sycon.net and rules out having to generate and handle configuration files.

I/O Module configuration with SYCON.net

During initialization of the real-time application, the IO642 Setup block reads a configuration file from the hard drive of the target machine and configures the PROFIBUS DP protocol stack. Use the SYCON.net configuration tool to create such a file.

[Tip]Tip

Download the SYCON.net configuration tool from the Speedgoat Customer Portal. Login to your Speedgoat account. In the Downloads section, navigate to Software and click SYCON.net (v1.400 Build 170125).

[Note]Note

Only SYCON.net V1.400 Build 170125 has been tested. There is no guarantee therefore that other versions will work with the Speedgoat I/O Blockset.

In addition to this short introduction, please read the SYCON.net help documentation for detailed information about how to set up a PROFIBUS DP device and export the module configuration file.

  1. Open SYCON.net and locate the "CIFX DP/DPM" PROFIBUS DPV1 Master. Drag it to the blue line in the main panel. This creates a magenta colored PROFIBUS line.

  2. Locate the "CIFX DP/DPS" PROFIBUS DPV1 Slave from the "Gateway / Stand-Alone-Slave" section and drag it to the PROFIBUS line in the main panel.

  3. Open the Configuration window from the slave's context menu.

  4. Under Configuration/Modules, define the I/O data modules to be supported by the slave by appending them to the "Configured Modules" list.

    [Note]Note

    The Input modules are actually the outputs of the slave and vice versa. It is named from the master's point of view.

  5. The slave address is set to "2". This can be changed in the station table of the master device's configuration.

  6. Apply the configuration and close the windows. Right-click on the Slave icon and select Additional Functions, Export, DBM/nxd

  7. Select a name for the file, for example: my_slave.nxd. Save the file in your current MATLAB workspace.

  8. In MATLAB, use the following script to load the configuration and the firmware to the target machine:

    IO642             = sg_IO64X_struct();% Create default structure
    
    IO642.protocol    = 'IO642';       % Protocol Speedgoat ID
    IO642.cardid      = '1';           % Module ID as defined in the model
    IO642.configfiles = '1';           % Number of configuration files
    IO642.configPath  = '';            % Absolute path or '' for current dir
    IO642.configfile1 = 'my_slave.nxd';% Name of first configuration file
    
    sg_IO64X_loadconfig(IO642);
  9. Configure the driver blocks according to the configuration defined in SYCON.net by specifying the corresponding amount of bytes in the "PBS Receive" and the "PBS Send" block.

  10. When you download the model, the firmware and configuration files are loaded to the IO642 I/O module.

Front Plate Description

IO642 PCI and PCIe modules

The rotary switch has no functional role.

IO642 mPCIe module

Note that in some real-time target machines, the mPCIe module is reversed; that is, the Error LED appears on the right.

IO642-32 Multi-node simulator

The IO643-32 simulates 32 PROFIBUS Slave nodes. Each node has two LEDs that indicate the communication status.

LED Status Description

IO642 PCI and PCIe modules
LEDColorStateMeaning
SYSGreenOnOperating system running
 Green/YellowBlinkingSecond stage bootloader is waiting for firmware
 YellowOnBootloader netX (= romloader) is waiting for second stage bootloader
 OffOffPower supply for the device is missing or hardware defect
COMGreenOnRUN, cyclic communication
 GreenFlashing, cyclic (2 Hz) Master is in CLEAR state
 RedFlashing, acyclic (1 Hz) Device is not configured
 RedFlashing, cyclic (2 Hz) STOP, no communication, connection error
 RedOnWrong configuration at PROFIBUS DP Slave
 OffOffDevice is not switched on or power is missing. During firmware download process
IO642 mPCIe module and IO642-32 Multi-node simulator
LEDColorStateMeaning
STATUS/COM1GreenOnRUN, cyclic communication
 GreenFlashing, cyclic (2 Hz) Master is in CLEAR state
 OffOff

LED ERROR is off: Device is not switched on or network power is missing

LED ERROR is flashing or “on”: Refer to description LED ERROR

ERROR/COM2OffOffRefer to description for LED STATUS
 Red

Flashing, acyclic (1 Hz)

Device is not configured
 RedFlashing, cyclic (2 Hz) STOP, no communication, connection error
 RedOn Wrong configuration at PROFIBUS DP Slave

Status Codes

For the list of status codes, please refer to Status Codes for Protocols Supported with the IO64x/IO75x Modules.