System Operands (SI) (SL) (SB) (SDW)

System Operands types include: System Bits (SB), System Integers (SI), System Double Word (SDW), and System Long (SL).

System Operands are used by the controller's operating system to manage certain functions and values. Many System Operands are linked to fixed parameters and are read-only, such as SB 2 Power-up bit, which turns ON for a single cycle whenever the controller powers up.

Other System Operands can be written to by the program, or via INFO Mode. For example, to calculate the current internal temperature of the controller, you can turn on SB 14; the controller will then write the current temperature into SI 14, which is read only.

To display a list of System Operands with their descriptions, click on the Operand tab in the Output Window at bottom of the screen, then select the operand type.  Scroll down to view the list.

Note

System Operands have preset descriptions that describe their function. If descriptions have been changed, or if you are opening a project that was written using a different version of VisiLogic, you can display restore descriptions via the Project Menu Project>System Descriptions>Restore all System Descriptions.

All SBs and SIs which do not have descriptions are reserved for use by the system.  

System Bits

General, SBs 0-15

Touchscreen models only (V280), SBs 16-17, 20-22

Enable all HMI keys during Keypad Entry, SB 23

Initialize and Reset PLC, SB 24

HMI Display tasks, SBs 26-34

OnLine Test SB 35

INFO mode, SB 36

Exclude last Display from FIFO,SB 37

Invert Touchscreen element pixels, SB 38

FLASH Memory Access, SB 39

Keypad keys, SBs 40-72

Disable HMI cursor blinking SB 73

Download Complete, SB 75

Keypad Entry: Focus (V130), SB 76

Modem 'busy' status, (Color only) SB 77-79

COM Port/Modem initialization, SBs 80-85

Modem connection status, SB 86-88

I/O Expansion Modules, SB 91

GPRS modem connected, SB 100

MODBUS over GPRS, SB 104 - 103

MODBUS Read Long, SB 102

Press "Enter" 1x (V130), SB 108

Keypad entry 'tab', V130: SB109

Draw: Out of Range: SB 110

Disable Virtual Keypad (V560), SB111

On-Board USB port found, SB112

Keypad keys, letter/number order, V130 SB115

Built-in USB ports (Relevant models), SB 112, 113

Save Trends to SD Card, SB 116-119

DTR/DSR signals, SBs 120-125

COM SBs 132-137

Remote Access - Read Only, SB140

Ethernet-enabled controllers only, SBs 141-176

Profibus Card Detected, SB178

Received message is invalid, SBs 180-182

SMS message transmission status, SBs 184-185

SMS messages: Write to Vector SBs 198-199

CANbus, SBs 200-215, 236-237

SD Card, SBs 217-219

CANopen, SBs 240-243

Black Background, SB 249

Keypad entry, SBs 250-251

EX-RC1, SBs 252-254

SMS ASCII, SB 279

SMS Force SMS Display, SB 280

CANopen Buffer Management SB 284-293

Reset PLC, SB 300

Backup Security PLC, SB 303

Buzzer, SBs 310, 311

Backup security. SB 314

SD File Utilities, SBs 324-29

Break from External Device, SBs 330-332

GPRS status, SBs 334-336

Break from Modem, SBs 337-339

SD Card DT and Log Functions, SBs 340-342

SD Card DT and Log Functions, SBs 343-344

email: Send in Progress, SB345

SD Card Data Block Functions, SBs 346-49

SD Card Alarms to SD, SB 352

SD Card Delete File, SB 358

SD Card File Info, SB 359

SD Card Clone in Progress, SB 366

 

Data Tables, SB 500

Utility Error SB 399

Retain Inputs Forced Value, SB 501

System Integers

General, SIs 0-14

Ladder Utility Failure Indication, SI 26

Real Time Clock, SIs 30-37

Touch Coordinates, SIs 40, 41

Active Keypad Entry variable, SI 42

Keypad Entry Out of Limits, SI 45

Refresh HMI, Buttons, Frame, Text , SI 46

Select Touch Keyboard Type (enhanced only), SI 49

INFO delay time, SI 50

email Limit File Attachment Size, SI 58

Send e-mail: Increase Timeout, SI59

Max number of *.udt files saved to SD, SI 63-64

SD Card Status Messages, SI 66

SD Card Read/Write Files, SIs 67, 68

SD Card File Open Time, SI 69

SD Trend Status, SIs 160-167

SD DT blocks to/From SD, SIs 330 -333

FLASH Storage, SI 72

Alarms: Status, SI 74

Operand assignment error, SI 75

Number of Alarms in History, SI 76

COM Port: Port/Modem Status, Error codes, SIs 80-85

Max. Delay between characters, MODBUS + Modem, SI 100

Ethernet-enabled controllers only, SIs 101-148

V700-only, COM port, 184

GSM Cellular Modem, GSM Signal Quality, SI 185, 188, 191

SMS messages: Write to Vector SIs 198-199

CANBUS, SIs 200-201, 236-237, 240-243

Hardware Configurations, 205

X,Y-coordinates, Num Keypad/Alarm screen, SI 244, 245

Improve Display of Complex HMI Element. SI 246 (V1210/V1040 only)

HMI Displays, SIs 249-252

Info Mode, SI 253

Messages Received Counters, SI 274-276

Ethernet, packets received, SIs 308-308, 311-318

 

