22.5.1 Procedure - Communicating with Unsupported Peripheral Devices

  1. From the [Project (F)] menu, click [System Settings (C)] and select [Script]. Make sure to set the [Type] to [Extended Script].

    There are two tabs for the script settings. The above example uses the [Script 1] tab.
    Set the [Port] to a serial port, such as COM1, and set the [Communication Settings] to match the Extended SIO.

  2. From the [Common Settings (R)] menu, select [Extended Script (E)].

  3. A message box appears confirming if you want to enable the extended script function. Click [Yes]. The [D-Script] dialog box is displayed.

  4. Register INIT as a user-defined function. Click the [Function] tab and click the user-defined function's [Create] button.

  5. Input [INIT] as the function name, click [OK]. The following screen appears.

  6. Create a script in the Expression Area with Commands, Statements, and Constant input.
    22.5.3.3 INIT (User Defined Function)

  7. Register PINIT as a user-defined function. Enter [PINIT] as the function name and create the following script in the Expression Area.
    22.5.3.4 PINIT (User Defined Function)

  8. Register Strset as a user-defined function. Enter [Strset] as the function name and create the following script in the Expression area.
    22.5.3.5 Strset (User Defined Function)

  9. Register Print as a user-defined function. Enter [Print] as the function name and create the following script in the Expression Area.
    22.5.3.6 Print (User Defined Function)

  10. Create the main script. Open the [Extended] tab, and create the following script in the expression area.
    When inserting user-defined functions into the main script, from the [Function] tab select the function you want to insert, then click [Call]. The function is inserted using "Call Function Name".
    22.5.3.2 Main Functions

  11. Click [Close]. A save confirmation message box appears.
    Check the displayed contents, then click [Yes (Y)]. The [D-Script] dialog box closes.
    The script is now complete.