Cellwrite Studio operating manual · CWS-OM-001, revision A

The PLC program

The PLC workspace opens the cell's Rockwell PLC program, exported from Studio 5000 as an L5X file. It shows the ladder, the tags and the devices, edits them offline, and runs the program on this computer. The editor is laid out and keyed as Studio 5000 Logix Designer is, so what you know there works here.

Note

Cellwrite Studio never writes to a PLC. A changed program goes back into the PLC through Studio 5000.

Opening the program

  1. Select PLC > Open L5X.
  2. Select the L5X file. The controller, its tasks, programs, routines and tags are listed on the left, with the controller's type, firmware and address over them.
  3. Select a routine to show it.

The editor

  • The top bar holds Undo and Redo, the rung's own tools (edit, comment, delete, move up, move down) and the instruction toolbar: each instruction drawn as its symbol, with its group's tabs under it (Favourites, Add-On, Bit, Timer/Counter, Compare and the rest). Hold the pointer over a symbol to read what it does. In a narrow window the rest of a group is behind the arrow at its end.
  • The ladder draws contacts and coils as Studio 5000 does, and each box with its operands' names (Timer, Preset, Accum) and its status bits (EN, DN), which light while the program is simulated.
  • The Results pane under the ladder has three tabs: Errors (what Verify finds), Search Results and Cross Reference. Drag its top edge to make it taller.
  • The keyboard button at the right of the top bar lists every key.

Adding instructions

  1. Pick a rung, then the instruction the new one is to follow.
  2. Select the instruction's symbol in the top bar. It goes in after the instruction picked, and its first operand opens for typing with the tags listed.
  3. Type the tag, or pick it from the list, and press Enter. A box's next operand opens in turn.

Other ways in:

  • Drag a symbol from the top bar onto the rung. A bar shows where it will go.
  • Press Alt+Ins, or type a mnemonic on the ladder, for example X for XIC. Add Ladder Element opens, narrowed as you type. Enter puts in the one picked.
  • Branch puts a branch round the instruction picked. Branch level adds another way to the branch it is in. Rung adds a rung.

Typing a rung

  1. Pick the rung and press Enter, or double-click it.
  2. Type the rung in either form Studio 5000 takes:
    • as the export writes it: XIC(Start)[XIC(Run) ,XIC(Seal) ]OTE(Motor);
    • as Studio 5000's ASCII rung editor takes it: XIC Start BST XIC Run NXB XIC Seal BND OTE Motor
  3. Press Enter to keep it, or Esc to leave the rung as it was. What is wrong is said under the line as you type.

Editing

ToDo this
Pick a rungClick it. Shift+click picks several.
Pick an instructionClick it, or Left and Right on the rung picked.
Change one operandDouble-click it, or F2 for the instruction picked.
DeleteDel deletes the instruction picked, or the rungs picked when no instruction is.
Cut, copy and pasteCtrl+X, Ctrl+C and Ctrl+V work on the instruction picked, or on the rungs. Copied rungs paste into Studio 5000's rung editor.
Move an instructionDrag it to its new place, on the same rung or another. Hold Ctrl to copy it instead.
Add a rungCtrl+R or Ins.
Move rungsAlt+Up and Alt+Down.
Rung commentCtrl+D, or double-click the comment.
The operand's descriptionCtrl+Alt+D.
Undo and redoCtrl+Z and Ctrl+Y. A move from one rung to another undoes in one step.

The margin marks each rung: green for a rung added, amber for a rung changed, e for a rung with an error. Hold the pointer over the mark to read why.

The right-click menu

Right-click an instruction for its own commands, in Studio 5000's order: Cut Instruction, Copy Instruction, Paste and Delete Instruction, then Add Ladder Element, Edit Operand, Edit Rung and Edit Main Operand Description, then Go to Cross Reference, Go to Where It Is Set, Go To and Instruction Help. Right-click a rung for the rung's commands. The rarer ones (moving rungs, replacing in the rungs picked, exporting rungs, comparing with another station) are under More, and Cellwrite AI's under its own name.

Tags

The tags of the controller and of each program are listed in tables. New tag, Rename, Describe and Remove change them. A tag renamed is renamed in every rung that uses it. A column of descriptions copied from Excel can be pasted over the rows picked.

Finding

  1. Press Ctrl+F and type a tag, an instruction or words.
  2. Press Enter. Every rung that reads or writes it, and every rung comment, description and line of structured text that holds it, is listed under Search Results, and the first is shown.
  3. Press F3 for the next and Shift+F3 for the one before, or double-click a row.
ToDo this
See who reads and writes a tagPick its instruction and press Ctrl+E. Cross Reference lists every use with its instruction, those that write it first, marked Destructive.
Go to a rung or a routineCtrl+G, then a rung number or a routine's name.
Replace a tagCtrl+H. Find within is every routine, or the rungs picked, where part of the tags' names and the rung comments can change too.
Go to where a tag is setCtrl+click it.

Saving

Save (Ctrl+S) writes the L5X. Only what changed is written again; the rest of the file stays as it was. The file as it was is kept beside it.

To take the changes back into Studio 5000:

  • The whole project: open the L5X in Studio 5000 (File > Open). It opens as a new project.
  • Some rungs: pick them, right-click and select More > Export Rungs for Studio 5000, then use Studio 5000's Import Rungs.
  • One rung: copy it here and paste it into Studio 5000's rung editor.

Simulate

Simulate runs the program on this computer, scan after scan, as the controller runs it. Contacts and wires light as they would online, and boxes show their values and status bits.

  • Double-click a contact or coil to switch its bit, or pick it and press Ctrl+T (Toggle Bit). Double-click another operand to set its value.
  • Right-click an operand to force it on or off.
  • Pause, One scan and Reset control the run.
  • Edits run at once.

Some instructions are not run: add-on instructions, string handling, messages and system values. Their outputs keep their values; set them by hand where a sequence needs them.