Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • COM4 - Input. WPS telemetry is received via an RS485 serial connection from the Schlumberger rack.
    • The telemetry is a binary stream.
    • It is delivered at 19200 baud, 8 bits, no parity, 1 stop bit, no flow control.
      These settings are supplied by the software. These are not the defaults you will see in Windows Device Manager.
  • COM3 - Output. SLB to RW--a LabVIEW 2020 executable program--processes incoming WPS telemetry (COM4) to WITS format. The WITS stream is output via COM3 (RS232).
    • The decoded telemetry is readable text. No need to run PuTTy--SLB to RW displays the data stream.
    • It is delivered at 9600 baud 8 bits, no parity, 1 stop bit, no flow control.
  • COM1 - SLB to RW output; RigWatch input.
    • PuTTY may be used to verify this output. While PuTTY has the serial port, RigWatch Master cannot see or use device "COM1 - Remote 6"
    • COM3 is physically connected in loopback fashion to COM1. The loopback cable is known as a null-modem or cross-over cable.
    • The data is delivered at 9600 baud, 8 bits, no parity, 1 stop bit, no flow control.

In During operations the RigWatch Master receives WITS data on device "COM1 - Remote 6" (via the network)--i.e. via the winch telemetry laptop aka  RigWatch Remote 6 aka 192.168.1.11.

Image Added

Starting the Winch Telemetry Laptop

...

  • The DAQ profile is configured for Windows Remote Desktop access via 192.168.1.11.
  • SLB to RW is installed in C:\Users\daq\Documents\WPS to WITS - SLB to Rigwatch: SLB2RW.exe
  • RigWatch is installed in C:\RWPRO. The shortcuts used to launch both programs reside in The executable resides at C:\ProgramDataRWPRO\Tools\interfaces\rw.exe.
  • The shortcuts used to launch both programs reside in C:\ProgramData\Microsoft\Microsoft\Windows\Start Menu\Programs\Startup\.

Configure the RigWatch Master to receive WITS telemetry from RigWatch COM1 - Remote 6

Glossary

WPS - Winch Positioning System. The collective hardware and software.

WPD - Winch Position Data. Core winch position data that may be retrieved from Schlumberger systems via specific communications protocols.

WITS - Wellsite Information Transfer Specification.

Configure the RigWatch Master to receive WITS telemetry from RigWatch COM1 - Remote 6

WITS setup - at KrakatoaWITS setup - at Krakatoa, not at Remote 6

An "SLB WITS Setup" should already be saved in the current RW setup file. If so, skip to "Running  SLB to RW".

...

  1. Run RigWatch as usual.
  2. Click Menu
  3. Click the red "Setup" button
  4. Click "Variables" and enter the setup password
  5. Click "Variables" again
  6. Use the "Page Down" button to scroll to the SLB Winch Variables
  7. Confirm or set the following for each SLB variable

    Variable
    Number
    NameInput DeviceInput Device Slot
    28
    29
    30
    SLB Cable Depth
    SLB Cable Tension
    SLB Cable Speed

    WITS Device1
    WITS Device1
    WITS Device1

    0921 [MWDm] <Spare 1>
    0922 [MWDm] <Spare 2>
    0923 [MWDm] <Spare 3>


  8. To change "Input Device", click on "Input Device", then scroll to and select "WITS Device 1"
  9. To change "Input Device Slot", click on "Input Device Slot" and scroll to and select the appropriate WITS tag number. The number is the important part, but if you want to edit the label portion of the tag, refer to the RigWatch Manual.

...

(If RigWatch is in the way, minimize it by clicking "Key Pad", then "Minimize Rigwatch".)

Find SLB2RW, click.
Image Removed

Reviewing the (right-click) Properties of the shortcut will indicates where the software is located on disk.

...

The "WITS Data String" reflects the "SLB Depth Data" but with tags applied to adhere to meet this WITS the specification.

WITS TagVariable
0105
0106
0922
0923
0921

Date
Time
Winch Tension
Cable Speed
Depth

RigWatch

(Verify that RigWatch is not previously minimized by Alt-TABing through already opened programs.)

...

  • C:\Users\daq\Documents\WPS to WITS - SLB to Rigwatch\VIs 2015\
    Double-click on SLB Winch Reader.lvproj to launch the LabVIEW 2020 development environment.
  • The operational executable (when built from the local source code set) is placed here
    C:\Users\daq\Documents\WPS to WITS - SLB to Rigwatch\SLB2RW.exe (
    with a few other files).

Network copy

  • U: or \\CLEVELAND\VOL2,  then \2-Engineering\2 RIS_RigWatch\RIS SOFTWARE\SLB to RW Software\
    SLB2RW-2021-CODE
  • A copy of the executable is stored in the same location: SLB2RW-2021-EXE

Theory of Operation

...

The Read Depth Loop

