Winding wire AWG23 or AWG24
The following datasheet for enamelled copper wire (ECW) states that ECW of diameter 0.56mm (AWG24) has a current carrying capacity of 0.381A. (obtained here https://www.farnell.com/datasheets/24248.pdf)
However, the following web page states that wire of diameter 0.574mm (AWG23) has a transmission current carrying capacity of 0.729A.
So, when I am winding my SMPS transformer primary winding, in which the RMS current is 0.58A, will I be OK with ECW of diameter 0.574mm?
According to the second reference, I will be ok, according to the first, I will not be OK, so which one is right?
current capacity in winding is based on temperature rise permitted, both solutions are different due to the difference in temperature permitted for their design, you are looking two tables so you will get two wire sizes.
I suggest: for more temperature rise, more diameter; for less temperature rise, less diameter
As far you refer to transformer design, the values depend also on the transformer type. Giving a value without this information is useless.
You can reduce your wire size depending upon the number of turns & the loss/temp rise you can allowed in the wire. There are some very good articles on TI web site which can help.