Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80821members
346893posts

Division in Ladder for Zelio Logic

Solved
Manos
Crewman
Crewman
0 Likes
3
617

Division in Ladder for Zelio Logic

Hello

How can I use multiplication and division  in Ladder programming language for the "Zelio" Logic products  ?

Thanks

Tags (1)

Accepted Solutions
Fleo
Crewman
Crewman
0 Likes
0
571

Re: Division in Ladder for Zelio Logic

Hello,

 

Arithmetic functions are only available in FBD language.

In LD language only comparisons are possible.

All functions are explained in online help of Zelio Soft.

See Answer In Context

Tags (1)
3 Replies 3
covey
Cadet
0 Likes
2
611

Re: Division in Ladder for Zelio Logic

Basic Ladder Logic instructions allow very simple logical decisions. Arithmetic Ladder Logic instructions go beyond the simple true or false operation to give the ability to more complex operations. It retrieves one or more value, perform an operation and store the result in memory.

 

There is a very close relation between math instruction and some of the control status bits. After a math instruction is executed, the arithmetic status bits in the control status file are updated. Control status file is the data file "S2 - Status".

 

  • S:0/0 Carry (C) Sets if carry is generated; otherwise it is cleared.
  • S:0/1 Overflow (V) Indicates that the actual result of a math instruction does not fit in the designated destination
  • S:0/2 Zero (Z) Indicates a 0 value after a math, move or a logic instruction
  • S:0/3 Sign (S) Indicates a negative value after a math, move or logic instruction.
  • S:5/0 Minor Error Minor error bit is set upon detection of a mathematical overflow, or division by zero. This error can cause a CPU fault, which could be avoided if the bit is unlatched before the END, TND, or REF statement.
  • S:13S:14 Math register
  • S:13 -Contains the least significant word of the 32 bit values of MUL, DDV, FRD, and TODS:14 -Contains the Most significant word of the 32 bit values of MUL, DDV, FRD and TOD.
Tags (1)
Manos
Crewman
Crewman
0 Likes
1
597

Re: Division in Ladder for Zelio Logic

HI Covey

Thanks for your answer. But I can't find any reference to  arithmetic functions for Ladder at the "Zelio Logic Programming Guide". File name EIO0000002612.01.pdf      10/2017.

Is there any other reference for Ladder programming comprising arithmetic functions ?

Any help would be appreciated.

Happy new year.

Manolis Logiadis

Tags (1)
Fleo
Crewman
Crewman
0 Likes
0
572

Re: Division in Ladder for Zelio Logic

Hello,

 

Arithmetic functions are only available in FBD language.

In LD language only comparisons are possible.

All functions are explained in online help of Zelio Soft.

Tags (1)