The code reads a binary data stream from the serial port, finds the WPD packets, then extracts the interesting fields from them. The WPD packets are identified by transmission pauses before and after. Complete packets are 54 bytes long; packets which do not meet this gross integrity check are thrown out. Since the protocol is time critical, it is crucial for the code to check the serial port at regular intervals. This is achieved by using a Timed Loop which has high timing reliability (much better than a "plain" software loop). In VI Info (Ctrl+I from the LabVIEW development environment), the VI's Execution property is set to the highest possible for the operating system and hardware in use. Historically "time critical" was specified; with current hardware and software "high priority" is sufficient. The loop period is tuned to 50 ms, 1/4 of the expected 200 ms pause, so the pause can be clearly identified.

...

SLB2RW is a compiled, 64-bit, LabVIEW 2020 executable. It is dependent on the National Instruments (NI) Serial drivers to

  • To communicate with the NI RS485 to USB device established at COM4

...

Troubleshooting

Normal operational state

Windows Device Manager normally shows these devices. This view was captured with "View > Show hidden devices" checked.

Image RemovedImage Removed

These are the device configurations as of this writing and implementation. Note that a different driver supports each serial port established.

COM4

COM3

Image Removed

COM1
Image RemovedImage RemovedImage Removed

If there is a change in USB-to-serial equipment, drivers must be changed. If the drivers are changed, the designated COM#'s will too.

  • Be sure to find and apply the current USB-to-serial driver for the device.
  • Modern Windows (10 and above) driver Properties present an Advanced... button in their interfaces.
    • Typically it presents FIFO queue configuration options AND a field to assign the COM#.
    • Recommend changing the COM# to those specified at the beginning of this document
      OR recompile SLB2RW to reflect the new ports, revise this document, and retrain both crews.
    • If hardware breaks--do what you gotta do.

If the NI RS485 to USB device is unplugged

...

  • , National Instruments (NI) Serial drivers are required.
  • The SLB2RW executable requires the LabVIEW Runtime Environment (LVRTE) 2020 to operate.

The full LabVIEW development environment that is installed on this system is not required for operation of SLB2RW. The development environment is solely for the convenience of rebuilding the tool if the serial ports are changed.

RigWatch

The RigWatch installation is dependent on

  • 1-Wire iButton drivers appropriate to the Windows environment. Stored in the JRSO software repository.
  • NTVDM. A software layer to eke out more years of software compatibility for old Microsoft technologies: new technology virtual DOS machine.

RigWatch is not dependent on an external installation of Oracle's Java. It is better for RigWatch to run only with the components that its installer provides. This ensures that, for example, wits1.dll and other serial drivers will load and communicate effectively across the network with the Master station.

PuTTY

Provides the ability to communicate with serial ports. Provides an independent testing facility if operational tools are not working as expected.

Troubleshooting

Normal operational state

Windows Device Manager normally shows these devices. This view was captured with "View > Show hidden devices" checked.

Image Added


These are the device configurations as of this writing and implementation. Note that a different driver supports each serial port established.

COM4 - Schlumberger winch position data - incoming

Image AddedImage Added

This dialog is obtained from the Advanced... button above. The settings reflect the defaults applied when the NI serial drivers were installed for the RS485 device. There is no need at this time to change them.

Image Added

COM3 - SLB2RW program outputs WITS content to this serial port

Image AddedImage Added

This dialog is obtained from the Advanced... button above. The settings reflect the defaults applied when the drivers were applied for the Tripplite Keyspan USB-to-Serial. There is no need identified at this time to change them.

Image Added

COM1 - device COM3 is physically looped back into the computer

Image AddedImage Added

This dialog is obtained from the Advanced... button above. The settings reflect the defaults applied by the Microsoft-provided serial driver. There is no need identified at this time to change these settings.

Image Added


If there is a change in USB-to-serial equipment

Drivers must be changed. If the drivers are changed, the designated COM#'s may too. 

  • Be sure to find and apply the current USB-to-serial driver for the device.
  • Modern Windows (10 and above) driver Properties present an Advanced... button in their interfaces.
    • Typically it presents FIFO queue configuration options AND a field to assign the COM#.
    • Recommend changing the COM# to those specified at the beginning of this document
      OR recompile SLB2RW to reflect the new ports, revise this document, and retrain both crews.

(As seen above) the "Advanced Settings" for COM ports allows an administrative account to change the assigned COM port number. Re-assign COM ports sparingly. Each change breaks current operations, and requires a reboot of the system. 

PuTTY serial communications

PuTTY may be used to verify transmission of WITS data to COM1.
Nota bene: while PuTTY has a lock on the serial port, RigWatch Master cannot see or use device "COM1 - Remote 6".

If the NI RS485 to USB device is unplugged

The Windows Device Manager will disable the serial driver. This will interrupt the telemetry stream to RigWatch.

These recovery methods have not been tested. TBD. Each item is one step along the communication path.

  • Best case. Plug the USB to RS485 (or other serial device) back in and it picks right up again.
  • Middle of the road.
    • SLB2RW program must be shutdown and restarted to resynchronize with the WPS feed.
    • Possibly the instance of RigWatch at Remote 6 would need to be restarted.
  • Worse case. The whole winch telemetry host must be shutdown and restarted.
  • Worst case. Even if the winch telemtry host is working as expected after restart, it is possible that a "hang-up" and "re-connect" at the RigWatch Master may not work (seen once).
    That "seen once" was corrected by a restart of RigWatch. Not something we want to make a habit of doing during rig-floor operations.