I am using a function block to do repetative math calculations. I noticed that the results were coming back incorrect. After playing with the Function, I tracked it down to a constant that I was setting. Is there a special way to set constants in FB's?
I am taking a Real number and sending it...
Disregard...It turns out the Reals are displayed in a different format than the DInts so I was looking at them wrong. Reals are in a Scientific notation.
I have to interface to a program that is using DINT data in DBlocks. The DINT is data coming into the PLC and I have to do calculations on these numbers as Real types. My problem is that when I use the DI to R Converter the numbers do not match. At the input the number in DINT is 7 million and...
I have the need to clear multiple registers all at once. Typically I use a Fill command and fill them all with 0. I can not seem to find a similar function in the S7 318 logic.
Anyone have any ideas or am I overlooking a function? I was going to use the BlockMove but it does not accept 1 value...
I am connecting to an S7 318-2 with CP343-1. I have setup Write & Fetch connections and can communicate using the Parijat ActiveX control. My issue is that once I have connected to the port on the S7, I can not make any more connections.
I there a way to allow multiple connections or do I have...
I am new to Siemens as well but recognize your issue. Here is what I have learned so far and others can add to as needed.
FCs are just simply blocks of code that perform a particular function. They do not have memory that remains after the FC has completed.
FBs are blocks that you can setup...
Rolf,
That's it! Thanks. It is simple once you figure it out, hehe.
I am learning that I need to learn the Standard blocks to see what all tools are in there. I was looking for the Block Move myself.
Now I just have to be able to take the 8 bytes and convert them to DT formate to Set the...
Good, now....how do I do it. I am missing something becasue I just can't seem to get things right. I tried the direct method by calling SFC1 and putting the results into DB9 but the types are different or something.
Is there an easy way to do this?
Lance
I am finshing a project but need to parse out the DateTime from the Read_CLK SFC1. Can I just call the SFC1 and place the CDT result in a datablock?
Lance
I am assisting on a multiplant support team. Our plants have different versions of Modicon PLCs. Some are Quantum 424 & 486 and some are 984B. We are running a enterprise software package for data collection and these plants are having an issue around doing math with Negative numbers.
My...