Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Arrays: Consider a two-dimensional array, ARY1 with entries, REAL[3,3]. Expanding ARY1 would show: ARY1(0,0), ARY1(0,1), ARY1(0,2), ARY1(1, 0), ARY1(1, 1), ARY1(1, 2), ARY1(2,0), ARY1(2,
4. Arrays: Consider a two-dimensional array, ARY1 with entries, REAL[3,3]. Expanding ARY1 would show: ARY1(0,0), ARY1(0,1), ARY1(0,2), ARY1(1, 0), ARY1(1, 1), ARY1(1, 2), ARY1(2,0), ARY1(2, 1), ARY1(2, 2). Suppose that an FFL file, FILEM has been loaded with 9 real numbers; let these numbers represent the entries in a 3 x 3 matrix as follows: Matrix M = A11 A12 A13 A21 A22 A23 A31 A32 A33 Transfer these values to the array, ARY1 so that ARY1 (0,0), ARY1(0,1), ARY1(0,2) will be the first row of M, ARY1(1,0), ARY1(1,1) ARY1(1, 2) will be the second row or matrix M, and ARY1(2,0), ARY1(2, 1), ARY1(2, 2) will be the third row of matrix M. Develop a ladder logic program to solve this problem. Consider a 2 x 2 matrix: N = A11 A12 , all real numbers. A21 A22 Let these numbers be preloaded into an FFL, in the order: A11, A12, A21, A22. FILEN. Let the PLC calculate the inverse of N as : IN = B11 B12 ; where B11 = A22/D; B12 = -A12/D; B21 = -A21/D B22 B21 B22 where D = A11 * A22 - A12 * A21 ; A11/D 4. Arrays: Consider a two-dimensional array, ARY1 with entries, REAL[3,3]. Expanding ARY1 would show: ARY1(0,0), ARY1(0,1), ARY1(0,2), ARY1(1, 0), ARY1(1, 1), ARY1(1, 2), ARY1(2,0), ARY1(2, 1), ARY1(2, 2). Suppose that an FFL file, FILEM has been loaded with 9 real numbers; let these numbers represent the entries in a 3 x 3 matrix as follows: Matrix M = A11 A12 A13 A21 A22 A23 A31 A32 A33 Transfer these values to the array, ARY1 so that ARY1 (0,0), ARY1(0,1), ARY1(0,2) will be the first row of M, ARY1(1,0), ARY1(1,1) ARY1(1, 2) will be the second row or matrix M, and ARY1(2,0), ARY1(2, 1), ARY1(2, 2) will be the third row of matrix M. Develop a ladder logic program to solve this problem. Consider a 2 x 2 matrix: N = A11 A12 , all real numbers. A21 A22 Let these numbers be preloaded into an FFL, in the order: A11, A12, A21, A22. FILEN. Let the PLC calculate the inverse of N as : IN = B11 B12 ; where B11 = A22/D; B12 = -A12/D; B21 = -A21/D B22 B21 B22 where D = A11 * A22 - A12 * A21 ; A11/D
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started