Question about system.serial functions

Good day
I am trying to write a data frame using the system.serialwriteand system.serialwriteBytes but it is not possible they have some example it is a practice to read an RS232 serial port