1. AB PLC·Î ºÎÅÍ 2Word¸¦ Àü¼Û ¹ÞÀ½(1Word, 16bit) 1¹ø° Word : 16202, 2¹ø° Word : 29132
2. 2Word¸¦ 2Áø¼ö·Î º¯È¯ÇÏ¿© ÇÕħ char dec1[]="16202"; char dec2[]="29132"; int int1, int2, int3; float f1;
int1 = atoi(dec1); int2 = atoi(dec2); int3 = (int1 << 16) + int2; -> 1061843404
±âº»ÀûÀ¸·Î °è»êÇϸé 1061843404¶ó´Â ¼ýÀÚ°¡ ³ª¿Í¾ß Çϴµ¥
AB PLC¿¡¼ ´Ù¸¥ ÁÖ¼Ò¿¡ 2Word¸¦ ´õÇؼ Float·Î Ç¥Çö Çغ¸´Ï 7808À̶ó´Â ¼ýÀÚ°¡ ³ª¿À´õ±º¿ä
±×¸®°í C¿¡¼ 2Word¸¦ Àü¼Û¹Þ¾Æ¼ °è»êÇÑ ºÎºÐ¿¡µµ ÀÌ·¯ÇÑ °ªµéÀÌ ³ª¿À´øµ¥ ½ÇÇàÈÀÏ·Î µÇ¾î ÀÖ¾î¼ º¼¼ö°¡ ¾ø½À´Ï´Ù.
µµ´ëü ¾î¶»°Ô °è»êÀ» ÇØ¾ß ÇÏ´ÂÁö ¾Ë¼ö°¡ ¾ø¾î ¹®ÀǸ¦ µå¸³´Ï´Ù. ´äº¯ÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù
|