Question: An LD program calculates the output Z , from two UINT variables, x and y . The calculation takes place in a function block that

An LD program calculates the output Z, from two UINT variables, x and y. The calculation takes
place in a function block that you must create yourself. The function block is programmed in ST and
the formula is given below:
z =1050- xy.
Questions:
a) Create the program described above, in Codesys to calculate the output z. Be sure to show
the contents of both the:
i. LD program
ii. the ST function block.
b) Simulate your solution in the Visual Simulation environment of Codesys to proof that the
answer is calculated correctly by your function block, for two different sets of x and y values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!