SINT / SINT into REAL - incorrect result
CODESYS Forge
talk
(Thread)
SINT / SINT into REAL - incorrect result
Last updated: 2018-10-10
Codesys v3.5 Sint to byte
CODESYS Forge
talk
(Thread)
Codesys v3.5 Sint to byte
Last updated: 2024-04-24
Split int to int array?
CODESYS Forge
talk
(Thread)
Split int to int array?
Last updated: 2016-06-22
String to INT / REAL
CODESYS Forge
talk
(Thread)
String to INT / REAL
Last updated: 2017-12-03
Convert INT to Binairy
CODESYS Forge
talk
(Thread)
Convert INT to Binairy
Last updated: 2022-08-31
Convert WORD to INT
CODESYS Forge
talk
(Thread)
Convert WORD to INT
Last updated: 2017-12-06
Data conversion INT to UDINt (double)
CODESYS Forge
talk
(Thread)
Data conversion INT to UDINt (double)
Last updated: 2017-01-30
Convert 2 INT to Real
CODESYS Forge
talk
(Thread)
Convert 2 INT to Real
Last updated: 2021-08-15
Convert 2 diff type of int to real type
CODESYS Forge
talk
(Thread)
Convert 2 diff type of int to real type
Last updated: 2021-08-17
convert INT Type to STRING Type
CODESYS Forge
talk
(Thread)
convert INT Type to STRING Type
Last updated: 2009-10-22
Pack TWO INT variable to one DINT variable
CODESYS Forge
talk
(Thread)
Pack TWO INT variable to one DINT variable
Last updated: 2024-05-07
Array of 5000 int
CODESYS Forge
talk
(Thread)
Array of 5000 int
Last updated: 2017-08-16
Anzeige INT in Webvisu
CODESYS Forge
talk
(Thread)
Anzeige INT in Webvisu
Last updated: 2010-12-13
Dividing DINT/INT variables
CODESYS Forge
talk
(Thread)
Dividing DINT/INT variables
Last updated: 2020-10-24
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
CODESYS Forge
talk
(Thread)
Cannot convert type 'Unknown type: 'ADR(tabOrderIdArray)" to type 'POINTER TO ARRAY [0..0]OF INT'
Last updated: 2021-04-26
Post by bjarne-pagaard on Codesys v3.5 Sint to byte
CODESYS Forge
talk
(Post)
Hi A SINT is a short (signed) integer. It is already only 1 byte - so you should have no problem casting it to a byte like so: bMyByte := TO_BYTE(sintMyShortInt); If you have a regular INT you want to put in 2 bytes - there are a lot of ways you can do this. A Union is certainly one of them. You could have a union with 2 memebers: An array of 2 bytes as one member, and an integer value as another member. Another way would be to look at MEMCPY to put the value into your CAN-message. .. or create a function to take your input value as input, and giving you 2 individual bytes as output. This could be handy if you need to change the byte-order. Integer data types: https://help.codesys.com/webapp/_cds_datatype_integer;product=codesys;version=3.5.17.0 -Bjarne
Last updated: 2024-04-24
FUP: Verschaltungen Real, Int usw.
CODESYS Forge
talk
(Thread)
FUP: Verschaltungen Real, Int usw.
Last updated: 2018-02-02
Konvertierung von String in INT Variable
CODESYS Forge
talk
(Thread)
Konvertierung von String in INT Variable
Last updated: 2006-03-20
Ãœberlauf einer INT-Variable abfangen
CODESYS Forge
talk
(Thread)
Ãœberlauf einer INT-Variable abfangen
Last updated: 2009-09-02
Deklaration eines 25Bit Int Wert
CODESYS Forge
talk
(Thread)
Deklaration eines 25Bit Int Wert
Last updated: 2007-11-23
Int Variable mit 1 Kommastelle
CODESYS Forge
talk
(Thread)
Int Variable mit 1 Kommastelle
Last updated: 2011-01-23
How do I convert an INT variable to a TIME variable?
CODESYS Forge
talk
(Thread)
How do I convert an INT variable to a TIME variable?
Last updated: 2011-03-30
Extract 4 bytes from array of bytes to save in decimal value (int?)
CODESYS Forge
talk
(Thread)
Extract 4 bytes from array of bytes to save in decimal value (int?)
Last updated: 2022-01-11
Post by abinvest579 on COP instruction
CODESYS Forge
talk
(Post)
Hi All, I have hands on rockwell software like rslogix 5000 and studio 5000. Currently started working on codesys i want to know is there any COP instruction with similar functionality in codesys like rockwell. I want to use it to split REAL into 2 INT,DINT to 2 INT also reverse 2 INT into DINT and 2 INT into REAL. Thanks in advance
Last updated: 2024-03-18
Post by apurv on Cannot pass array of constant size to a function as a reference
CODESYS Forge
talk
(Post)
I have a Array of constant size defined like this Var Constant MAX_SIZE :UINT := 10; End_var VAR array : ARRAY[0..MAX_SIZE] OF INT; END_VAR Now I want to pass this array to a function by reference, Function fun : INT VAR_IN_OUT CONSTANT MAX_SIZE : UINT; END_VAR VAR_INPUT array : REFERENCE TO ARRAY[0..MAX_SIZE] OF INT; END_VAR but when I run this it gives strange Errors Error : Cannot Convert type 'ARRAY [0..MAX_SIZE] OF INT' to type 'ARRAY[0..MAX_SIZE] OF INT'
Last updated: 2024-01-07
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.