- No category
advertisement
9
Logical Operators: XOR
The XOR operator performs a bitwise XOR of two integers or array elements. The module sets the ERROR variable if an error occurs. The possible results of the OR operation are:
Syntax: exp1 XOR exp2
Example:
DIM intvar INTEGER
DIM intvar2 INTEGER intvar = intvar2 XOR 55H
EXP1 EXP2 Result
0 0 0
0 1 1
1 0 1
1 1 0
Logical Operators: MOD
The MOD operator returns the remainder of [variable1] divided by [variable2]. The module sets the ERROR variable if the value of variable2 is zero.
Syntax: variable = [variable1] MOD [variable2]
Example:
DIM intvar INTEGER
DIM intvar2 INTEGER
intvar = intvar2 MOD 100
9-36 PACSystems* RX3iSerial Communications Modules – June 2010 GFK-2460E
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 152 Serial Communications Module DNP V3.0 Master Device Profile
- 154 Serial Communications Module DNP V3.0 Master Implementation Table
- 159 Implementing DNP3 Master Functions
- 163 Reading Static Data from an Outstation
- 165 Reading IIN Data from an Outstation
- 166 Reading Change Event Data of Any Class from an Outstation
- 167 Reading Class 1, 2, 3 Data from an Outstation
- 178 Writing Binary or Analog Output Data to an Outstation: Direct Operate
- 179 Writing Output Data to an Outstation: Select then Operate
- 180 Writing Analog Input Deadband Data to an Outstation
- 181 Reading Time and Date from an Outstation
- 182 Writing Time and Date to an Outstation
- 183 Sending a Cold Restart Command to an Outstation
- 184 Clearing the Device Restart IIN Bit in an Outstation
- 185 Enabling or Disabling Unsolicited Responses in an Outstation
- 187 Serial Communications Module DNP V3.0 Slave Device Profile
- 189 Serial Communications Module DNP V3.0 Slave Implementation Table
- 194 Serial Communications Module DNP3 Slave Point Lists
- 198 Implementing DNP3 Slave Functions
- 210 Configuring a Port for SPL
- 210 Creating an SPL Script
- 211 Operation of the SPL Script
- 212 Exchanging Status and Control Data with the PLC CPU
- 215 Reserved Symbols
- 215 Syntax rules and requirements
- 216 SPL Statements
- 217 Global Variables
- 218 Variable Names
- 218 Variable Reference and Assignment
- 219 Integer Variables
- 220 Array Variables
- 221 Script Control Statements: GOTO
- 222 Script Control Statements: FOR – TO – NEXT
- 223 Script Control Statements: IF - THEN - <ELSE> – ENDIF
- 224 Script Control Statements: GOSUB – RETURN
- 225 Script Control Statements: STOP
- 226 Functional Errors
- 226 Fatal Errors
- 229 Statements to Exchange CPU Data: EXNEXT
- 231 Statements to Exchange CPU Data: EXSTAT
- 234 Statements to Exchange CPU Data: EXREAD
- 235 Statements to Exchange CPU Data: EXWRITE
- 237 SPL Statements for Exchanging Serial Port Data: GETB
- 238 SPL Statements for Exchanging Serial Port Data: PUTB
- 239 Global Variable for Serial Communications: SERIAL
- 240 Optional Global Variables for Serial Communications
- 241 Checksum Statements: BCC
- 241 Checksum Statements: CRC
- 242 Precedence of Operators
- 243 Logical Operators: AND
- 243 Logical Operators: OR
- 244 Logical Operators: XOR
- 244 Logical Operators: MOD
- 245 ASCII Conversion Statements: ASCTOVAL
- 246 ASCII Conversion Statements: VALTOASC
- 247 Time Statements: TIMER
- 247 Time Statements: ELAPSED
- 248 Debugging the SPL Script
- 250 Control SPL Script Execution from the Command Line Interface Port