Kkula
Browse Questions » SIMATIC Ident - RFID Systems - Code Reading Systems: camera sv725

About User

Questions Asked: 36.7K

Answers Given: 0

0
  • Open
  • New

SIMATIC Ident - RFID Systems - Code Reading Systems: camera sv725

Importing technical question of a user
Hi,
I really would like more information about the registers, maybe an example or something similar, I already have the manuals of the script but it doesn't talk too much about the registers, l'll really appreciate that,
Thanks,
Natalith Palacios

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(1)

Understanding Registers in Siemens Scripting

Hello Natalith,

I understand you're looking for more details on registers within Siemens scripting, beyond what's covered in the manuals. Registers are essentially memory locations used to store temporary data during script execution. They are crucial for manipulating data and controlling program flow.

Here's a simplified example (using a hypothetical PLC and scripting language - syntax may vary based on your specific Siemens platform like STEP 7, TIA Portal, etc.):


// Example: Using registers to swap two values
// Assuming R1 holds the value of 'Input1' and R2 holds the value of 'Input2'

// Store the value of Input1 in a temporary register R3
R3 = Input1; 

// Store the value of Input2 in Input1
Input1 = Input2;

// Store the value from temporary register R3 (original Input1) in Input2
Input2 = R3;

Key Considerations:

  • Register Types: Different PLCs have various register types (e.g., Input, Output, Memory, Timer/Counter).
  • Addressing: Registers are addressed using specific notation (e.g., %I0.0 for a digital input, %MW10 for a memory word).
  • Data Types: Registers can hold different data types (e.g., BOOL, INT, REAL).

For detailed information specific to your Siemens PLC and scripting environment, please refer to these resources:

I hope this helps! Please provide your specific PLC model and scripting language if you require a more tailored example.

Sincerely,

Siemens Self Support

0
Add a comment