トップ 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

ロボット機器運用課題実習(標準課題)

ロボット機器運用課題実習(標準課題)

 Python

>>> int(''.join([str(n) for n in [1,1,0,0]]),2)
12
>>> int(''.join([str(n) for n in (1,1,0,0)]),2)
12
>>> import struct
>>> struct.pack('<f', 15.0)
b'\x00\x00pA'
>>> struct.pack('<f', 15.0).hex()
'00007041'
>>> struct.pack('<hh', 1,2)
b'\x01\x00\x02\x00'
>>> struct.pack('<hh', 40000,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
struct.error: short format requires (-32768) <= number <= 32767
>>> struct.pack('<hh', -1,2)
b'\xff\xff\x02\x00'
>>> struct.pack('<hh', 0,2)
b'\x00\x00\x02\x00'
>>> struct.pack('<hh', -1,2)
b'\xff\xff\x02\x00'
>>> struct.unpack('<f', struct.pack('<hh', -1,1))[0]
1.836695910175181e-40
>>> struct.unpack('<f', struct.pack('<hh', 255,1))[0]
9.219282726639404e-41
>>> struct.pack('<hh', 255,2)
b'\xff\x00\x02\x00'
>>> struct.unpack('<f', struct.pack('<hh', 255,2))[0]
1.8402832342438525e-40
>>> struct.unpack('<f', struct.pack('<hh', 255,0))[0]
3.5733110840282835e-43
>>> struct.unpack('<f', b'\x3f\xc0\x00\x00')[0]
6.896490392174587e-41
>>> struct.unpack('<f', b'\x00\x00\x3f\xc0')[0]
-2.984375
>>> struct.unpack('<f', b'\x00\x00\xc0\x3f')[0]
1.5
>>> struct.unpack('!f', b'\x00\x00\xc0\x3f')[0]
6.896490392174587e-41
>>> struct.unpack('!f', b'\x3f\xc0\x00\x00')[0]
1.5
>>> struct.unpack('@f', b'\x3f\xc0\x00\x00')[0]
6.896490392174587e-41
>>> struct.unpack('=f', b'\x3f\xc0\x00\x00')[0]
6.896490392174587e-41
>>> struct.unpack('>f', b'\x3f\xc0\x00\x00')[0]
1.5

 安全

 MESインタフェースユニット

 CC-Link IE

 Robotino

 TP-WR902AC(JP)

 その他

MES SCADA

DIPスイッチ