Function Block for Random Numbers

Hi,

I would like to generate random numbers in a PLC, is there a function block available to generate random numbers?

Thx in advance

Best reply by Zeugwerker

I found a library and an appropriate function block for my case:

CmpCrypto Implementation Library Documentation
Title: CmpCrypto Implementation
Version: 3.5.17.0
Author: CODESYS Development GmbH

with the function CmpCrypto_Implementation.CryptoGenerateRandomNumber(SIZEOF(u1), ADR(u1));

 

View original
3 replies