KronoTech RSLogix 5000 Ladder Logic Structured Text HMI Search Contact us

# Multiply Instruction in Ladder Logic

KronoTech

PLC

Basic

Counters

Timer

Arithmetic

SUB

MUL

DIV

DDV

Comparison

Functions

Trig Functions

RSLogix 5000

Structured Text

HMI

Instruments

>

## MUL - Multiply

Use the MUL instruction to multiply one value (source A) by another (source B) and place the result in the destination. Source A and Source B can either be constant values or addresses that contain values, however Source A and Source B cannot both be constants.

#### Example 1

Equation: N7:51 = N7:50 * 1000

Source A = N7:50 = 12345 , Source A = 1000, Destination = N7:51 = 24232(why..) Math Register: When N7:50 = 12345 this will generate a value > 32767 this will generate an overflow status bit. But we will still get a valid result in the math register. We have to make sure to clear the minor error generate before we get a major error. #### Example 2

Equation: F8:52 = N7:52 * F8:50 (F is for floating points).

Source A = N7:52 = 10 , Source B = F8:50 = 1.234, Destination = F8:52 = 12.34 Notice how we mixed Integer (N) numbers with floating (F) numbers.

#### Example 3

Equation: N7:52 = F8:52 * F8:54 (12 = 1.23 * 10.0)
{"ft_lang_label":"__label__en","ft_lang_prob":0.7568594,"math_prob":0.9922927,"size":1189,"snap":"2023-40-2023-50","text_gpt3_token_len":365,"char_repetition_ratio":0.13755274,"word_repetition_ratio":0.036199097,"special_character_ratio":0.3566022,"punctuation_ratio":0.16858238,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9965027,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,3,null,3,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-04T11:55:41Z\",\"WARC-Record-ID\":\"<urn:uuid:9688735c-8b23-4f7d-a98a-324c8488d51b>\",\"Content-Length\":\"13250\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8878c938-ea17-4ef1-925d-e6312691b90c>\",\"WARC-Concurrent-To\":\"<urn:uuid:469977af-3c66-4016-b515-befa99ed6ca1>\",\"WARC-IP-Address\":\"204.44.192.29\",\"WARC-Target-URI\":\"http://www.kronotech.com/LadderLogic/arith/ex-mul.htm\",\"WARC-Payload-Digest\":\"sha1:YTFC5QYDSODNZFVUM74OTTFXTITNA4LO\",\"WARC-Block-Digest\":\"sha1:PF77YAEWZNFPJUU7OSLTD7PRMBKYWBTV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100529.8_warc_CC-MAIN-20231204115419-20231204145419-00448.warc.gz\"}"}