top of page

WELCOME
Search


Practical use case: Counting operation runs
This post is inspired by a recent question in the Siemens community forum ( https://community.sw.siemens.com/s/question/0D5Vb00000rlev1KAA/help-with-counter-triggered-by-operation-end-signal-in-process-simulate ). It seems generic enough to be mentioned here. It is actually pretty simple but can be really useful in many situations. So how do you count how many times an operation has been executed? You just increment a counter on each pulse of the operation's end signal. A
Ivaylo Fiziev
Nov 211 min read
Â
Â
Â


Practical use case: Volume sensor (PoC)
This should be a device that detects a substance within a specified volume of space. Usually used in security systems this kind of sensor is also known as a volumetric motion detector. It detects changes in the volume it covers by filling it with energy patterns and recognizing disturbances in the patterns caused by any moving object. In our case it works by simply looking for interference between the geometry of volume itself and the geometry of any part appearance. As you
Ivaylo Fiziev
Nov 71 min read
Â
Â
Â


Working with VARIANTs
VARIANT is yet another data type that you can use in your functions / function blocks. Usually it comes in handy when defining the...
Ivaylo Fiziev
Aug 263 min read
Â
Â
Â


Typed literals
What are literals? These are the constant values that we use in the code. Examples are: numbers ( 1 , 2 , 10#1 , 16#FF , 8#77 , 3.14 ,...
Ivaylo Fiziev
May 92 min read
Â
Â
Â


SCL code introspection
Introspection means extracting semantic (meaningful) information from the code. For example: getting variable names, type names, default...
Ivaylo Fiziev
Mar 113 min read
Â
Â
Â


Applying a SCL script to a resource over the API
Scripting is nice. I think we all agree with this statement. It would be even nicer if we can automate the process of creating scripts. e.g. generate and assign scripts to resources over the official API of Process Simulate. Is this really possible? Yes it is. The SCL editor does exactly this. It uses the API to assign a script to a resource. It can also set default values for variables as well as connect signals to them. Let's see how this works. Every resource that can h
Ivaylo Fiziev
Feb 255 min read
Â
Â
Â


Recursive vs. iterative SCL code
There are two approaches to solving a problem in computing that requires visiting a lot of states. Iterative and recursive. The iterative...
Ivaylo Fiziev
Mar 20, 20242 min read
Â
Â
Â


Practical use case: Frequency counter
As the name suggests this is a device that measures frequency. It counts the number of pulses in a periodic signal per second. Internally...
Ivaylo Fiziev
Feb 5, 20242 min read
Â
Â
Â


Practical use case: Mux / Demux
A multiplexer is a device that has several digital or analog inputs and a single output. It forwards a given input to the output based on...
Ivaylo Fiziev
Feb 2, 20242 min read
Â
Â
Â


Practical use case: Bit to Byte conversion
I got some requests for this type of conversion recently so I decided to make a post out of it. The logic is quite straight-forward but...
Ivaylo Fiziev
Jan 30, 20242 min read
Â
Â
Â


Practical use case: Safety button
Safety is a top priority feature in every manufacturing solution. With industrial devices it is often the case that safety buttons are...
Ivaylo Fiziev
Dec 21, 20232 min read
Â
Â
Â


Practical use case: Simple light indicator
Sometimes all you need is a simple indication telling you the state of the device you are dealing with. Power indicator of you will. It...
Ivaylo Fiziev
Oct 20, 20231 min read
Â
Â
Â


Practical use case: Output signal delay
Introducing delays is often needed in behavior modeling. Delays are usually required by the external circuit before which the data has to...
Ivaylo Fiziev
Oct 10, 20232 min read
Â
Â
Â


Type casting
Types are good. They provide meaning to variables, arguments and functions by defining the set of operations that can be applied to them....
Ivaylo Fiziev
Apr 24, 20232 min read
Â
Â
Â


Practical use case: A Boolean signal that changes value every 500ms
Recently I was asked for such an example from customers so I decided to make a post out of it. Interestingly they struggle implementing...
Ivaylo Fiziev
Apr 19, 20231 min read
Â
Â
Â


Behavior modeling with scripts
What is a script? A sequence of instructions (statements) executed one by one by the language interpreter. Each instruction gets you...
Ivaylo Fiziev
Apr 19, 20222 min read
Â
Â
Â


Using subscripts
As we already know SCL scripts in Process Simulate are placed in the SCL Vault folder. Currently FBs, FCs and UDTs are supported. But how...
Ivaylo Fiziev
Apr 18, 20222 min read
Â
Â
Â


SCL FB Syntax
The Function Block (FB) is just a function associated with some data. The data is stored in a Data Block (DB). In Process Simulate we...
Ivaylo Fiziev
Mar 8, 20222 min read
Â
Â
Â
CONTACT

bottom of page
