WMUL

WMUL s1, s2, d

These commands multiply s1 and s2 and store the result in d. WMUL multiplies word values.

P M F S C T D Constants
s1 O O O O
s2 O O O O
d O O O

Example

In the ladder above, the result of 123456H * 1234H is stored as 4B60AD78H in D2.

Go CUBLOC Ladder Logic home