Float Errors SI 440

OS Information SI 497, 498

 

System Long Integers

SL 4

Divide Remainder (signed divide function)

SL 47

0xDEADBEAF  Erases ALL application sectors (fonts, DLUs, .vlp, String Library, Web Server) and forces restart. DEADBEAF causes the PLC to enter System mode while sectors are being erased. The process may take as long as 10 minutes; when it is complete, the PLC will restart.

System Double Words

#

Description

Value

Comments

SDW 0

10mS counter

 

 

SDW 2

SDW 2 Cycle Counter

Increments by 1 every program cycle

 

SDW 3

2.5 mS counter

 

 

SDW 4

Divide Remainder

 

Unsigned divide function

SDW 5

Expansion module short circuit bitmap

 

 

SDW 6

Snap-in module short circuit bitmap

 

 

SDW 9

Unique PLC ID number (All Visions)

Each PLC has its own unique ID number

Use SDW9 (unique PLC number) to restrict a program to a particular PLC.

SDW 10

Keypad entry variable value

 

When a keypad entry variable value is entered, this SDW 10 holds the value.

SDW 13

Phone number of last received SMS

 

last 9 digits

SDW 14

Socket 0: Number of sent transmissions

Updated after each data transmission via Socket 0

 

SDW 15

Socket 1: Number of sent transmissions

Updated after each data transmission via Socket 1

 

SDW 16

Socket 2: Number of sent transmissions

Updated after each data transmission via Socket 2

 

SDW 17

Socket 3 : Number of sent transmissions

Updated after each data transmission via Socket 3

 

SDW 18

Socket 0: Number of received transmissions

Updated after each data packet received via Socket 0

 

SDW 19

Socket 1: Number of received transmissions

Updated after each data packet received via Socket 1

 

SDW 20

Socket 2: Number of received transmissions

Updated after each data packet received via Socket 2

 

SDW 21

Socket 3: Number of received transmissions

Updated after each data packet received via Socket 3

 

SDWs that are common to UNICAN and CANopen change function, according to the CANbus type selected in the COM Init function.

SDW 7

UniCAN, CANbus ISC Error

If not 0, contact technical support

 

SDW 56

UniCAN Send message counter

Is initialized when CANbus Port Init runs, then increments at every UniCAN Send.

Note that only messages sent from a UniCAN Send are counted

SDW 57

UniCAN Receive message counter

Is initialized when CANbus Port Init runs, then increments at every UniCAN Receive.

Note that only messages received from a UniCAN Send are counted, not Broadcast messages or Check if Alive responses.

SDW 30

Variable display bitmap, 0=Normal, 1=Inverse (or negative)

The value is checked when a display is entered.

It is initialized to 0:

 - At Power-up.

 - When the program exits the Display.

When a bit is ON, the corresponding variable is displayed in inverted (negative) color; black pixels are changed to white and white to black.

SDW 31

Hide Var

The value is checked when a display is entered.

It is initialized to 0 at:

 - Power-up.

 - When the program exits the Display.

When a bit is ON, the corresponding variable is hidden

Note

The Vision700 controller series comprises a built in Ethernet port, and some of the Ethernet system operands listed below do not apply to the V700.

Please check the topic Vision700 - Using Ethernet for complete information.

SDW 37

MODBUS Slave: Receive Counter (Bitmap)

Increments a 4-bit field each time a slave receives data

High - >low:

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|  |spare|  | com 3| com 2|  com 1|

SDW 38

TCP/IP Keep Alive counter

Increments a 8-bit field each time the O/S initializes the socket due to ‘Keep Alive’ (SI 103-106)

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|

SDW 39

Ethernet general critical error

8-bit counters

Bits 24-31: "Ethernet card init” – if the MS Byte (xxx.yyy.zzz.kkk, MS means the xxx part) of the IP/ SUBNET/ GATEWAY is zero – do not init the Ethernet.

Bits 16-23: Check once in second if local IP SUB and GATEWAY are ok. Cause set of SB 167.

Bits 8-15: TCP (connect) & UDP (send) IP is defined – Read HW remote IP to verify. Case verifies failed: Ignore connect or send.

Bits 0-7:  While getting message from socket – if the high part of the remote IP high is zero. Cause set of SB 167

SDW 42

100mS Timer Counter, Stable

 Counts number of pulses

Updates at beginning of program scan only

SDW 43

10mS Timer Counter, Stable

 Counts number of pulses

Updates at beginning of program scan only

SDW 44

2.5mS Timer Counter, Stable

 Counts number of pulses

Updates at beginning of program scan only

SDW 45

TCP/IP Keep Client (Master) Connection

Increments a 8-bit field each time the O/S initializes the socket due to ‘Keep Alive’ (SI 107-110)

| Eth port 3| Eth port 2| Eth port 1| Eth port 0|

SDW 49

Signature Log Checksum

 

 

SDW 59

SD Card: Free space (bytes)

Capacity given in 512-byte chunks.

The value is written when SB 217 turns ON, and is updated at each write operation. The operand is reset when SB 217 turns OFF.

Initialized at Power-up.

SDW 60

Info Error Status

Error Indication

 

SDW 63

Firmware version and Build number

Contains the version number of the OS currently in the controller

Relevant for V570, V290 Color

 

On-line Test (Remote Access) Mode, SI 86,88